Closed Bug 1823198 Opened 2 years ago Closed 2 months ago

Canvas demo (https://www.fxhash.xyz/generative/25872) is more than twice as fast with skia-canvas compared to gpu-canvas (and appears to improve with WPF-gpu)

Categories

(Core :: Graphics: Canvas2D, defect)

defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mayankleoboy1, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached file about:support

Profile where i enabled the WPF rasterizer : https://share.firefox.dev/3JQqRf6 (5 second)
gfx.canvas.accelerated.aa-stroke.enabled = false
gfx.canvas.accelerated.stroke-to-fill-path = true

This is as fast as the skia-canvas version. So, AA-gpu-canvas thingy appears to be the slow thing here?

Summary: Canvas demo (https://www.fxhash.xyz/generative/25872) is more than twice as fast with skia-canvas compared to gpu-canvas → Canvas demo (https://www.fxhash.xyz/generative/25872) is more than twice as fast with skia-canvas compared to gpu-canvas (and appears to improve with WPF-gpu)

Jeff, this looks like because we don't support AA-Stroke when an alpha < 1 is used...

Flags: needinfo?(jmuizelaar)
Severity: -- → S3
Depends on: 1837068

Profile from latest Nightly:

Gpu-canvas: https://share.firefox.dev/3N0xfAK (5.5s)
skia-canvas: https://share.firefox.dev/3XbDvKV (4.6s)

So this has improved a lot. There is some new PwebGL:Message_GetFrontBuffer at the end that takes 2 seconds.

edited. The results were with d2d-canvas. facepalm.

Status: NEW → RESOLVED
Closed: 1 year ago
Flags: needinfo?(jmuizelaar)
Resolution: --- → FIXED
Status: RESOLVED → REOPENED
Resolution: FIXED → ---

This is what I get today: https://share.firefox.dev/4gqkpZC (5s)

Calling it fixed.

Status: REOPENED → RESOLVED
Closed: 1 year ago2 months ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: