Hey,
I'm following the stream on Youtube and I'm quite far behind with day 15. I'm a physics student, which means I'm not a developer - so bear with me. :)
On day 14 (I think) Casey wrote the VirtualAlloc with TransientStorage and PermanentStorage and set the size to 4Gb. I did that too, but the allocation used to fail with that much memory. (I'm working on a 64bit Win7 Laptop with 4Gb of RAM..)
So I reduced it to 3Gb and it works most of the time? Why is that?
I mean it allocates virtual memory, which is not physical memory but looks like real memory as far as my process/game is concerned. (Casey talked about that the OS does all that in the background)
So why when I use VisualStudio to debug, the Game exits because I dont get enough memory and literally seconds after that I restart it and it gets the 3Gb?
Ps: And why does Casey have a -DHANDMADE_WIN32=1 in his build script? I somehow missed why this is defined in the source code..
(I only use the -DHANDMADE_INTERNAL=1 -DHANDMADE_SLOW=1)