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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user