diff options
author | Lioncash <mathew1800@gmail.com> | 2018-08-31 18:21:34 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-08-31 22:30:14 +0200 |
commit | 4a587b81b285bcd41246329e89591be7cfe37c8a (patch) | |
tree | 8eda46d4aac083d23a52223e1a3fc46bc6690a6c /src/core/perf_stats.cpp | |
parent | Merge pull request #1205 from bunnei/improve-rasterizer-cache-2 (diff) | |
download | yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.tar yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.tar.gz yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.tar.bz2 yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.tar.lz yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.tar.xz yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.tar.zst yuzu-4a587b81b285bcd41246329e89591be7cfe37c8a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/perf_stats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp index 93d23de21..7d95816fe 100644 --- a/src/core/perf_stats.cpp +++ b/src/core/perf_stats.cpp @@ -40,7 +40,7 @@ void PerfStats::EndGameFrame() { game_frames += 1; } -PerfStats::Results PerfStats::GetAndResetStats(microseconds current_system_time_us) { +PerfStatsResults PerfStats::GetAndResetStats(microseconds current_system_time_us) { std::lock_guard<std::mutex> lock(object_mutex); const auto now = Clock::now(); @@ -49,7 +49,7 @@ PerfStats::Results PerfStats::GetAndResetStats(microseconds current_system_time_ const auto system_us_per_second = (current_system_time_us - reset_point_system_us) / interval; - Results results{}; + PerfStatsResults results{}; results.system_fps = static_cast<double>(system_frames) / interval; results.game_fps = static_cast<double>(game_frames) / interval; results.frametime = duration_cast<DoubleSecs>(accumulated_frametime).count() / |