In-engine profiling

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

In-engine profiling

Post by Radikalizm »

This isn't an irrlicht specific question, but it's relevant to game programming

I'm working on an in-engine profiling system for my own game engine, right now the only thing it does is keeping track of the framerate and keeping a limited list of frame draw times.

I'm planning on adding per-system profiling so I can keep track of performance of all engine aspects separately (like physics, sound, graphics, AI, etc.) and a system for keeping track of my engine's memory footprint and info on where the memory is being used (writing design documents for this as we speak)

The thing is that right now I have this nagging feeling that I'm missing some useful aspects which I could build into this profiler, so my question in general is 'What do you think could be useful in a profiling system?'

Of course, this has to be as non-intrusive as possible since I don't want to lose too many clock cycles on gathering profiling data (I'm an extreme optimization kind of guy)

So, any ideas?
CuteAlien
Admin
Posts: 9843
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post by CuteAlien »

Hm, no ideas, but in case you want to take a look I have a simple speed-profiler coded here: http://www.michaelzeilfelder.de/irrlich ... iler.patch

To avoid the missed clock cycles I worked simply with a define.

Or more readable: http://irrlicht.sourceforge.net/phpBB2/ ... highlight= (it's nearly the same - just back then I was using stl instead of irrlicht core-classes)
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Radikalizm
Posts: 1215
Joined: Tue Jan 09, 2007 7:03 pm
Location: Leuven, Belgium

Post by Radikalizm »

CuteAlien wrote:Hm, no ideas, but in case you want to take a look I have a simple speed-profiler coded here: http://www.michaelzeilfelder.de/irrlich ... iler.patch

To avoid the missed clock cycles I worked simply with a define.

Or more readable: http://irrlicht.sourceforge.net/phpBB2/ ... highlight= (it's nearly the same - just back then I was using stl instead of irrlicht core-classes)
By design this is pretty much the same as what I had in mind, but I think I'm going to create a profiling GUI element (fancy graphs!) instead of letting the profiler handle the drawing of the data
I'll first have to write a GUI system tho.. ^^
Post Reply