3 ms·
Dear Imgui is really fast since it tries to avoid state changes as much as possible and generates render command lists with very few draw calls. I've seen a lot
by flohofwoe 10y ago
Dear Imgui is really fast since it tries to avoid state changes as much as possible and generates render command lists with very few draw calls. I've seen a lot of UI systems that do one or even several draw calls per UI elements and end up with hundreds or thousands of draw calls per frame (checking how draw call batching is done is usually the first thing I do when evaluating a new UI library).
On average, Dear Imgui seems to generate one draw call per window, with just changing the scissor rect inbetween draw calls. It will be very hard to come up with a complex enough UI that this becomes a performance problem even on low-end GPUs.