1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-03 23:30:04 -04:00

Add diagnostic_max_steps for a betterExceededMaxStepsError (#8421)

This allows you to see how many more steps it would have taken for the
harness to settle.
Useful to see if you're in a infinite repaint loop or just need a
`harness.run_steps(3)` to give it some more frames to settle.
Should make it easier to make the default step count tighter, which
should make tests faster.
This commit is contained in:
Lucas Meurer
2026-08-31 15:29:10 +02:00
committed by GitHub
parent 7b34fc0e03
commit 47fa50d9a7
3 changed files with 86 additions and 14 deletions

View File

@@ -52,6 +52,10 @@ threshold = 0.6
# (an absolute pixel count, not a fraction of the image)
max_failed_pixels = 0
# how many steps past `max_steps` `Harness::run` keeps stepping to report how many steps the ui
# would have needed to settle
diagnostic_max_steps = 100
[windows]
threshold = 0.6
max_failed_pixels = 0