PDA

View Full Version : In-Game Memory Usage Info


Griggs
2002.09.05, 06:22 PM
Hi.
I am getting back into the swing of things and making a game again.

My game is Carbon OpenGL

Question:
What is the best (read: fastest) way to get stats about application memory usage in-game? Ideally I would like to be able to break down the usage by RAM, VRAM, etc. This would also be useful for tracking leaks.

Is there a good way to do this?

(and yes, I do use top, but I would like the info in-game.)

Thanks!

zzajin
2002.09.06, 12:12 AM
Maybe not the best way (probably too slow), but you can get the top info in-game.
You can run terminal commands from carbon - there is sample on code on the Apple site.

Then run "top -l5 -s0.01 -w | grep your_game"

and parse out the info