Draw once when time & mouse uniforms are not utilized.
jpryne opened this issue · 1 comments
jpryne commented
How about letting the gpu take a nap while we're thinking? Currently, it just keeps redrawing & running the battery down even if nothing is changing.
emackey commented
Hard to say for certain that "nothing" is changing. Time, mouse, backBuffer
, surfacePosition
, and window size can all affect the results.
More broadly though, this is not in the spirit of GLSL Sandbox. It's a site for prototyping and demoing shaders, and the best ones here always have something going on.
Note that we do make use of requestAnimationFrame
, which means if you minimize the browser or switch to another tab, it will stop drawing.