Difference between revisions of "Avoiding hiccups"

From JPCT
Jump to: navigation, search
(Created page with '<div>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…')
 
m (moved Avoiding hickups to Avoiding hiccups: Wrong spelling)
(No difference)

Revision as of 14:20, 31 January 2014

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.