Performance: Animated Models + ClippingPolygons
- Dominant language
- JavaScript
- Stars
- 15.8k
- Forks
- 3.9k
- Avg merge
- 4d 6h
- Merged PRs (30d)
- 34
Description
With the new polygon clipping implementation (based on the vector rendering path instead of SDFs), every time a model moves, it needs to rebake textures for clipping to be up-to-date. This is going to be prohibitively slow for for medium-large collections of clipping polygons.
Maybe that's okay - how many use cases are there of animated models + large clipping collections? But it's definitely a degradation compared to old clipping. I don't have any real solutions at the moment. Maybe animated models can pass the vector pipeline a "rectangle" that spans the globe to avoid ever rebaking (at the cost of precision, perhaps).
Contributor guide
Research direction
Start with the polygon clipping implementation and its vector rendering path, then trace when animated model movement causes clipping textures to rebake. Measure animated models with medium-to-large clipping polygon collections against the old behavior; done requires addressing the reported performance degradation without losing acceptable clipping precision.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- computer-graphics, performance
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100