arena allocators are cool. idea:
- mmap 1gb of virtual memory
- use this for for all game memory
- saving the *entire state* of your game is just a matter of the OS commiting dirty pages of your game memory to disk.
- close game, reopen. game instantly loads because of the previous game memory which is already in the OS page cache.
- amazing for playtesting: if players get stuck you can compress and send an entire snapshot of the memory game state to a dev and then dev can continue playing from their exact game state.
I wonder if any game engines do this.
this is similar to how nostrdb works when loading notedeck, which is why its so fast to load, but I only use that for DB memory and not everything.
🦀 what kind of game do you have in mind?
Please Login to reply.
just taking a stab at making a game in rust on my weekends. not gonna say much about it except random excerpts like these