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 › Processing applet becomes unresponsive to input
Page Index Toggle Pages: 1
Processing applet becomes unresponsive to input (Read 410 times)
Processing applet becomes unresponsive to input
Feb 16th, 2010, 11:04pm
 
I'm making games in Processing, and they run fine normally, but when viewing them as an applet in Firefox I get occasional ~1-second "hiccups" where the game continues to run, but stops responding to input (apparently buffering/queueing button presses during that time, as my shooter game will fire a rapid stream of bullets once it starts responding again). Google Chrome on a Macbook doesn't have this problem - is this a known issue with Processing or Firefox, and is there any fix? It's very disruptive to gameplay.
Re: Processing applet becomes unresponsive to input
Reply #1 - Feb 16th, 2010, 11:11pm
 
Seems hard to say without more data, maybe the Java console will have some answers  It sounds like it might be a garbage collection issue, but ~1 second is a long pause for garbage collection.  In any case it will help you avoid all timing discrepancies by separating your update and render logic:

http://processing.org/discourse/yabb2/num_1254601139.html#2
Page Index Toggle Pages: 1