Преглед на файлове

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.
Morph преди 3 години
родител
ревизия
67560296c6
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/core/perf_stats.cpp

+ 2 - 2
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;
     }