aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hw
diff options
context:
space:
mode:
authorGravatar archshift <admin@archshift.com>2014-10-27 18:56:08 -0700
committerGravatar archshift <admin@archshift.com>2014-10-27 19:42:01 -0700
commit09e19f9f1ee2e965a581e70b30cbc357f4b5ad21 (patch)
treeb18eca8d8a6dc02fbb3eacd6f8408546590c1deb /src/core/hw
parent0783498f570e7d5c00174cd10a3c1ff105d1eae6 (diff)
Added `gpu_refresh_rate` config setting for the new interpreter speed hack.
Diffstat (limited to 'src/core/hw')
-rw-r--r--src/core/hw/gpu.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index 94768b10..76dbe3fd 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -218,16 +218,7 @@ void Update() {
/// Initialize hardware
void Init() {
- switch (Settings::values.cpu_core) {
- case Core::CPU_FastInterpreter:
- kFrameCycles = 268123480 / 2048;
- break;
- case Core::CPU_Interpreter:
- default:
- kFrameCycles = 268123480 / 60;
- break;
- }
-
+ kFrameCycles = 268123480 / Settings::values.gpu_refresh_rate;
kFrameTicks = kFrameCycles / 3;
g_cur_line = 0;