Repository navigation
perf(particlesys): Improve particle rendering performance using texture atlas - #3557
stephanmeesters wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
WalkthroughThe particle renderer now uses texture atlases for eligible particle systems and remaps particle UVs to atlas regions. The sorting renderer also groups consecutive triangles with compatible render states into shared draws. ChangesParticle Texture Atlasing
Sorting Renderer Batching
Priority: ➖ Normal Estimated code review effort: 4 (Complex) | ~60 minutes Change: Other Sequence Diagram(s)sequenceDiagram
participant W3DParticleSystemManager
participant TextureAtlasClass
participant PointGroupClass
W3DParticleSystemManager->>TextureAtlasClass: Find_Or_Insert particle texture and receive atlas UV rectangle
W3DParticleSystemManager->>PointGroupClass: Set_Texture_UV_Rects for particle rendering
PointGroupClass->>PointGroupClass: Remap generated UVs during Render
Suggested reviewers: Merge Risk: ⚪ Minimal · up to
|
Adds 77% performance to a busy scene.