aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/hw
diff options
context:
space:
mode:
authorGravatar bunnei <bunneidev@gmail.com>2015-05-31 04:48:20 -0400
committerGravatar bunnei <bunneidev@gmail.com>2015-05-31 04:48:20 -0400
commit833936fc64d63cf3cfd6454c4be0d1f2f7445ffd (patch)
tree98f8740bfc89c2dfd4e430677befd003b53d0049 /src/core/hw
parent8852fc6a87eaf8edbb26e93d44c1596f0167e3ac (diff)
parentd65b42a69abbde2130c77917e7db5722799a6896 (diff)
Merge pull request #832 from yuriks/refresh-rate-option
Remove gpu_refresh_rate configuration option
Diffstat (limited to 'src/core/hw')
-rw-r--r--src/core/hw/gpu.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp
index ed607646..789d3dda 100644
--- a/src/core/hw/gpu.cpp
+++ b/src/core/hw/gpu.cpp
@@ -30,8 +30,8 @@ Regs g_regs;
/// True if the current frame was skipped
bool g_skip_frame;
-/// 268MHz / gpu_refresh_rate frames per second
-static u64 frame_ticks;
+/// 268MHz CPU clocks / 60Hz frames per second
+const u64 frame_ticks = 268123480ull / 60;
/// Event id for CoreTiming
static int vblank_event;
/// Total number of frames drawn
@@ -357,7 +357,6 @@ void Init() {
framebuffer_sub.color_format = Regs::PixelFormat::RGB8;
framebuffer_sub.active_fb = 0;
- frame_ticks = 268123480 / Settings::values.gpu_refresh_rate;
last_skip_frame = false;
g_skip_frame = false;
frame_count = 0;