Avoiding hiccups

Jump to: navigation, search
You should always try to avoid object creation as far as possible in your gameplay code. But maybe you still encounter strange hiccups at specific moments, like when an object first becomes visible.
In this case, you should take a look into World.compileAllObjects() and especially TextureManager.preWarm() functions.