Topic: Performance Profiling
I'm running out of things I can do on my netbook while commuting, as my netbook currently still renders at 2-4fps. This might be a graphics driver issue, but I had a look at what I can do to fix this and I couldn't find anything.
So I've begun profiling Maratis, to see if I can figure out exactly what it is that is causing it to slow down.
I have uploaded a sample frame to Pastebin. I've not profiled the entire engine yet, as you can see, but it's already shown some interesting things. For one thing, MaratisPlayer::graphicLoop is only taking 72ns (1%) and MaratisPlayer::logicLoop is taking 3us (22%). Also strange is that MLevel::getCurrentScene takes a huge 2us (14%)
The current profiles are done using my fork of Maratis but I've made only minor changes to Maratis, which I don't believe affect performance at all.
The level loaded is just the demo cube, one light, and a camera.
I will add more profiles when I've added more functions to the profiler, and if I've figured out some ways to potentially optimise Maratis. If anyone can see something I've missed, feel free to shout