Emulation Homebrew VRAM and Performance Monitoring Methods for NDS Game Development?

DigitalDesignDude

Member
OP
Newcomer
Joined
May 29, 2020
Messages
23
Trophies
0
XP
931
Country
Canada
I develop NDS homebrew games using PALIB and DS Game Maker and wonder if there's any existing tools or emulators that offer some way of monitoring how much VRAM and other performance resources that my game is using at any given time.

I hope such a tool would provide a better indication of where my code isn't efficient or is taking up too much memory, and save me from having to play test my games until they crash or the following VRAM depletion message shows up.


PALIB VRAM Depletion Message.png


Aside from that message and the game crashing, I currently have no other way of knowing how much memory I'm using and would appreciate any direction or recommendations for tools/emulators that could help me.

Thanks you!
 

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,321
Country
United Kingdom
I don't know PALIB that well to suggest what it might have internally but various things are given to developers (which get left out of final builds players and ROM hackers see). Indeed if it has a no more VRAM thing within it you can probably twist it to display how much is free. This might also include speaking to GDB via a bridge (desmume having some options here).

RAM usage is potentially more tricky as not everything will overwrite memory to blank when it is done so you are relying on its internal stuff when you malloc or whatever, and if you are doing inline assembly as well that gets even more tricky.

https://problemkaputt.de/gba.htm has some other options, however most things are more about CPU usage as that is what most people play to when doing things on the handhelds (there even being patches from hackers to reduce CPU and thus power usage).

It might almost pay to go the other way and figure out limits for things on screen and what you need to do, and then making that happen.
 
  • Like
Reactions: DigitalDesignDude

DigitalDesignDude

Member
OP
Newcomer
Joined
May 29, 2020
Messages
23
Trophies
0
XP
931
Country
Canada
I don't know PALIB that well to suggest what it might have internally but various things are given to developers (which get left out of final builds players and ROM hackers see). Indeed if it has a no more VRAM thing within it you can probably twist it to display how much is free. This might also include speaking to GDB via a bridge (desmume having some options here).

RAM usage is potentially more tricky as not everything will overwrite memory to blank when it is done so you are relying on its internal stuff when you malloc or whatever, and if you are doing inline assembly as well that gets even more tricky.

https://problemkaputt.de/gba.htm has some other options, however most things are more about CPU usage as that is what most people play to when doing things on the handhelds (there even being patches from hackers to reduce CPU and thus power usage).

It might almost pay to go the other way and figure out limits for things on screen and what you need to do, and then making that happen.
Thanks for your thoughts and the link to more information.

I see now it will not be a simple as looking at something like a VRAM meter and trying to stay underneath a certain value. Though that would be nice for those without a lot of backend knowledge of Nintendo DS memory allocation and CPU usage.

I'll have to do some studying. Thanks again!
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Psionic Roshambo @ Psionic Roshambo: Maybe but is it worth it?