diff options
| author | 2018-01-11 22:41:32 -0700 | |
|---|---|---|
| committer | 2018-01-12 19:11:05 -0700 | |
| commit | 70e65ee63a08c4f0716872a45faffade0e18e369 (patch) | |
| tree | 78f1ec5e39992cf581ca328027b7c8c8259e1bb9 /src/core/perf_stats.cpp | |
| parent | Removing unused settings and yuzu rebranding (diff) | |
| download | yuzu-70e65ee63a08c4f0716872a45faffade0e18e369.tar.gz yuzu-70e65ee63a08c4f0716872a45faffade0e18e369.tar.xz yuzu-70e65ee63a08c4f0716872a45faffade0e18e369.zip | |
Remove settings issues in sdl and fix a few files that broke in mingw
Diffstat (limited to 'src/core/perf_stats.cpp')
| -rw-r--r-- | src/core/perf_stats.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp index 2cdfb9ded..26752699e 100644 --- a/src/core/perf_stats.cpp +++ b/src/core/perf_stats.cpp | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | #include <mutex> | 6 | #include <mutex> |
| 7 | #include <thread> | 7 | #include <thread> |
| 8 | #include "common/math_util.h" | 8 | #include "common/math_util.h" |
| 9 | #include "core/hw/gpu.h" | ||
| 10 | #include "core/perf_stats.h" | 9 | #include "core/perf_stats.h" |
| 11 | #include "core/settings.h" | 10 | #include "core/settings.h" |
| 12 | 11 | ||
| @@ -70,7 +69,7 @@ PerfStats::Results PerfStats::GetAndResetStats(u64 current_system_time_us) { | |||
| 70 | double PerfStats::GetLastFrameTimeScale() { | 69 | double PerfStats::GetLastFrameTimeScale() { |
| 71 | std::lock_guard<std::mutex> lock(object_mutex); | 70 | std::lock_guard<std::mutex> lock(object_mutex); |
| 72 | 71 | ||
| 73 | constexpr double FRAME_LENGTH = 1.0 / GPU::SCREEN_REFRESH_RATE; | 72 | constexpr double FRAME_LENGTH = 1.0 / 60; // GPU::SCREEN_REFRESH_RATE; |
| 74 | return duration_cast<DoubleSecs>(previous_frame_length).count() / FRAME_LENGTH; | 73 | return duration_cast<DoubleSecs>(previous_frame_length).count() / FRAME_LENGTH; |
| 75 | } | 74 | } |
| 76 | 75 | ||