Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upUse single pass blur if std deviation is small. #2030
Conversation
|
Could we do a gecko try run for this? |
|
https://treeherder.mozilla.org/#/jobs?repo=try&revision=b270d02cefccecfdf559746b8ccdd9e7cccb7108 Looks like we don't have any reftest in gecko with very small blur radius now. |
|
@mephisto41 Thanks! Sorry I didn't get to review this today, but it looks good from a quick scan. Is there any way we can share some of the shader code via use of the |
de64158
to
32797ff
|
|
32797ff
to
630ac92
|
This looks good to me. My only concern is that the change to not call device_length() for the blur radius may have an effect on the Gecko reftests. If the previous try run already tested that successfully, then r=me. Otherwise, can we do one more try run just to confirm there's no issues with that change? |
|
Sure, but gecko doesn't have latest webrender. Therefore, this patch is hardly applied to current gecko. I'll wait for next webrender update in gecko in order to send a new try. Thanks. |
630ac92
to
b0709c6
|
|
|
Looks like there is one failure in |
|
A rebase is also needed. |
|
So after removing |
b0709c6
to
522b668
|
Is there a specific reason to change that |
|
This is because the maximum kernel size for blur 2d is 5 pixel. If we rounding the radius to int, then our minimum radius is 1, thus the kernel size is 1 * 3 * 2 + 1 = 7 and never hit this optimization. One solution is keeping the |
|
That might be OK for now (the rounding is a deeper issue we need to fix properly at some point). Could you check the performance difference when a kernel size of 7 between the two methods? If they are the same or the single pass is faster, then that sounds good to me :) |
|
Looks like the set the maximum kernel size to 7 will reduced the performance. without blur 2d.
with blur 2d
|
|
@mephisto41 OK - do you think it's worth continuing with this optimization for now? Should we perhaps wait until we sort out that device length rounding code and then revisit this? |
|
Sure, I think we should wait for the |
mephisto41 commentedNov 13, 2017
•
edited by larsbergstrom
Performance comparison:
without optimize:
with optimize
Slightly improvement.
This change is