diff options
| author | 2018-08-31 21:50:12 -0400 | |
|---|---|---|
| committer | 2018-08-31 21:50:12 -0400 | |
| commit | 1c05c06e048c0471653275dcb00f391acbfd6324 (patch) | |
| tree | 8eda46d4aac083d23a52223e1a3fc46bc6690a6c /src/core/perf_stats.cpp | |
| parent | Merge pull request #1205 from bunnei/improve-rasterizer-cache-2 (diff) | |
| parent | core/core: Replace includes with forward declarations where applicable (diff) | |
| download | yuzu-1c05c06e048c0471653275dcb00f391acbfd6324.tar.gz yuzu-1c05c06e048c0471653275dcb00f391acbfd6324.tar.xz yuzu-1c05c06e048c0471653275dcb00f391acbfd6324.zip | |
Merge pull request #1212 from lioncash/forward-decl
core/core: Replace includes with forward declarations where applicable
Diffstat (limited to 'src/core/perf_stats.cpp')
| -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() { | |||
| 40 | game_frames += 1; | 40 | game_frames += 1; |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | PerfStats::Results PerfStats::GetAndResetStats(microseconds current_system_time_us) { | 43 | PerfStatsResults PerfStats::GetAndResetStats(microseconds current_system_time_us) { |
| 44 | std::lock_guard<std::mutex> lock(object_mutex); | 44 | std::lock_guard<std::mutex> lock(object_mutex); |
| 45 | 45 | ||
| 46 | const auto now = Clock::now(); | 46 | const auto now = Clock::now(); |
| @@ -49,7 +49,7 @@ PerfStats::Results PerfStats::GetAndResetStats(microseconds current_system_time_ | |||
| 49 | 49 | ||
| 50 | const auto system_us_per_second = (current_system_time_us - reset_point_system_us) / interval; | 50 | const auto system_us_per_second = (current_system_time_us - reset_point_system_us) / interval; |
| 51 | 51 | ||
| 52 | Results results{}; | 52 | PerfStatsResults results{}; |
| 53 | results.system_fps = static_cast<double>(system_frames) / interval; | 53 | results.system_fps = static_cast<double>(system_frames) / interval; |
| 54 | results.game_fps = static_cast<double>(game_frames) / interval; | 54 | results.game_fps = static_cast<double>(game_frames) / interval; |
| 55 | results.frametime = duration_cast<DoubleSecs>(accumulated_frametime).count() / | 55 | results.frametime = duration_cast<DoubleSecs>(accumulated_frametime).count() / |