Login  Register

Re: New to JOGL / NEWT

Posted by iexus on Dec 29, 2010; 6:06pm
URL: https://forum.jogamp.org/New-to-JOGL-NEWT-tp2157407p2163850.html

Thank you I will give all of those a look!

One question I did have about using an Animator... I tried using an FPSAnimator and a simple GLCanvas (walk before you run :D) however when I set the FPS to 60 .. it seemed to run at 125 ish.

I do my timings using System.nanoTime(); and have done in all the thing I make in Java so I am a little confused.

I then saw somewhere that using FPSAnimator was not recommended as it behaves differently on windows / linux and can have drift / innacurate results. Is this true?

In which case do I simply enforce my own timings using Animator and thread.sleep(); methods on animator? If so, then what is the point of animator? It just seems to be a thread that ticks and calls display ... although I guess it is creating GLEvents? Could I not simply not use the Animator and instead write a simpler Thread class with my own timings?

Unsure if animator provides any other functionality and how people acheive accurate frame rates.