mattdesl / canvas-sketch

[beta] A framework for making generative artwork in JavaScript and the browser.
MIT License
5.01k stars 393 forks source link

With p5, recordings still continue to run at 60fps while fps set and throttled #120

Open ajayns opened 3 years ago

ajayns commented 3 years ago

Say I do this in the settings:

    duration: 5,
    playbackRate: 'throttle',
    fps: 1,

And then I log frameCount in the console, normally it does a 0 1 2 3 4 each second. But when I'm recording a video animation, it happens super fast as its as if went back to 60 fps while recording. Once the recording is done, again it does like a frame each second as it should have throughout.