diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-07 23:11:01 -0500 | 
|---|---|---|
| committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-03-07 23:11:01 -0500 | 
| commit | 67560296c697914f6bf809dca2ab555038b19aa2 (patch) | |
| tree | 8e2d30537f11f326eae5fcf905f3965075ff9da2 | |
| parent | 1073346c7f5541056b7ea88a701ad2e8e91a89b2 (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.
| -rw-r--r-- | src/core/perf_stats.cpp | 4 | 
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;      } | 
