Hello everyone ^^
I'm currently working on a voxel engine for the Nintendo GameCube as part of my final year project. I'm using the native GX API and focusing heavily on memory optimization, given the system's limited 24MB of RAM. As my project revolves around optimizing performance and memory usage, it's crucial for me to have a reliable way to monitor how much memory is available and how much I've used during runtime.
I've been using malloc and calloc to dynamically allocate memory, and I'm trying to track memory usage by calling functions like SYS_GetArena1Hi() and SYS_GetArena1Lo() before and after allocations. However, I'm not seeing any changes in the reported memory, even though I am sure the allocations are happening.
Is there a better way in libOGC to track the actual memory usage, especially when using dynamic memory allocations? Or perhaps I'm missing a key detail about how memory management works on the GameCube? Any advice or alternative methods would be greatly appreciated, as memory optimization is a key part of my project!
Thanks in advance for your help!