diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-10-12 13:26:38 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-10-12 13:26:38 +0200 |
commit | a4ae11d63e83323c30e07f3eef1cc7e7829df6df (patch) | |
tree | 62c0016e16688489e05fadd2019b6c4e51ce565f /src | |
parent | Core_Timing: Fix tests. (diff) | |
download | yuzu-a4ae11d63e83323c30e07f3eef1cc7e7829df6df.tar yuzu-a4ae11d63e83323c30e07f3eef1cc7e7829df6df.tar.gz yuzu-a4ae11d63e83323c30e07f3eef1cc7e7829df6df.tar.bz2 yuzu-a4ae11d63e83323c30e07f3eef1cc7e7829df6df.tar.lz yuzu-a4ae11d63e83323c30e07f3eef1cc7e7829df6df.tar.xz yuzu-a4ae11d63e83323c30e07f3eef1cc7e7829df6df.tar.zst yuzu-a4ae11d63e83323c30e07f3eef1cc7e7829df6df.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/core/core_timing.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 780c6843a..0e9570685 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -203,14 +203,13 @@ void CoreTiming::Advance() { } void CoreTiming::ResetRun() { - for (std::size_t core = 0; core < num_cpu_cores; core++) { - downcounts[core] = MAX_SLICE_LENGTH; - time_slice[core] = MAX_SLICE_LENGTH; - } + downcounts.fill(MAX_SLICE_LENGTH); + time_slice.fill(MAX_SLICE_LENGTH); current_context = 0; // Still events left (scheduled in the future) if (!event_queue.empty()) { - s64 needed_ticks = std::min<s64>(event_queue.front().time - global_timer, MAX_SLICE_LENGTH); + const s64 needed_ticks = + std::min<s64>(event_queue.front().time - global_timer, MAX_SLICE_LENGTH); downcounts[current_context] = needed_ticks; } |