antvis / G6

♾ A Graph Visualization Framework in JavaScript.
https://g6.antv.antgroup.com/
MIT License
11.15k stars 1.33k forks source link

官网实例,若一次性生成的节点较多,控制台一直打印 [Violation] 'setInterval' handler took <N>ms #3366

Closed AmieJing closed 11 months ago

AmieJing commented 2 years ago

官网实例,一次性生成的节点较多,控制台一直打印 [Violation] 'setInterval' handler took ms 和[Violation] 'requestAnimationFrame' handler took ms image

Yanyan-Wang commented 2 years ago

请提供在线复现 demo

AmieJing commented 2 years ago

https://codesandbox.io/s/vibrant-mendeleev-6ixgo?file=/src/components/HelloWorld.vue image

Yanyan-Wang commented 2 years ago

https://stackoverflow.com/questions/42218699/chrome-violation-violation-handler-took-83ms-of-runtime/44824402#44824402

应该不影响运行,只是优化提示。在较早期的 chrome 中才会出现。

AmieJing commented 2 years ago

确实不影响运行,不应该是Chrome版本问题,我查了浏览器是最新版本 image

likhita-8091 commented 1 year ago

这个会造成页面卡顿,即使我离开了这个页面

likhita-8091 commented 1 year ago

请问怎么解决

github-actions[bot] commented 11 months ago

This issue has been closed because it has been outdate for a long time. Please open a new issue if you still need help. 这个 issue 已经被关闭,因为 它已经过期很久了。 如果你仍然需要帮助,请创建一个新的 issue。