eliminate mid-frame calls into full update step via os_window_first_paint; pull up outside regular frontend frame boundaries; fixes incorrect per-frame dbgi scope usage

This commit is contained in:
Ryan Fleury
2024-08-06 07:07:44 -07:00
parent 3e6b8a3c66
commit ebaf83172f
2 changed files with 26 additions and 16 deletions
+6 -12
View File
@@ -8358,18 +8358,12 @@ df_window_update_and_render(Arena *arena, DF_Window *ws, DF_CmdList *cmds)
scratch_end(scratch);
}
//////////////////////////////
//- rjf: show window after first frame
//
{
if(ws->frames_alive == 0)
{
os_window_first_paint(ws->os);
}
ws->frames_alive += 1;
}
//////////////////////////////
//- rjf: increment per-window frame counter
//
ws->frames_alive += 1;
ProfEnd();
}