Skip to content

Add meshCleared flag to optimize mesh clearing#401

Open
piti6 wants to merge 1 commit intomob-sakai:developfrom
piti6:feature/piti6/do-not-clear-mesh-every-frame
Open

Add meshCleared flag to optimize mesh clearing#401
piti6 wants to merge 1 commit intomob-sakai:developfrom
piti6:feature/piti6/do-not-clear-mesh-every-frame

Conversation

@piti6
Copy link
Copy Markdown

@piti6 piti6 commented Apr 8, 2026

Summary

I found that mesh.Clear() was being called every frame even when UIParticleRenderer was disabled.

image

PR Prevents every frame calls of redundant workerMesh.Clear() in UIParticleRenderer by skipping the clear path when the mesh has already been cleared.

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

Successfully merging this pull request may close these issues.

1 participant