renderer: considerable fixes to repaint logic

This commit is contained in:
vaxerski 2023-10-04 13:39:40 +01:00
parent f8c18ff797
commit 4531717f3e
2 changed files with 4 additions and 2 deletions

View file

@ -156,7 +156,8 @@ void Events::listener_monitorFrame(void* owner, void* data) {
if (!PMONITOR->tearingState.frameScheduledWhileBusy)
return; // we did not schedule a frame yet to be displayed, but we are tearing. Why render?
PMONITOR->tearingState.nextRenderTorn = true;
PMONITOR->tearingState.nextRenderTorn = true;
PMONITOR->tearingState.frameScheduledWhileBusy = false;
}
static auto* const PENABLERAT = &g_pConfigManager->getConfigValuePtr("misc:render_ahead_of_time")->intValue;