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

Test the software rendering pipeline's results by comparing them to the GPU #593

Open
adroitwhiz opened this issue May 4, 2020 · 0 comments · May be fixed by #668
Open

Test the software rendering pipeline's results by comparing them to the GPU #593

adroitwhiz opened this issue May 4, 2020 · 0 comments · May be fixed by #668

Comments

@adroitwhiz
Copy link
Contributor

adroitwhiz commented May 4, 2020

Expected Behavior

There should be a way to automatically ensure that the CPU and GPU renderer produce the same results.

Actual Behavior

Currently, the only way to ensure that the CPU and GPU render the same image is by testing their "touching sprite" and "touching color" behavior in the integration tests. Unfortunately, this allows many bugs to slip through because they're not covered by existing integration tests, and ensuring ahead of time that that specific behavior should be tested for is tough.

There's already a CPU rendering "playground" that renders out the entire stage as the software rendering pipeline "sees" it and then compares it to the same image on the GPU. It's currently a bit flaky, but it could be fixed up and potentially leveraged to ensure that at most only a few pixels differ between the CPU and GPU's rendition of the stage.

This is blocked on:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants