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

[g-plugin-device-renderer] 隐藏的图形不应该提交绘制命令 #1509

Open
xiaoiver opened this issue Aug 31, 2023 · 0 comments
Open
Assignees

Comments

@xiaoiver
Copy link
Contributor

xiaoiver commented Aug 31, 2023

绘制 5k Line 和 5w Circle 时,由于使用了 instanced array,会批量绘制,并且减少 Program 的切换。
例如 useProgram ID 2 绘制所有 line,过程中不需要切换:

Image

但如果加入了文本,即使是隐藏的,也会导致 program 的频繁切换:

Image

@xiaoiver xiaoiver self-assigned this Aug 31, 2023
@xiaoiver xiaoiver changed the title [g-plugin-device-renderer] 隐藏的图形应该提交绘制命令 [g-plugin-device-renderer] 隐藏的图形不应该提交绘制命令 Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

No branches or pull requests

1 participant