SecondHalfGames / yakui

yakui is a declarative Rust UI library for games
Apache License 2.0
237 stars 21 forks source link

Deduplicate BindGroups in wgpu renderer #97

Closed LPGhatguy closed 4 months ago

LPGhatguy commented 1 year ago

Currently, we make a new BindGroup for every batch of vertices we draw. We should instead only create a new BindGroup for each unique set of textures!

In MS80, this would cut down the number of bind groups by... 600 per frame when the editor is open.