constant fps strategy

it may be that this was asked before, but if, i couldn’t find the thread :slight_smile:

what are your strategies to get a constant fps rate? i’m using a typical main loop:

while(running) {
calculation();
renderFrame();
sync();
}

except that i don’t have a good strategy for sync(), and that’s why i’m asking :slight_smile:

ok, thanks in advance

well… this isn’t the way j3d is meant to be used.
The rendering is done automatically and the computations relative to the scene should be put in behaviors. Like this, you have an intuitive universe, with stable framerate.
…j3d doesn’t need any main loop, nor the methods you’ve mentionned above.