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 & HelpSyntax Questions › frameCount limit
Page Index Toggle Pages: 1
frameCount limit (Read 581 times)
frameCount limit
Mar 7th, 2008, 4:47am
 
Hello.

Right now I'm working on a Processing program which will be used for a museum station. This will make the program run for around 10 hours before computer restarts.

Are there any limitations, besides the variable frameCount being 32 bits, for a program running lots of hours nonstop?

What happens if I reach the maximum frameCount? Does Processing break or does it reset to 0 and keeps going?
Re: frameCount limit
Reply #1 - Mar 7th, 2008, 9:30am
 
At 60 frames/second frameCount (a signed 32-bit int) will give you more than a year of runtime before it overflows.
Re: frameCount limit
Reply #2 - Mar 7th, 2008, 10:18am
 
Thanks. I thought it would be a long time anyway.
Page Index Toggle Pages: 1