Closed Bug 1932736 Opened 20 days ago Closed 14 days ago

Optimize all non-elliptical corners, not only uniform border radii

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: emilio, Assigned: emilio)

References

Details

(Keywords: perf-alert)

Attachments

(2 files)

No description provided.

I might be doing something dumb, please review carefully, but this seems
to work and should speed up some common clip kinds like rounding two
bottom corners, two top corners, or a single corner :)

See Also: → 1764481
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e4d93eeb01bb Optimize all non-elliptical corner clips, not just uniform radii. r=nical

Backed out for causing wrench bustages @ rounded-rects.yam

REFTEST TEST-UNEXPECTED-FAIL | reftests/aa/rounded-rects.yaml == reftests/aa/rounded-rects-ref.png | image comparison, max difference: 2, number of differing pixels: 113 | 109 differences > 0 and <= 1 (allowed 1); 4 num_differences > 1 and <= 255 (allowed 0);
Flags: needinfo?(emilio)

So... Wrench caught an interesting edge case where my patch regresses (my patch only rounds the top right corner, incorrectly).

We can't use the fast path if the corners are bigger than half-size of the box and the opposite corner doesn't have the same radius.

A bit trickier but not hard to deal with.

Attachment #9439171 - Attachment description: Bug 1932736 - Optimize all non-elliptical corner clips, not just uniform radii. r=nical,gw → Bug 1932736 - Optimize all non-elliptical corner clips, not just uniform radii. r=nical
Attachment #9439171 - Attachment description: Bug 1932736 - Optimize all non-elliptical corner clips, not just uniform radii. r=nical → Bug 1932736 - Optimize most non-elliptical corner clips, not just uniform radii. r=nical
Flags: needinfo?(emilio)
Pushed by ealvarez@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/bcaed8e428ad Optimize most non-elliptical corner clips, not just uniform radii. r=nical
Regressions: 1933753
Status: NEW → RESOLVED
Closed: 14 days ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch

(In reply to Serban Stanca [:SerbanS] from comment #7)

https://hg.mozilla.org/mozilla-central/rev/bcaed8e428ad

Perfherder has detected a browsertime performance change from push bcaed8e428ad1965e4a9156febe8c7a514f4d7c6.

Improvements:

Ratio Test Platform Options Absolute values (old vs new) Performance Profiles
6% amazon FirstVisualChange macosx1015-64-shippable-qr bytecode-cached cold fission webrender 486.38 -> 457.82 Before/After
5% amazon ContentfulSpeedIndex macosx1015-64-shippable-qr bytecode-cached cold fission webrender 513.77 -> 485.75 Before/After
5% amazon PerceptualSpeedIndex macosx1015-64-shippable-qr bytecode-cached cold fission webrender 516.84 -> 488.95 Before/After
5% amazon SpeedIndex macosx1015-64-shippable-qr bytecode-cached cold fission webrender 548.64 -> 521.65 Before/After
4% amazon ContentfulSpeedIndex macosx1015-64-shippable-qr bytecode-cached cold fission webrender 511.90 -> 489.82 Before/After

Details of the alert can be found in the alert summary, including links to graphs and comparisons for each of the affected tests.

If you need the profiling jobs you can trigger them yourself from treeherder job view or ask a sheriff to do that for you.

You can run these tests on try with ./mach try perf --alert 42906

For more information on performance sheriffing please see our FAQ.

Keywords: perf-alert
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: