diff options
| author | 2015-05-29 19:17:51 -0300 | |
|---|---|---|
| committer | 2015-05-29 19:39:26 -0300 | |
| commit | d65b42a69abbde2130c77917e7db5722799a6896 (patch) | |
| tree | 12b4c12f8711185125c155d2c86d2e0c162ec7de /src/core | |
| parent | Merge pull request #817 from linkmauve/citra.ico (diff) | |
| download | yuzu-d65b42a69abbde2130c77917e7db5722799a6896.tar.gz yuzu-d65b42a69abbde2130c77917e7db5722799a6896.tar.xz yuzu-d65b42a69abbde2130c77917e7db5722799a6896.zip | |
Remove gpu_refresh_rate configuration option
Changing it makes emulation inherently inaccurate. It also had a wrong
default value (30, whereas the real system has a refresh rate of 60 Hz)
which, even if changed, would continue to be used unless people manually
removed it from their config files.
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/hw/gpu.cpp | 5 | ||||
| -rw-r--r-- | src/core/settings.h | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index ddc5d647e..99cfdaafc 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; |
diff --git a/src/core/settings.h b/src/core/settings.h index 54c1023b8..5a70d157a 100644 --- a/src/core/settings.h +++ b/src/core/settings.h | |||
| @@ -35,7 +35,6 @@ struct Values { | |||
| 35 | int pad_cright_key; | 35 | int pad_cright_key; |
| 36 | 36 | ||
| 37 | // Core | 37 | // Core |
| 38 | int gpu_refresh_rate; | ||
| 39 | int frame_skip; | 38 | int frame_skip; |
| 40 | 39 | ||
| 41 | // Data Storage | 40 | // Data Storage |