I have got a lot of conditional if´s and switches in order to check and compare positions. there are probably thousands of references to constants in each frame render :
if(sprite.getY>10.2f) accel+=2f;
Leaving asside the readability, would thousands of lines like the one bellow be faster than thousands of lines like the upper one?
public static final float MINYPOS = 10.2f;
public static final float ACCELY = 2f;
.....
if(sprite.getY>MINYPOS) accel+=ACCELY;