Difference between revisions of "Avoiding hiccups"

From JPCT
Jump to: navigation, search
Line 1: Line 1:
<div>You should always [[Performance_tips_for_Android|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.</div>
+
<div>You should always [[Performance_tips_for_Android#Avoid object creations|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.</div>
 
<div>In this case, you should take a look into '''World.compileAllObjects()''' and '''TextureManager.preWarm()''' functions.</div>
 
<div>In this case, you should take a look into '''World.compileAllObjects()''' and '''TextureManager.preWarm()''' functions.</div>

Revision as of 13:29, 31 January 2014

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 TextureManager.preWarm() functions.