summaryrefslogtreecommitdiff
path: root/src/core/frontend/emu_window.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2017-02-20 13:56:58 -0800
committerGravatar Yuri Kunde Schlesner2017-02-26 17:22:03 -0800
commitb285c2a4ed29a126b5bcfe46e2784bd1870bdf82 (patch)
treea671ac87427fb63a64f51be260928cb39b8d3737 /src/core/frontend/emu_window.cpp
parentQt: Add tooltips to status bar displays (diff)
downloadyuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.gz
yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.tar.xz
yuzu-b285c2a4ed29a126b5bcfe46e2784bd1870bdf82.zip
Core: Make PerfStats internally locked
More ergonomic to use and will be required for upcoming changes.
Diffstat (limited to 'src/core/frontend/emu_window.cpp')
-rw-r--r--src/core/frontend/emu_window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp
index b65d6ff58..a155b657d 100644
--- a/src/core/frontend/emu_window.cpp
+++ b/src/core/frontend/emu_window.cpp
@@ -104,7 +104,7 @@ void EmuWindow::AccelerometerChanged(float x, float y, float z) {
104void EmuWindow::GyroscopeChanged(float x, float y, float z) { 104void EmuWindow::GyroscopeChanged(float x, float y, float z) {
105 constexpr float FULL_FPS = 60; 105 constexpr float FULL_FPS = 60;
106 float coef = GetGyroscopeRawToDpsCoefficient(); 106 float coef = GetGyroscopeRawToDpsCoefficient();
107 float stretch = Core::System::GetInstance().perf_stats.Lock()->GetLastFrameTimeScale(); 107 float stretch = Core::System::GetInstance().perf_stats.GetLastFrameTimeScale();
108 std::lock_guard<std::mutex> lock(gyro_mutex); 108 std::lock_guard<std::mutex> lock(gyro_mutex);
109 gyro_x = static_cast<s16>(x * coef * stretch); 109 gyro_x = static_cast<s16>(x * coef * stretch);
110 gyro_y = static_cast<s16>(y * coef * stretch); 110 gyro_y = static_cast<s16>(y * coef * stretch);