Fixes to shape cache and atlas region math

This commit is contained in:
2024-06-16 08:56:06 -04:00
parent fd3bb65aaf
commit 964c6c852d
4 changed files with 8 additions and 7 deletions

View File

@ -111,7 +111,7 @@ hmap_zpl_map_mut :: proc( using self : ^ HMapZPL( $ Type), map_proc : HMapZPL_Ma
}
hmap_zpl_grow :: proc( using self : ^ HMapZPL( $ Type ) ) -> AllocatorError {
new_num := array_grow_formula( entries.num )
new_num : u64 = cast(u64) hmap_closest_prime( cast(uint) array_grow_formula( entries.num ) )
return hmap_zpl_rehash( self, new_num )
}

View File

@ -17,7 +17,7 @@ MemoryTracker :: struct {
entries : Array(MemoryTrackerEntry),
}
Track_Memory :: true
Track_Memory :: false
memtracker_clear :: proc ( tracker : MemoryTracker ) {
when ! Track_Memory {