SecondHalfGames / yakui

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

Deduplicate BindGroups in wgpu renderer #97

Closed LPGhatguy closed 3 days 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.