pipe through left-over OS events to subsequent frames; do not drop them

This commit is contained in:
Ryan Fleury
2024-01-23 16:44:57 -08:00
parent 04def874eb
commit fd0feefcf2
7 changed files with 52 additions and 4 deletions
+1 -2
View File
@@ -10894,7 +10894,6 @@ df_gfx_init(OS_WindowRepaintFunctionType *window_repaint_entry_point, DF_StateDe
Arena *arena = arena_alloc();
df_gfx_state = push_array(arena, DF_GfxState, 1);
df_gfx_state->arena = arena;
df_gfx_state->frame_arena = arena_alloc();
df_gfx_state->num_frames_requested = 2;
df_gfx_state->hist = hist;
df_gfx_state->key_map_arena = arena_alloc();
@@ -10941,7 +10940,6 @@ internal void
df_gfx_begin_frame(Arena *arena, DF_CmdList *cmds)
{
ProfBeginFunction();
arena_clear(df_gfx_state->frame_arena);
df_gfx_state->hover_line_set_this_frame = 0;
//- rjf: animate confirmation
@@ -11087,6 +11085,7 @@ df_gfx_begin_frame(Arena *arena, DF_CmdList *cmds)
arena_release(ws->hover_eval_arena);
arena_release(ws->arena);
SLLStackPush(df_gfx_state->free_window, ws);
ws->gen += 1;
}
}
}break;
-1
View File
@@ -662,7 +662,6 @@ struct DF_GfxState
{
// rjf: arenas
Arena *arena;
Arena *frame_arena;
// rjf: frame request state
U64 num_frames_requested;