Skip to content
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

Web animation pausing/cancellation quirks #29

Open
nickschot opened this issue Mar 30, 2022 · 1 comment
Open

Web animation pausing/cancellation quirks #29

nickschot opened this issue Mar 30, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@nickschot
Copy link
Contributor

nickschot commented Mar 30, 2022

From benchmarking a little with a hundred instances of the interruption demo (in a single AnimationContext), I've noticed the browser may take quite a while to actually pause or cancel an animation. This can make interruption jarring if the browser is busy as the starting point may not match the measuring point anymore.

Not explicitly cancelling animations as well as pausing animations before any other work (through document.getAnimations() rather than per sprite) seems to mostly fix this.

Need to investigate further.

@nickschot
Copy link
Contributor Author

Part of the issue appears to be that pausing/playing animations is scheduled on the task queue and as such is mostly useless for our purposes as we synchronously want to measure.

Details: https://drafts.csswg.org/web-animations-1/#pausing-an-animation-section

@nickschot nickschot changed the title Look into animation pausing/cancellation quirks Look into web animation pausing/cancellation quirks Aug 19, 2022
@nickschot nickschot changed the title Look into web animation pausing/cancellation quirks Web animation pausing/cancellation quirks Aug 19, 2022
@nickschot nickschot added the bug Something isn't working label Aug 19, 2022
ef4 pushed a commit that referenced this issue Nov 18, 2022
Card model data consistency support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant