diff options
| author | 2018-01-17 01:23:43 -0500 | |
|---|---|---|
| committer | 2018-01-17 01:23:43 -0500 | |
| commit | 9ae55884d2ccdb15e9eef7dabb4a76cb90b697c2 (patch) | |
| tree | 499549b1713ce88df4b9285bcba065cc79144acc /src/core/perf_stats.cpp | |
| parent | Merge pull request #34 from shinyquagsire23/hid-sharedmem-layouts-circbufs-meta (diff) | |
| parent | UI: Fix frame rate perf stats (diff) | |
| download | yuzu-9ae55884d2ccdb15e9eef7dabb4a76cb90b697c2.tar.gz yuzu-9ae55884d2ccdb15e9eef7dabb4a76cb90b697c2.tar.xz yuzu-9ae55884d2ccdb15e9eef7dabb4a76cb90b697c2.zip | |
Merge pull request #60 from jroweboy/game-frame
UI: Fix frame rate perf stats
Diffstat (limited to 'src/core/perf_stats.cpp')
| -rw-r--r-- | src/core/perf_stats.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp index 26752699e..ad3b56fcc 100644 --- a/src/core/perf_stats.cpp +++ b/src/core/perf_stats.cpp | |||
| @@ -69,7 +69,7 @@ PerfStats::Results PerfStats::GetAndResetStats(u64 current_system_time_us) { | |||
| 69 | double PerfStats::GetLastFrameTimeScale() { | 69 | double PerfStats::GetLastFrameTimeScale() { |
| 70 | std::lock_guard<std::mutex> lock(object_mutex); | 70 | std::lock_guard<std::mutex> lock(object_mutex); |
| 71 | 71 | ||
| 72 | constexpr double FRAME_LENGTH = 1.0 / 60; // GPU::SCREEN_REFRESH_RATE; | 72 | constexpr double FRAME_LENGTH = 1.0 / 60; |
| 73 | return duration_cast<DoubleSecs>(previous_frame_length).count() / FRAME_LENGTH; | 73 | return duration_cast<DoubleSecs>(previous_frame_length).count() / FRAME_LENGTH; |
| 74 | } | 74 | } |
| 75 | 75 | ||