#144346 - load*,8,1 - Wed Oct 31, 2007 9:17 pm
Hi everyone!
I'm currently working on porting a SDL-based game to the Nintendo DS. After a couple of days of happy porting I'm now running into some serious memory problems. Under Linux the game uses about 4,5 MB of memory so I think porting should be possible.
1.) It seems like I can only malloc about 2 MB of RAM. I read somewhere that malloc in libnds does not use the whole main memory. How much does it actually use? And is there a way to use all of it?
2.) Could I use VRAM for some data as well? The game does use a great amount of sprites (maybe 1 MB), but they are not the standard console shaped type of sprite. So I'd rather just use VRAM as an extended memory.
I'm currently working on porting a SDL-based game to the Nintendo DS. After a couple of days of happy porting I'm now running into some serious memory problems. Under Linux the game uses about 4,5 MB of memory so I think porting should be possible.
1.) It seems like I can only malloc about 2 MB of RAM. I read somewhere that malloc in libnds does not use the whole main memory. How much does it actually use? And is there a way to use all of it?
2.) Could I use VRAM for some data as well? The game does use a great amount of sprites (maybe 1 MB), but they are not the standard console shaped type of sprite. So I'd rather just use VRAM as an extended memory.