CesiumGS / CesiumGS/cesium

Performance: Animated Models + ClippingPolygons

Open
#13,736 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.