bevy_prototype_lyon icon indicating copy to clipboard operation
bevy_prototype_lyon copied to clipboard

Batch draw calls?

Open SUPERCILEX opened this issue 3 years ago • 5 comments

See https://github.com/bevyengine/bevy/issues/3763#issuecomment-1025022526. I'm not sure if this is actually an issue.

SUPERCILEX avatar Apr 29 '22 06:04 SUPERCILEX

Performance seems like an issue for this crate currently, I'm drawing the same thing multiple times and notice a big dip in fps, batching should help a lot

louiidev avatar Aug 11 '22 11:08 louiidev

With Bevy 0.12 getting automatic batching, it might be possible to rework bevy_prototype_lyon so that it can benefit from that. As things stand now, this doesn't help us.

We would need to find some way to reuse generated mesh assets so that shape entities with the same attributes would point at the same mesh asset. I'm guessing that this is more complicated than it sounds -- we need to make sure Bevy's asset lifecycle continues to work. i.e. assets that are no longer referenced in the world get dropped.

rparrett avatar Nov 02 '23 21:11 rparrett