diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-02-20 03:18:26 +0100 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-02-27 02:22:03 +0100 |
commit | 92c8bd4b1f650438274e50303a6d3f668924d071 (patch) | |
tree | 0c9e162129dabd2424ee329b51f5765a73f6a494 /src/core/frontend | |
parent | Add performance statistics to status bar (diff) | |
download | yuzu-92c8bd4b1f650438274e50303a6d3f668924d071.tar yuzu-92c8bd4b1f650438274e50303a6d3f668924d071.tar.gz yuzu-92c8bd4b1f650438274e50303a6d3f668924d071.tar.bz2 yuzu-92c8bd4b1f650438274e50303a6d3f668924d071.tar.lz yuzu-92c8bd4b1f650438274e50303a6d3f668924d071.tar.xz yuzu-92c8bd4b1f650438274e50303a6d3f668924d071.tar.zst yuzu-92c8bd4b1f650438274e50303a6d3f668924d071.zip |
Diffstat (limited to 'src/core/frontend')
-rw-r--r-- | src/core/frontend/emu_window.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp index 6b4637741..b65d6ff58 100644 --- a/src/core/frontend/emu_window.cpp +++ b/src/core/frontend/emu_window.cpp @@ -5,7 +5,7 @@ #include <algorithm> #include <cmath> #include "common/assert.h" -#include "common/profiler_reporting.h" +#include "core/core.h" #include "core/frontend/emu_window.h" #include "core/frontend/key_map.h" #include "video_core/video_core.h" @@ -104,8 +104,7 @@ void EmuWindow::AccelerometerChanged(float x, float y, float z) { void EmuWindow::GyroscopeChanged(float x, float y, float z) { constexpr float FULL_FPS = 60; float coef = GetGyroscopeRawToDpsCoefficient(); - float stretch = - FULL_FPS / Common::Profiling::GetTimingResultsAggregator()->GetAggregatedResults().fps; + float stretch = Core::System::GetInstance().perf_stats.Lock()->GetLastFrameTimeScale(); std::lock_guard<std::mutex> lock(gyro_mutex); gyro_x = static_cast<s16>(x * coef * stretch); gyro_y = static_cast<s16>(y * coef * stretch); |