You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BillboardCollection should cache DrawCommand objects likeEllipsoidPrimitive. Currently, even if the primitive doesn't change, update() still allocates new DrawCommand objects.
We should go through all the primitives and make sure these unnecessary allocations are not happening.
The text was updated successfully, but these errors were encountered:
Addressed issue #550
This seemed easy enough so I took a stab at it. I kept it simple so we cache only as many as we need and discard them when we don't.
We could have a separte pool (or a generic ObjectPool) implementation if we want something more sphisticated, but I wasn't sure if the overhead was worth it.
What do you think @pjcozzi ?
BillboardCollection
should cacheDrawCommand
objects likeEllipsoidPrimitive
. Currently, even if the primitive doesn't change,update()
still allocates newDrawCommand
objects.We should go through all the primitives and make sure these unnecessary allocations are not happening.
The text was updated successfully, but these errors were encountered: