First of all, great job in recreating the original engine - I appreciate technologies used, namely CMake and SDL. This is why I could easily cross compile your engine to PSP using psptoolchain.
Problem is, PSP has 32, and in later models, 64 MB of RAM, thus causing throwing bad alloc when loading the AGG file which is around 40 MB (loading program into memory already takes 19 MB).
Do you plan creating a buffered file reader, so to not load whole AGG file into memory, but rather chunk-by-chunk? It would make this memory spike when loading assets much smaller, thus actually allowing to play on memory constrained platforms.
First of all, great job in recreating the original engine - I appreciate technologies used, namely CMake and SDL. This is why I could easily cross compile your engine to PSP using psptoolchain.
Problem is, PSP has 32, and in later models, 64 MB of RAM, thus causing throwing
bad allocwhen loading the AGG file which is around 40 MB (loading program into memory already takes 19 MB).Do you plan creating a buffered file reader, so to not load whole AGG file into memory, but rather chunk-by-chunk? It would make this memory spike when loading assets much smaller, thus actually allowing to play on memory constrained platforms.