Closed Bug 1839855 Opened 1 year ago Closed 9 months ago

Canvas demo using animated emojis is pretty slow with gfx.direct2d.disabled=True

Categories

(Core :: Graphics: Text, enhancement)

enhancement

Tracking

()

RESOLVED DUPLICATE of bug 1875670

People

(Reporter: mayankleoboy1, Unassigned)

References

()

Details

Set gfx.direct2d.disabled= True
(The reason to disable D2d was to enable gpu-canvas)

Go to https://xem.github.io/codegolf/emojysics.html

AR: Very slow animation

gpu-canvas: https://share.firefox.dev/43Q4Nsw
skia-canvas: https://share.firefox.dev/3qW6dmR
D2d-canvas: https://share.firefox.dev/46fVwf3

This may be an obvious and known thing. So feel free to Wontfix etc.
Filing under graphics:text for now, but this may be a canvas bug.

Also I am curious that in the profile for gpu-canvas, a lot of the functions call ntdll and dwrite.dll. I thought that with d2d disabled, dwrite wouldnt be used at all.

Latest profile: https://share.firefox.dev/3wyj8xT
This works great now. Closing.

Status: NEW → RESOLVED
Closed: 9 months ago
Resolution: --- → WORKSFORME

Possibly bug 1872545 and/or bug 1875670 may have helped here, or other optimizations. Thanks for re-testing and letting us know it's OK now!

Yeah, i have done a bisection now, and the biggest improvement by far is from bug 1875670.
Marking as a dupe.

Duplicate of bug: 1875670
Resolution: WORKSFORME → DUPLICATE
You need to log in before you can comment on or make changes to this bug.