Closed Bug 1888338 Opened 2 years ago Closed 2 years ago

Use a single SharedContextWebgl

Categories

(Core :: Graphics: Canvas2D, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: lsalzman, Assigned: lsalzman)

Details

(Keywords: perf-alert)

Attachments

(1 file)

No description provided.
Assignee: nobody → lsalzman
Severity: -- → N/A
Status: NEW → ASSIGNED

This shares a global SharedContextWebgl among all instances of CanvasTranslator.
The goal is that regardless of how many windows are open, we only have to pay the
startup costs and shader compilation times for SharedContextWebgl once. In the
event that all CanvasTranslators are gone, the SharedContextWebgl is kept around
while its internal caches and textures are discarded to avoid significant memory
usage when no canvases are in use, while at the same time saving on startup
costs the next time a first live CanvasTranslator is created.

Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/642ca0844931 Use a single SharedContextWebgl. r=aosmond
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch

(In reply to Pulsebot from comment #2)

Pushed by lsalzman@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/642ca0844931
Use a single SharedContextWebgl. r=aosmond

== Change summary for alert #42147 (as of Fri, 05 Apr 2024 04:15:14 GMT) ==

Improvements:

Ratio Test Platform Options Absolute values (old vs new) Performance Profiles
19% reddit-billgates-ama.billg-ama ContentfulSpeedIndex macosx1015-64-shippable-qr cold fission webrender 803.78 -> 652.40 Before/After

For up to date results, see: https://treeherder.mozilla.org/perfherder/alerts?id=42147

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: