mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-12-27 05:20:06 +00:00
Core_Timing: Address Remaining feedback.
This commit is contained in:
parent
91f6333e23
commit
a4ae11d63e
@ -203,14 +203,13 @@ void CoreTiming::Advance() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void CoreTiming::ResetRun() {
|
void CoreTiming::ResetRun() {
|
||||||
for (std::size_t core = 0; core < num_cpu_cores; core++) {
|
downcounts.fill(MAX_SLICE_LENGTH);
|
||||||
downcounts[core] = MAX_SLICE_LENGTH;
|
time_slice.fill(MAX_SLICE_LENGTH);
|
||||||
time_slice[core] = MAX_SLICE_LENGTH;
|
|
||||||
}
|
|
||||||
current_context = 0;
|
current_context = 0;
|
||||||
// Still events left (scheduled in the future)
|
// Still events left (scheduled in the future)
|
||||||
if (!event_queue.empty()) {
|
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;
|
downcounts[current_context] = needed_ticks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user