Open Bug 763120 Opened 13 years ago Updated 2 years ago

Canvas text shadow performance is much worse than Safari on OS X

Categories

(Core :: Graphics, defect)

x86
macOS
defect

Tracking

()

REOPENED
mozilla16

People

(Reporter: jrmuizel, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

The following test: http://jsperf.com/canvas-2d-filltext-performance Shows us with 1,411, Safari with 17,142 and Chrome with 98,565 One of the big differences with us vs Safari is that Safari uses CoreGraphics ability to shadow any draw operation. Azure currently only does Shadows with a Surface, so we create a temporary surface and shadow that. Technically, this shouldn't be much different in performance but perhaps something is biting us.
We're getting by the usual CoreGraphics copy-on-write trouble. Safari avoids this and thus gets more performance.
Attached patch Avoid copy-on-write vm badness (obsolete) — Splinter Review
This patch nearly doubles our performance.
Attachment #632001 - Attachment is obsolete: true
Attachment #632556 - Flags: review?(matt.woodrow)
Attachment #632556 - Flags: review?(bgirard)
Attachment #632556 - Flags: review?(bgirard) → review+
Attachment #632556 - Flags: review?(matt.woodrow)
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
I'm reopening to leave as a metabug because we're still substantially worse.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: