#Run Sketch when browser window is occluded

7 messages · Page 1 of 1 (latest)

clear pollen
#

from my experience, when the browser window is occluded javascript runs a cycle approximately every second, which would probably mean a p5js frame per second

#

but p5js might be coded otherwise

clear pollen
#

hopefully there is a way to make it work with p5js

#

i dont know if its possible to disable the throttling itself for the whole page using just javascript, but another solution might be to change some browser flags

cerulean compass
#

What I usually do is pull out the tab into its own browser window, I find it keeps running as long as it's a stand along window (even if other apps go in front). Maybe that's not exactly right though?

sullen furnace