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

A performance problem #12

Open
nkh0472 opened this issue Sep 23, 2022 · 1 comment
Open

A performance problem #12

nkh0472 opened this issue Sep 23, 2022 · 1 comment

Comments

@nkh0472
Copy link
Contributor

nkh0472 commented Sep 23, 2022

After pressing the “开始” button, the animation will play normally for about 5 seconds.
After that, the animation will be extremely stuttering, and the animation frame of the original 20ms will rise to about 300ms.
The devtools performance tool analysis results suggest that this may be related to garbage collection after the JS heap is full.

The problem exists under the v1.6.4, v3.6.0, v3.6.1 of jQuery. So, the problem is probably not much related to dependencies.


image

@nkh0472
Copy link
Contributor Author

nkh0472 commented Sep 23, 2022

The duration of the normal state is variable: taking this picture as an example, the normal state only lasts about 2 seconds; while in the abnormal state, the interval between each rendering reaches about 1000ms.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant