Difference between revisions of "Avoiding hiccups"

From JPCT
Jump to: navigation, search
m
 
Line 1: Line 1:
 
<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>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 especially '''TextureManager.preWarm()''' functions.</div>

Latest revision as of 14:30, 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 especially TextureManager.preWarm() functions.