From 568e8043bb9c1ee341ff0c4b165b4a0e45f2afea Mon Sep 17 00:00:00 2001 From: Ed_ Date: Thu, 7 Mar 2024 17:57:58 -0500 Subject: [PATCH] removing no longer used code from env --- code/env.odin | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/code/env.odin b/code/env.odin index fbf523f..9d9dddb 100644 --- a/code/env.odin +++ b/code/env.odin @@ -10,12 +10,6 @@ import rl "vendor:raylib" Memory_App : Memory -// TODO(Ed) : Make this obsolete -Memory_Base_Address :: Terabyte * 1 -Memory_Chunk_Size :: 2 * Gigabyte -Memory_Persistent_Size :: 256 * Megabyte -Memory_Trans_Temp_Szie :: (Memory_Chunk_Size - Memory_Persistent_Size ) / 2 - Memory_Base_Address_Persistent :: Terabyte * 1 Memory_Base_Address_Frame :: Memory_Base_Address_Persistent + Memory_Reserve_Persistent * 2 Memory_Base_Address_Transient :: Memory_Base_Address_Frame + Memory_Reserve_Frame * 2 @@ -28,7 +22,6 @@ Memory_Reserve_Frame :: 16 * Gigabyte Memory_Reserve_Transient :: 16 * Gigabyte Memory_Reserve_FilesBuffer :: 64 * Gigabyte -// TODO(Ed) : These are high for ease of use, they eventually need to be drastically minimized. Memory_Commit_Initial_Persistent :: 4 * Kilobyte Memory_Commit_Initial_Frame :: 4 * Kilobyte Memory_Commit_Initial_Transient :: 4 * Kilobyte @@ -72,7 +65,8 @@ files_buffer_allocator :: proc() -> Allocator { } general_slab_allocator :: proc() -> Allocator { - return slab_allocator( get_state().general_slab ) + using state := get_state() + return slab_allocator( general_slab ) } // TODO(Ed) : Implment host memory mapping api