summaryrefslogtreecommitdiff
path: root/src/core/hw/gpu.cpp
diff options
context:
space:
mode:
authorGravatar archshift2014-10-27 18:56:08 -0700
committerGravatar archshift2014-10-27 19:42:01 -0700
commit09e19f9f1ee2e965a581e70b30cbc357f4b5ad21 (patch)
treeb18eca8d8a6dc02fbb3eacd6f8408546590c1deb /src/core/hw/gpu.cpp
parentUse configuration files to enable or disable the new dyncom interpreter. (diff)
downloadyuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.tar.gz
yuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.tar.xz
yuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.zip
Added `gpu_refresh_rate` config setting for the new interpreter speed hack.
Diffstat (limited to 'src/core/hw/gpu.cpp')
-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 94768b101..76dbe3fdc 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -218,16 +218,7 @@ void Update() {
218 218
219/// Initialize hardware 219/// Initialize hardware
220void Init() { 220void Init() {
221 switch (Settings::values.cpu_core) { 221 kFrameCycles = 268123480 / Settings::values.gpu_refresh_rate;
222 case Core::CPU_FastInterpreter:
223 kFrameCycles = 268123480 / 2048;
224 break;
225 case Core::CPU_Interpreter:
226 default:
227 kFrameCycles = 268123480 / 60;
228 break;
229 }
230
231 kFrameTicks = kFrameCycles / 3; 222 kFrameTicks = kFrameCycles / 3;
232 223
233 g_cur_line = 0; 224 g_cur_line = 0;