Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

重渲染的性能问题讨论 #91

Open
breakerrorchen opened this issue Dec 9, 2020 · 0 comments
Open

重渲染的性能问题讨论 #91

breakerrorchen opened this issue Dec 9, 2020 · 0 comments

Comments

@breakerrorchen
Copy link

通过平台的Canvas渲染,看似性能比原生系统组件的高。其实只是高在创建的时候。
但是系统的的View都存在一个RenderNode并用来Cache DisplayList。
这样当局部有一个View发生了变动,只要对这个View重新生成DisplayList就行了。

如果全屏都是用VirtualView的方案,那么他一定会渲染到一个的View上面,
那么整个屏幕的渲染指令都会算到这个View的RenderNode上面,
这个时候这个区域有一点点变化都需要重建整个View的渲染命令。
这比系统原生的策略比起来重太多了。

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

No branches or pull requests

1 participant