egui/crates
lucasmerlin 52060c0c41
Change `Harness::run` to run until no more repaints are requested (#5580)
Previously, `Harness::run` just called `Harness::step` 3 times. If that
wasn't enough, tests would often call run multiple times so all
animations would finish properly.

Also, I introduced `HarnessBuilder::with_step_dt` to customize with how
big of a dt each frame is called. I set the default to 1.0 / 6.0 (~6fps)
so we don't waste cpu in tests waiting on animations.

`HarnessBuilder::max_steps` allows us to control how many steps
`Harness::run` should run before panicing.
The default is 6, so we run for up to 1.0 logical seconds (six frames at
6 fps), which should be enough to finish most animations.

Turns out a lot of snapshots where rendered before fully shown and had a
light opacity, those are now fixed.

* [x] I have followed the instructions in the PR template
2025-01-07 08:33:44 +01:00
..
ecolor Release 0.30 - egui_kittest and modals (#5487) 2024-12-16 17:45:35 +01:00
eframe Add `Harness::new_eframe` and `TestRenderer` trait (#5539) 2025-01-02 17:48:39 +01:00
egui Change `Harness::run` to run until no more repaints are requested (#5580) 2025-01-07 08:33:44 +01:00
egui-wgpu Add `Harness::new_eframe` and `TestRenderer` trait (#5539) 2025-01-02 17:48:39 +01:00
egui-winit Serialize window maximized state in `WindowSettings` (#5554) 2025-01-06 09:19:17 +01:00
egui_demo_app Change `Harness::run` to run until no more repaints are requested (#5580) 2025-01-07 08:33:44 +01:00
egui_demo_lib Change `Harness::run` to run until no more repaints are requested (#5580) 2025-01-07 08:33:44 +01:00
egui_extras Avoid allocations for loader cache lookup (#5584) 2025-01-06 10:03:33 +01:00
egui_glow Revert "Revert "forward x11 and wayland features to glutin" (#5391)" (#5490) 2024-12-17 09:36:03 +01:00
egui_kittest Change `Harness::run` to run until no more repaints are requested (#5580) 2025-01-07 08:33:44 +01: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 Make all lines and rectangles crisp (#5518) 2024-12-26 21:02:27 +01:00
epaint Better rounding of rectangles with thin outlines (#5571) 2025-01-02 23:50:40 +01:00
epaint_default_fonts Release 0.30 - egui_kittest and modals (#5487) 2024-12-16 17:45:35 +01:00