summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Morph2023-03-07 23:11:01 -0500
committerGravatar Morph2023-03-07 23:11:01 -0500
commit67560296c697914f6bf809dca2ab555038b19aa2 (patch)
tree8e2d30537f11f326eae5fcf905f3965075ff9da2
parenthid: Use nanosecond timestamps instead of ticks (diff)
downloadyuzu-67560296c697914f6bf809dca2ab555038b19aa2.tar.gz
yuzu-67560296c697914f6bf809dca2ab555038b19aa2.tar.xz
yuzu-67560296c697914f6bf809dca2ab555038b19aa2.zip
perf_stats: Check multicore first
SpeedLimiting is SC only. Since MC is performance oriented we should check for it first to skip checking use_speed_limit.
Diffstat (limited to '')
-rw-r--r--src/core/perf_stats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/perf_stats.cpp b/src/core/perf_stats.cpp
index f09c176f8..1231c0dc8 100644
--- a/src/core/perf_stats.cpp
+++ b/src/core/perf_stats.cpp
@@ -126,8 +126,8 @@ double PerfStats::GetLastFrameTimeScale() const {
126} 126}
127 127
128void SpeedLimiter::DoSpeedLimiting(microseconds current_system_time_us) { 128void SpeedLimiter::DoSpeedLimiting(microseconds current_system_time_us) {
129 if (!Settings::values.use_speed_limit.GetValue() || 129 if (Settings::values.use_multi_core.GetValue() ||
130 Settings::values.use_multi_core.GetValue()) { 130 !Settings::values.use_speed_limit.GetValue()) {
131 return; 131 return;
132 } 132 }
133 133