Improve state of the art for screenshot testing
port of https://github.com/pygfx/pygfx/pull/827
hmm i guess i need to take WPGU_FORCE_OFFSCREEN a little further too.
@hmaarrfk you want me to merge this or does it need some work?
i think this is fine as is right?
I'm not sure if the testing was improved since Aug 24, but i just wanted to keep them in sync. that is finding the "small difference" and the tuning parameters for the tolerance.
hmm i guess i need to take WPGU_FORCE_OFFSCREEN a little further too.
ohhh with this comment...
yeah give me som etime... you know... one day..
I think i remember my concern. there was an other very similar environment variable in this project, and I needed time to figure out the interaction (and I still need time to do so)
Ok at the time, I just had a hard time choosing a variable name.
I think I didn't want to propagate the documentation of 3 variables:
-
WGPU_ADAPTER_NAME(which doesnt seem to work) -
PYGFX_WGPU_ADAPTER_NAME-- pygfx only -
WGPUPY_WGPU_ADAPTER_NAMEwgpu, so I guess pygfx can use this (this is likely where I got stuck mentally)
Anyway, corrupting an example and running the new instructions in the readme yields:
needless to say, https://github.com/pygfx/wgpu-py/pull/659 needs to be resolved first