Avoiding hiccups

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

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.