Moved grime to its own dedicated file

This commit is contained in:
2024-01-30 02:27:45 -05:00
parent 282c071163
commit f27245f7a2
5 changed files with 77 additions and 81 deletions

View File

@ -1,5 +1,22 @@
package sectr
import "core:mem/virtual"
memory : Memory
memory_chunk_size :: 2 * Gigabyte
memory_persistent_size :: 128 * Megabyte
memory_trans_temp_size :: (memory_chunk_size - memory_persistent_size ) / 2
Memory :: struct {
live : ^ virtual.Arena,
snapshot : ^ virtual.Arena,
persistent : ^ TrackedAllocator,
transient : ^ TrackedAllocator,
temp : ^ TrackedAllocator
}
State :: struct {
project : Project,