Control loop update

You can control the number of times the loop executes update?

@israel said:
You can control the number of times the loop executes update?


I gotta ask... why would you want to do this? Nothing is rendered until after update is finished... sooooo... I'm at a complete loss for why this would be needed. You can make as many changes as you want during the single update call.

what she said… but to give an answer:

[java]int count=0;

public void simpleUpdate(float tpf){

count++;

if(count>10){

app.stop();

}

}[/java]



but yeah, its worrying that you want this, you seem to do something completely wrong, like having framerate-dependent code or something.