From 09e19f9f1ee2e965a581e70b30cbc357f4b5ad21 Mon Sep 17 00:00:00 2001 From: archshift Date: Mon, 27 Oct 2014 18:56:08 -0700 Subject: Added `gpu_refresh_rate` config setting for the new interpreter speed hack. --- src/core/hw/gpu.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/core/hw') 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; -- cgit v1.2.3