eliminate manual notification of entity / panel mutations for soft halts & config changes; just compute a hash of all run parameterization state every time you run, and every frame, and if they change, soft halt refresh

This commit is contained in:
Ryan Fleury
2024-08-29 11:34:29 -07:00
parent 9bba4f224c
commit bb553b4ec0
6 changed files with 146 additions and 164 deletions
+6
View File
@@ -6089,6 +6089,12 @@ df_window_update_and_render(Arena *arena, DF_Window *ws, D_CmdList *cmds)
ws->hover_eval_open_t = 0;
}
// rjf: reset focus state if hover eval is not being built
if(!build_hover_eval || ws->hover_eval_string.size == 0 || !hover_eval_is_open)
{
ws->hover_eval_focused = 0;
}
// rjf: build hover eval
if(build_hover_eval && ws->hover_eval_string.size != 0 && hover_eval_is_open)
DF_Font(DF_FontSlot_Code)