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] 2D 图形使用更简单的剔除方式 #914

Closed
xiaoiver opened this issue Mar 18, 2022 · 0 comments
Closed

[g] 2D 图形使用更简单的剔除方式 #914

xiaoiver opened this issue Mar 18, 2022 · 0 comments

Comments

@xiaoiver
Copy link
Contributor

xiaoiver commented Mar 18, 2022

目前使用以下剔除方式:
antvis/g-webgl-compute#3

可以看出还是比较耗时的:
截屏2022-03-18 下午1 00 54

但对于 2D 图形,没有必要和视锥(6个面)进行完整比较,至少可以跳过 near 和 far 两个平面的检测。

xiaoiver added a commit that referenced this issue Mar 21, 2022
* fix: clear dirty rectangle when camera changed #908

* fix: skip testing near & far planes in frustum culling 2D shapes #914

* chore: lint

* feat: add miterLimit to Path / Line / Polyline / Polygon

* fix: register & unregister css selector plugin properly

* docs: add g-plugin-css-seletor in d3 docs

* Publish

 - @antv/g-canvas@1.0.15
 - @antv/g-components@1.0.13
 - @antv/g-math@1.0.13
 - @antv/g-mobile@0.0.2
 - @antv/g-plugin-3d@1.0.17
 - @antv/g-plugin-box2d@1.0.6
 - @antv/g-plugin-canvas-picker@1.0.13
 - @antv/g-plugin-canvas-renderer@1.0.13
 - @antv/g-plugin-control@1.0.14
 - @antv/g-plugin-css-select@1.0.13
 - @antv/g-plugin-dom-interaction@1.0.13
 - @antv/g-plugin-gpgpu@1.0.14
 - @antv/g-plugin-html-renderer@1.0.14
 - @antv/g-plugin-matterjs@1.0.3
 - @antv/g-plugin-mobile-interaction@0.0.2
 - @antv/g-plugin-physx@1.0.6
 - @antv/g-plugin-svg-picker@1.0.13
 - @antv/g-plugin-svg-renderer@1.0.13
 - @antv/g-plugin-webgl-renderer@1.0.19
 - @antv/g-plugin-yoga@1.0.3
 - @antv/g-shader-components@1.0.11
 - @antv/g-svg@1.0.13
 - @antv/g-webgl@1.0.19
 - @antv/g-webgpu-compiler@1.0.14
 - @antv/g@5.0.16
 - @antv/react-g@1.0.9
 - @antv/g-site@1.0.19

* build: g-mobile

* chore: changelog

* chore: update changelog

Co-authored-by: yuqi.pyq <yuqi.pyq@antgroup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant