summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-10-28 02:56:08 +0100
committerarchshift <admin@archshift.com>2014-10-28 03:42:01 +0100
commit09e19f9f1ee2e965a581e70b30cbc357f4b5ad21 (patch)
treeb18eca8d8a6dc02fbb3eacd6f8408546590c1deb /src/core
parentUse configuration files to enable or disable the new dyncom interpreter. (diff)
downloadyuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.tar
yuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.tar.gz
yuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.tar.bz2
yuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.tar.lz
yuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.tar.xz
yuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.tar.zst
yuzu-09e19f9f1ee2e965a581e70b30cbc357f4b5ad21.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/hw/gpu.cpp11
-rw-r--r--src/core/settings.h1
2 files changed, 2 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() {
/// 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;
diff --git a/src/core/settings.h b/src/core/settings.h
index 3e4781884..6a6265e18 100644
--- a/src/core/settings.h
+++ b/src/core/settings.h
@@ -28,6 +28,7 @@ struct Values {
// Core
int cpu_core;
+ int gpu_refresh_rate;
// Data Storage
bool use_virtual_sd;