Skip to content

The animation gets stuck under load. #720

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

Closed
NickNovoselov opened this issue Jun 27, 2019 · 5 comments
Closed

The animation gets stuck under load. #720

NickNovoselov opened this issue Jun 27, 2019 · 5 comments
Labels
kind: bug Something isn't working

Comments

@NickNovoselov
Copy link

🐛 Bug Report

With a consistently low FPS, the animation stops and the elements can get stuck in one place for several minutes. If I correctly identified FrameLoop always go to this if and the animation does not move. In our project, I use Transition for the enter and leave of elements, but with low FPS it may simply not seem to users.

To Reproduce

Load the CPU with other calculations and start the animation.

Expected behavior

I expected that the animation would skip frames, but it would end at the same time, as if it did not skip frames.

Link to repro (highly encouraged)

In this example, if you increase the const LOAD. Slides hang between end states.

Environment

  • react-spring v8.0.18 ... v9.0.0-beta.22
  • react v16.8.6
@NickNovoselov NickNovoselov added the kind: bug Something isn't working label Jun 27, 2019
@bginsburg
Copy link

I can see the same issue happening with useSpring
v9.0.0-beta.22 made it better but still under load chrome freezes and needs reboot.

@bginsburg
Copy link

@NickNovoselov @aleclarson Any workaround for this?
Some way i can use to kill the animation if it happens?

@du5rte
Copy link

du5rte commented Jul 26, 2019

Facing similar issue on react-native when using loop scripting, also the SPRING SCRIPTING example on the website freezes my browser (chrome), which is similar to what I'm trying to do. both on version 8.0.27 and 9.0.0-beta.31

@aleclarson
Copy link
Contributor

Someone please try with 9.0.0-rc.2 (#985). 👍

@joshuaellis
Copy link
Member

closing due to inactivity. please use discussions or discord if you want more help or please consider creating a PR if you want to add a feature 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants