mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-05 05:18:40 +00:00
eliminate more cruft in engine/frontend layers; sketch out new frontend msg processing loop
This commit is contained in:
@@ -7788,6 +7788,7 @@ d_tick(Arena *arena, DI_Scope *di_scope, D_CmdList *cmds, F32 dt)
|
||||
}
|
||||
arena_clear(d_state->msgs_arena);
|
||||
MemoryZeroStruct(&d_state->msgs);
|
||||
scratch_end(scratch);
|
||||
}
|
||||
|
||||
//////////////////////////////
|
||||
@@ -9610,27 +9611,3 @@ d_tick(Arena *arena, DI_Scope *di_scope, D_CmdList *cmds, F32 dt)
|
||||
|
||||
ProfEnd();
|
||||
}
|
||||
|
||||
internal void
|
||||
d_end_frame(void)
|
||||
{
|
||||
ProfBeginFunction();
|
||||
|
||||
//- rjf: write config changes
|
||||
ProfScope("write config changes")
|
||||
{
|
||||
for(D_CfgSrc src = (D_CfgSrc)0; src < D_CfgSrc_COUNT; src = (D_CfgSrc)(src+1)) ProfScope("write %.*s config data", str8_varg(d_cfg_src_string_table[src]))
|
||||
{
|
||||
if(d_state->cfg_write_issued[src])
|
||||
{
|
||||
d_state->cfg_write_issued[src] = 0;
|
||||
String8 path = d_cfg_path_from_src(src);
|
||||
os_write_data_list_to_file_path(path, d_state->cfg_write_data[src]);
|
||||
}
|
||||
arena_clear(d_state->cfg_write_arenas[src]);
|
||||
MemoryZeroStruct(&d_state->cfg_write_data[src]);
|
||||
}
|
||||
}
|
||||
|
||||
ProfEnd();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user