Avoiding hiccups

From JPCT
Revision as of 14:20, 31 January 2014 by Irony (Talk | contribs)

Jump to: navigation, search
Hopefully you already try to avoid object creation as far as possible by utilizing object pools and always use JPCT's functions that take an existing object as parameter, instead of creating a new one. But maybe you still encounter hiccups at specific moments, like when an object first becomes visible.
In this case, you may try to look into World.compileAllObjects() and TextureManager.preWarm() functions.