Closed Bug 1667939 Opened 5 years ago Closed 5 years ago

Add configurable tile size for WebRender

Categories

(Core :: Graphics: WebRender, enhancement)

Firefox 83
enhancement

Tracking

()

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: solomon.chiu, Assigned: solomon.chiu)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.162 Safari/537.36

Steps to reproduce:

The default tile size of WebRender is 1024*512, this value is pretty good for average desktop's screen. However, for those devices with small screen, big tile size will waste significant amount of memory. Hence I'd like to upload a patch to provide a configurable tile size for WebRender.

Comparing the GPU memory consumption of different tile size(1024x512 v.s. 256x256) on a KaiOS test phone with 480x1440 screen:

+------------------+----------------+---------------+
|                  | Tile: 1024x512 | Tile: 256x256 |
+------------------+----------------+---------------+
|boot ready        | 54,548,070     | 40,539,648    |
+------------------+----------------+---------------+
|all apps; 2 times | 88,212,821     | 63,473,254    |
+---------------------------------------------------+

Many thanks for the patch Solomon!

Could you please phabricator to propose changes? We don't use bugzilla anymore for contributions.
See the tutorial : https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

Component: Untriaged → Graphics: WebRender
Product: Firefox → Core

When you push it to phabricator, get gw to review it.

Assignee: nobody → solomon.chiu
Severity: -- → S3
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c26c356d8d19 Make the picture tile size configurable via pref. r=gw
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: