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

Slight inconsistency between generated images #66

Open
murtyjones opened this issue Apr 27, 2021 · 1 comment
Open

Slight inconsistency between generated images #66

murtyjones opened this issue Apr 27, 2021 · 1 comment
Labels
question Further information is requested

Comments

@murtyjones
Copy link

While setting up a test suite to compare images rendered and captured using wgpu_glyph, I discovdred a very slight difference between the image generated on one run vs. another. The pink areas in the attachment are where the pixels don't match exactly.

As far as I can tell, my code has nothing non-deterministic going on that could cause this behavior, so I wanted to check in here just to see if there are any potential obvious reasons why wgpu_glyph might produce a different result from one run to the next.

The difference is unnoticeable to the human eye, I only spotted it because of my testing work, which can easily be modified to use a more lenient comparison algorithm. Just wanted to deepen my understanding about whether the issue might be on my end or not.

image

@hecrj
Copy link
Owner

hecrj commented May 24, 2021

Maybe it has to do with the glyph caching strategy. Are you rendering any other text prior to these paragraphs?

@hecrj hecrj added the question Further information is requested label May 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants