-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Avoid spawning gizmo meshes when no gizmos are being drawn #8180
Avoid spawning gizmo meshes when no gizmos are being drawn #8180
Conversation
The 2d/UI examples work for me now. 👍 |
Do we still need this after #8223? |
It feels icky to queue meshes for rendering that we know are empty as this will trigger creation of the pipeline even if an app never uses gizmos |
Yes, imo. It avoids allocating and uploading empty mesh data to a buffer every frame which is a waste, in addition to the pipeline like mentioned above. |
…evyengine#8180)" This reverts commit e54057c.
Objective
Avoid queuing empty meshes for rendering.
Should prevent #8144 from triggering when no gizmos are in use. Not a real fix, unfortunately.
Solution
Add an
in_use
field toGizmoStorage
and only set it to true when there are gizmos to draw.