antvis / antvis/G

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

Open
#1,509 0 comments 0 reactions 1 assignee Claimed by @xiaoiver View on GitHub
Dominant language
TypeScript
Stars
1.2k
Forks
230
PR merge metrics
No merged PRs in 30d

Description

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

![Image](https://github.com/antvis/G/assets/3608471/898ec070-077a-434d-b0ae-3f201c2d2a42)

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

![Image](https://github.com/antvis/G/assets/3608471/ba84ad58-3bc5-4cae-ba5f-a106c0f199a7)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.