bugfix member cache invalidation tautology; group eval string2num strings onto arena along with table & nodes

This commit is contained in:
Ryan Fleury
2024-01-19 20:36:04 -08:00
parent e7046cb9d7
commit 0bc96a086a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -6705,7 +6705,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
}
//- rjf: clear members cache
if(df_state->member_cache_reggen_idx && !df_ctrl_targets_running())
if(df_state->member_cache_reggen_idx != new_reggen_idx && !df_ctrl_targets_running())
{
DF_RunLocalsCache *cache = &df_state->member_cache;
arena_clear(cache->arena);
+1 -1
View File
@@ -96,7 +96,7 @@ eval_string2num_map_insert(Arena *arena, EVAL_String2NumMap *map, String8 string
{
EVAL_String2NumMapNode *node = push_array(arena, EVAL_String2NumMapNode, 1);
SLLQueuePush(map->slots[slot_idx].first, map->slots[slot_idx].last, node);
node->string = string;
node->string = push_str8_copy(arena, string);
node->num = num;
}
}