diff options
| author | 2017-02-19 14:34:47 -0800 | |
|---|---|---|
| committer | 2017-02-26 17:22:03 -0800 | |
| commit | c75ae6c585f651a1b7c162c2e1ecccd22a1c587d (patch) | |
| tree | 30d51f39c6b57244e1ede29820c3f5d98ca38451 /src/core/hw/gpu.cpp | |
| parent | SynchronizedWrapper: Add Lock convenience method (diff) | |
| download | yuzu-c75ae6c585f651a1b7c162c2e1ecccd22a1c587d.tar.gz yuzu-c75ae6c585f651a1b7c162c2e1ecccd22a1c587d.tar.xz yuzu-c75ae6c585f651a1b7c162c2e1ecccd22a1c587d.zip | |
Add performance statistics to status bar
Diffstat (limited to 'src/core/hw/gpu.cpp')
| -rw-r--r-- | src/core/hw/gpu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hw/gpu.cpp b/src/core/hw/gpu.cpp index fa8c13d36..7cf081aad 100644 --- a/src/core/hw/gpu.cpp +++ b/src/core/hw/gpu.cpp | |||
| @@ -32,7 +32,7 @@ namespace GPU { | |||
| 32 | Regs g_regs; | 32 | Regs g_regs; |
| 33 | 33 | ||
| 34 | /// 268MHz CPU clocks / 60Hz frames per second | 34 | /// 268MHz CPU clocks / 60Hz frames per second |
| 35 | const u64 frame_ticks = BASE_CLOCK_RATE_ARM11 / 60; | 35 | const u64 frame_ticks = BASE_CLOCK_RATE_ARM11 / SCREEN_REFRESH_RATE; |
| 36 | /// Event id for CoreTiming | 36 | /// Event id for CoreTiming |
| 37 | static int vblank_event; | 37 | static int vblank_event; |
| 38 | /// Total number of frames drawn | 38 | /// Total number of frames drawn |
| @@ -41,7 +41,7 @@ static u64 frame_count; | |||
| 41 | static u32 time_point; | 41 | static u32 time_point; |
| 42 | /// Total delay caused by slow frames | 42 | /// Total delay caused by slow frames |
| 43 | static float time_delay; | 43 | static float time_delay; |
| 44 | constexpr float FIXED_FRAME_TIME = 1000.0f / 60; | 44 | constexpr float FIXED_FRAME_TIME = 1000.0f / SCREEN_REFRESH_RATE; |
| 45 | // Max lag caused by slow frames. Can be adjusted to compensate for too many slow frames. Higher | 45 | // Max lag caused by slow frames. Can be adjusted to compensate for too many slow frames. Higher |
| 46 | // values increases time needed to limit frame rate after spikes | 46 | // values increases time needed to limit frame rate after spikes |
| 47 | constexpr float MAX_LAG_TIME = 18; | 47 | constexpr float MAX_LAG_TIME = 18; |