Fix frame_counter deadlock
All checks were successful
eden-license / license-header (pull_request) Successful in 16s
All checks were successful
eden-license / license-header (pull_request) Successful in 16s
This commit is contained in:
parent
331e332fde
commit
006234de42
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue