Closed Bug 1729445 Opened 4 years ago Closed 4 years ago

Don't batch texture uploads for items that are as large as the staging texture size

Categories

(Core :: Graphics: WebRender, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: nical, Assigned: nical)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

In other words, don't put items in a staging texture if we don't expect to be able to fit other items and get some batching out of it.

The batched upload path has an extra cost on Windows: We do an extra copy of the item. That cost is easily recovered if we can batch many uploads into a single staging texture which typically works very well for glyphs but for some larger items it can be slower than regular upload.

In other words, don't batch items if we don't expect to be able to fit other items in the staging texture. The batched upload path has a cost on Windows (an extra copy) that is easily recovered when batching a lot of small items (typically works very well with glyphs), but we get diminishing returns and even slowdowns for larger items.

Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ddea60ea119b Don't batch texture uploads for large-ish items. r=jnicol
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: