You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2021/09/06 02:33:14 UTC

[GitHub] [echarts] HelKyle commented on issue #2886: 无任何操作的情况下,requestAnimationFrame() 被无限的调用

HelKyle commented on issue #2886:
URL: https://github.com/apache/echarts/issues/2886#issuecomment-913293698


   > 这个只是注册浏览器每一帧的回调,有需要绘制的时候重绘,其余时候只是通过一个 flag 判断是否需要重绘,没有什么开销,c3.js 没有是因为它是 svg 的,刷新重绘都是浏览器调度的
   
   看起来 `requestAnimationFrame` 的调用会导致频繁的 `Recalculate Style` 和 `Update Layer Tree`,导致页面掉帧,有没有办法终止这个逻辑,如果没有用到的话。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org