Make the blur filter more accurate (Close #19516)#19645
Make the blur filter more accurate (Close #19516)#19645xrtxn wants to merge 2 commits intoruffle-rs:masterfrom
Conversation
|
Should I rewrite the tests? They look fine visually, but obviously they fail. |
|
Thanks for your contribution! I think we need a test that proves this behavior (which will differentiate between 2.0 and 1.99). How did you get the value 1.99?
Depends on the test. Generally we require an output from Flash Player, but some outputs might be generated from Ruffle, not FP (e.g. shumway tests that are animated). I'll try looking into it and proposing something. |
|
I just tested it with a color picker. I tested multiple values, 1.9 was inaccurate, 1.99 looked like a good value to me. I created an example, you can check out https://github.com/xrtxn/ruffle_bug_report master or the old branch. |
|
That 2 right there is in the "spatial dimension", so to say. I'd look for (or put) this slight adjustment somewhere else. Perhaps a |
|
Yeah, changing 2 to 1.99 does not fully fix the issue, as it still appears for different window sizes. It's most probably a rounding / numerical stability issue somewhere. |
Fixes #19516
Honestly, I got really lucky to find this. I would love to see how this affects other flash projects.