summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-03-07 23:11:01 -0500
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-03-07 23:11:01 -0500
commit67560296c697914f6bf809dca2ab555038b19aa2 (patch)
tree8e2d30537f11f326eae5fcf905f3965075ff9da2 /src/core
parent1073346c7f5541056b7ea88a701ad2e8e91a89b2 (diff)
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 'src/core')
-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 {
}
void SpeedLimiter::DoSpeedLimiting(microseconds current_system_time_us) {
- if (!Settings::values.use_speed_limit.GetValue() ||
- Settings::values.use_multi_core.GetValue()) {
+ if (Settings::values.use_multi_core.GetValue() ||
+ !Settings::values.use_speed_limit.GetValue()) {
return;
}