Use a single SharedContextWebgl
Categories
(Core :: Graphics: Canvas2D, enhancement)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox126 | --- | fixed |
People
(Reporter: lsalzman, Assigned: lsalzman)
Details
(Keywords: perf-alert)
Attachments
(1 file)
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 1•2 years ago
|
||
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.
Comment 3•2 years ago
|
||
| bugherder | ||
Comment 4•2 years ago
|
||
(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
Updated•2 years ago
|
Description
•