Engine is now aware of being reloaded
When game was resumed, Engine::onUpdate(pNanosecondsElapsed) was called with unusually big value of pNanosecondsElapsed. This caused Box2D simulation instability or undesired behavior of particle systems.
This patch fixes this issue by adding lag awarness to the Engine. Vertex, Texture and Font managers will return true from theirs update* method if feeling guilty of unusually long execution time (due to reloading).
This change can be made smaller if you do not like that it changes *Manager classes. Just let me know what you want to have changed.
Great fix! No more problems with my particle systems when resuming since I added this. Thanks
Apparently there is something wrong with it, and Nicolas does not want to say what it is... :)