diff options
| author | 2015-05-31 04:48:20 -0400 | |
|---|---|---|
| committer | 2015-05-31 04:48:20 -0400 | |
| commit | 833936fc64d63cf3cfd6454c4be0d1f2f7445ffd (patch) | |
| tree | 98f8740bfc89c2dfd4e430677befd003b53d0049 /src/core/hw/gpu.cpp | |
| parent | Merge pull request #822 from bunnei/pica-improvements (diff) | |
| parent | Remove gpu_refresh_rate configuration option (diff) | |
| download | yuzu-833936fc64d63cf3cfd6454c4be0d1f2f7445ffd.tar.gz yuzu-833936fc64d63cf3cfd6454c4be0d1f2f7445ffd.tar.xz yuzu-833936fc64d63cf3cfd6454c4be0d1f2f7445ffd.zip | |
Merge pull request #832 from yuriks/refresh-rate-option
Remove gpu_refresh_rate configuration option
Diffstat (limited to 'src/core/hw/gpu.cpp')
| -rw-r--r-- | src/core/hw/gpu.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index ed607646e..789d3dda4 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -30,8 +30,8 @@ Regs g_regs; | |||
| 30 | 30 | ||
| 31 | /// True if the current frame was skipped | 31 | /// True if the current frame was skipped |
| 32 | bool g_skip_frame; | 32 | bool g_skip_frame; |
| 33 | /// 268MHz / gpu_refresh_rate frames per second | 33 | /// 268MHz CPU clocks / 60Hz frames per second |
| 34 | static u64 frame_ticks; | 34 | const u64 frame_ticks = 268123480ull / 60; |
| 35 | /// Event id for CoreTiming | 35 | /// Event id for CoreTiming |
| 36 | static int vblank_event; | 36 | static int vblank_event; |
| 37 | /// Total number of frames drawn | 37 | /// Total number of frames drawn |
| @@ -357,7 +357,6 @@ void Init() { | |||
| 357 | framebuffer_sub.color_format = Regs::PixelFormat::RGB8; | 357 | framebuffer_sub.color_format = Regs::PixelFormat::RGB8; |
| 358 | framebuffer_sub.active_fb = 0; | 358 | framebuffer_sub.active_fb = 0; |
| 359 | 359 | ||
| 360 | frame_ticks = 268123480 / Settings::values.gpu_refresh_rate; | ||
| 361 | last_skip_frame = false; | 360 | last_skip_frame = false; |
| 362 | g_skip_frame = false; | 361 | g_skip_frame = false; |
| 363 | frame_count = 0; | 362 | frame_count = 0; |