We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hey all,
I have made a stopwatch/alarm and use the draw() function to decrement to calculate the time remaining. The problem is, the program will pause when you alt-tab to a different window. I understand that this normally is what most people want, but is there a way that you can tell p5 to keep running in the background?
If I can't, then my stopwatch/alarm isn't much use unless you want to keep that page open constantly :D.
Thanks, Steve
Answers
All modern browsers throttle performance for inactive/outta-focus tabs: :-&
http://StackOverflow.com/questions/15871942/how-do-browsers-pause-change-javascript-when-tab-or-window-is-not-active
My advice is for you to stick w/ Processing's Java Mode for stopwatch/alarm programs! :-\"