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 › Show real framerate - for optimizing code
Page Index Toggle Pages: 1
Show real framerate - for optimizing code? (Read 347 times)
Show real framerate - for optimizing code?
Feb 26th, 2008, 9:49pm
 
Hi there,

I'm trying to optimize my code. Some visuals that are generated by data sent over the network. Before I go into making improvements I'm trying to figure out how to measure whether they're effective or not.

How does the framerate work in Processing. Can I calculate the real framerate via the draw() method and use that as a measure of how speedy my code is?

Would appreciate any advice on measures I can setup to evaluate the changes I make. Any ideas or pointers to older threads? My searches revealed very little.


I'm using OPENGL in case that makes a difference.
Re: Show real framerate - for optimizing code?
Reply #1 - Feb 26th, 2008, 10:34pm
 
Code:
println(frameRate);
Re: Show real framerate - for optimizing code?
Reply #2 - Feb 26th, 2008, 10:35pm
 
I can't believe I never spotted that before.

*hangs head in shame*


Thanks for the help!
Page Index Toggle Pages: 1