made a new hashtable container: HMapChained

Will be used isntead of the zpl in some places
This commit is contained in:
2024-05-14 11:47:44 -04:00
parent 12c99bee26
commit 26771ff2fd
23 changed files with 512 additions and 259 deletions

View File

@ -13,6 +13,7 @@ import "core:prof/spall"
import rl "vendor:raylib"
Path_Assets :: "../assets/"
Path_Shaders :: "../shaders/"
Path_Input_Replay :: "scratch.sectr_replay"
Persistent_Slab_DBG_Name := "Peristent Slab"
@ -276,12 +277,10 @@ reload :: proc( prof : ^SpallProfiler, persistent_mem, frame_mem, transient_mem,
slab_reload( persistent_slab, persistent_allocator() )
font_provider_data.font_cache.hashes.backing = persistent_slab_allocator()
font_provider_data.font_cache.entries.backing = persistent_slab_allocator()
hmap_chained_reload( font_provider_data.font_cache, persistent_slab_allocator())
slab_reload( string_cache.slab, persistent_allocator() )
string_cache.table.hashes.backing = persistent_slab_allocator()
string_cache.table.entries.backing = persistent_slab_allocator()
zpl_hmap_reload( & string_cache.table, persistent_slab_allocator())
slab_reload( frame_slab, frame_allocator())
slab_reload( transient_slab, transient_allocator())