-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Animated GIFs freeze after the browser tab is off screen. #5434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@stalgiag Interesting. I see from your example in #4824 how the use of |
So, what seems to be going on is that since (This is also basically my first ever contribution—to anything—so hopefully that was useful information.) |
Most appropriate sub-area of p5.js?
Details about the bug:
Repro Steps
image()
in every call todraw()
with all default settings.Expected
The GIF should still be animating
Actual
The GIF is frozen for some period of time (the longer the tab was off screen the longer it is frozen).
Example
https://editor.p5js.org/Kumu-Paul/sketches/T_SbGe-yK
Cause
p5.Image.js line 227
This use of
deltaTime
is incorrect. This line should just be:The text was updated successfully, but these errors were encountered: