Improving MogreNewt debugger performances.


22-04-2007 07:46:17


Right now, the MogreNewt debugger uses a single ManualObject to draw the wireframe of the bodies. At each frame, everything needs to be redrawn. This is terribly slow. In most cases, there will be a lot of static or unmodified bodies.

I added a new "debug cache" in the Debugger class. It keeps track of the last state, position and orientation of each body. For each body, a ManualObject is associated. If nothing has changed, we redraw the previous ManualObject. It can also track bodies that have been destroyed.

Major performance improvements on scenes with some frozen objects (like a terrain or some static envrionment).

Voila! Patch coming soon if you guys are interested.