We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › about framerate accuracy
Page Index Toggle Pages: 1
about framerate accuracy (Read 446 times)
about framerate accuracy
Nov 11th, 2006, 11:24am
 
For running Processing in sync with other applications I was curious about the framerate accuracy. So I did a simple test using millis() to measure the time of running x frames at framerate x. Obviously this should be 1sec=1000 ms.

For some framerates (x=20,50,100) the time was actually 1000ms (+/-1ms) but for others I've got quite different values, for example x=30->990ms, x=60->960ms (!). This difference of 4% means about 5secs in 2 minutes. Interestingly the deviations seem to be "accurate" insofar as the jitter again is only +/-1ms.

So I'm puzzled by the results. Am I doing something wrong? Can somebody confirm these values and/or explain this behaviour?
Page Index Toggle Pages: 1