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

计时器造成CPU开销耗电 #3579

Closed
1 task
samuelhsin opened this issue Aug 18, 2021 · 1 comment
Closed
1 task

计时器造成CPU开销耗电 #3579

samuelhsin opened this issue Aug 18, 2021 · 1 comment

Comments

@samuelhsin
Copy link

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://g2.antv.vision/en/examples/case/line#line1

Steps to reproduce

tab停在当页,打开Dev Tools 然后查看CPU使用率,无法降到1%以下

Environment Info
g2 4.1.24
System -
Browser -

应该d3-timer.js的一个timer造成的,可以查看Timeline.js的初始化定时器部份

@hustcc
Copy link
Member

hustcc commented Aug 19, 2021

因为开启动画,所以会有一个动画执行的 timer,这个消耗其实是一个空执行逻辑。

@hustcc hustcc closed this as completed Oct 9, 2021
@hustcc hustcc reopened this Oct 9, 2021
@hustcc hustcc closed this as completed Jun 22, 2022
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

2 participants