AndEngine icon indicating copy to clipboard operation
AndEngine copied to clipboard

Engine is now aware of being reloaded

Open nazgee opened this issue 13 years ago • 3 comments

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).

nazgee avatar Feb 04 '13 21:02 nazgee

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.

nazgee avatar Feb 06 '13 02:02 nazgee

Great fix! No more problems with my particle systems when resuming since I added this. Thanks

icesteve avatar Feb 26 '13 03:02 icesteve

Apparently there is something wrong with it, and Nicolas does not want to say what it is... :)

nazgee avatar Feb 26 '13 22:02 nazgee