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

DigitalDesignDude

Member
OP
Newcomer
Joined
May 29, 2020
Messages
23
Trophies
0
XP
955
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,403
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
955
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
  • Xdqwerty @ Xdqwerty:
    @Psionic Roshambo, why are most new south park episodes half hour specials?
    +1
  • K3Nv2 @ K3Nv2:
    @Psionic Roshambo, let me get a Netflix account I've always been nice to you
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    I made a honey pepper glazed turkey breast for dinner turned out pretty bomb
  • K3Nv2 @ K3Nv2:
    We can Netflix and chill
  • Xdqwerty @ Xdqwerty:
    Nvm not half hour, but hour long
  • Xdqwerty @ Xdqwerty:
    Normal south park episodes are already half hour
  • Psionic Roshambo @ Psionic Roshambo:
    Got 2 free Xumo boxes they work pretty good
  • K3Nv2 @ K3Nv2:
    I'm happy to get anything most series don't make it pass 6 seasons
  • Psionic Roshambo @ Psionic Roshambo:
    Except Stars and Encore those are being a bitch lol
  • K3Nv2 @ K3Nv2:
    I may consider that onn pro box finally a media box with type A ;O
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, cuz the companies don't want em to
  • K3Nv2 @ K3Nv2:
    No it's revenue and demand south park could argue has a bigger audience than family guy about the same
    +1
  • K3Nv2 @ K3Nv2:
    Family guy is worth 300mill south parks worth 1Bill according to the interwebs
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, probably cuz family guy is more disliked compared to south park
  • K3Nv2 @ K3Nv2:
    It just does the same formula south park can press buttons without going overboard
  • Xdqwerty @ Xdqwerty:
    And bc most of the family guy budget is spent on the voice actors rather than on the animation
  • K3Nv2 @ K3Nv2:
    Southpark could spend 30k on a animated dick and people would laugh at it
    +2
  • K3Nv2 @ K3Nv2:
    lol one prescription to Lizzo
  • Xdqwerty @ Xdqwerty:
    who is lizzo?
  • Xdqwerty @ Xdqwerty:
    yawn
  • BakerMan @ BakerMan:
    guys, doge is dead
  • BakerMan @ BakerMan:
    let's get some o7s for that legendary dog

    o7
  • Xdqwerty @ Xdqwerty:
    i think its raining
    Xdqwerty @ Xdqwerty: i think its raining