Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch headless screenshot error to MSE, add benchmarking #16038

Merged
merged 4 commits into from
Sep 17, 2022

Conversation

unknownbrackets
Copy link
Collaborator

This allows you to run a frame dump or test to get an average time taken, which can be convenient for comparing the relative performance of two changes.

It also returns screenshot differences as mean squared error instead of the previous simple % of pixels that are not exact matches. I considered PSNR, but I feel like the output is less obvious for what a "pass" means. There's also an option to tolerate a certain amount of MSE, which can be helpful when comparing things that might have small differences (i.e. hardware rendering.)

-[Unknown]

@hrydgard
Copy link
Owner

Looks good, buildbot has some complaints though, should be easy to fix

To be able to add additional options.
This is more useful than 1/0 on whether a pixel doesn't match, when many
are close but not exact.
This makes it easier to allow a certain amount of deviation across
devices.
This outputs the average time for comparison.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants