diff options
| author | James Rowe <jroweboy@gmail.com> | 2018-01-16 20:44:02 -0700 |
|---|---|---|
| committer | James Rowe <jroweboy@gmail.com> | 2018-01-16 20:44:02 -0700 |
| commit | 263386fe42d9017fc0896248e01ea2519c67f19b (patch) | |
| tree | a788c72d203975c4e2b2ae3416df23c4988fd059 /src/core/perf_stats.cpp | |
| parent | d4e594651f320904b7d6ee7a3bf19cdd01b0e4c8 (diff) | |
UI: Fix frame rate perf stats
Adds in a missing EndGameFrame when nvdrv swaps buffers
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 26752699e3..ad3b56fcc8 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) { double PerfStats::GetLastFrameTimeScale() { std::lock_guard<std::mutex> lock(object_mutex); - constexpr double FRAME_LENGTH = 1.0 / 60; // GPU::SCREEN_REFRESH_RATE; + constexpr double FRAME_LENGTH = 1.0 / 60; return duration_cast<DoubleSecs>(previous_frame_length).count() / FRAME_LENGTH; } |
