Fix frame_counter deadlock
All checks were successful
eden-license / license-header (pull_request) Successful in 16s

This commit is contained in:
Gamer64 2025-08-07 13:58:41 +02:00
parent 331e332fde
commit 006234de42

View file

@ -50,10 +50,10 @@ static void RunThread(std::stop_token stop_token, Core::System& system,
if (auto* submit_list = std::get_if<SubmitListCommand>(&next.data)) { if (auto* submit_list = std::get_if<SubmitListCommand>(&next.data)) {
bool skip_frame = false; bool skip_frame = false;
if (Settings::values.frame_interpolation.GetValue()) { if (Settings::values.frame_interpolation.GetValue()) {
// Skip every other frame // Skip every other frame, but render frame 0
skip_frame = (frame_counter % 2 == 1); skip_frame = (frame_counter % 2 == 1);
frame_counter++;
} }
frame_counter++;
if (!skip_frame) { if (!skip_frame) {
scheduler.Push(submit_list->channel, std::move(submit_list->entries)); scheduler.Push(submit_list->channel, std::move(submit_list->entries));
} }