hello,
the FPSAnimator provided by jogl is pretty cool, although there are two points i would like to improve.
-
it is not possible to change the target-fps at runtime. (this is very useful for debugging)
-
it uses java’s TimerTask and Timer which rely on milliSecond accuracy. it would be more precise if it would do nanoSecond accuracy.
now only i dont know how i can achieve this. should i just call System.nanoTime in a loop before advancing to the next frame?
i would be very grateful if you could share your ideas on this topic! thanks!