egui/crates
Lucas Meurer 7d185acb41
Add button benchmark (#6854)
This helped me benchmark the atomic layout (#5830) changes.

I also realized that the label benchmark wasn't testing the painting,
since the buttons at some point will be placed outside the screen_rect,
meaning it won't be painted.

This fixes it by benching the label in a child ui.

The `label &str` benchmark went from 483 ns to 535 ns with these
changes.

EDIT:

I fixed another benchmark problem, since the benchmark would show the
same widget millions of times for a single frame, the WidgetRects
hashmap would get huge, causing each iteration to slow down a bit more
and causing the benchmark to have unreliable results.

With this the `label &str` benchmark went from 535ns to 298ns. Also the
`label format!` benchmark now takes almost the same time (302 ns).
Before, it was a lot slower since it reused the same Context which
already had millions of widget ids.
2025-04-28 11:58:05 +02:00
..
ecolor Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
eframe Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui `ScrollArea` improvements for user configurability (#5443) 2025-04-25 11:01:22 +02:00
egui-wgpu Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui-winit Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_demo_app Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_demo_lib Add button benchmark (#6854) 2025-04-28 11:58:05 +02:00
egui_extras `ScrollArea` improvements for user configurability (#5443) 2025-04-25 11:01:22 +02:00
egui_glow Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_kittest Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
egui_plot Move `egui_plot` to its own repo (#4828) 2024-07-15 18:45:19 +02:00
egui_web Fix typos (#2866) 2023-04-18 15:52:45 +02:00
emath Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
epaint Enable more clippy lints (#6853) 2025-04-24 17:32:50 +02:00
epaint_default_fonts Release 0.31.1 - text_edit and kittest fixes 2025-03-05 08:37:34 +01:00