Open Bug 1596042 (wr-frame-building-perf) Opened 5 years ago Updated 6 months ago

[meta] Frame building performance

Categories

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

task

Tracking

()

People

(Reporter: nical, Unassigned)

References

(Depends on 31 open bugs, Blocks 2 open bugs)

Details

(Keywords: meta)

Meta bug to track issues and actionable items around the performance of frame building. This code runs every frame so performance issues are magnified and even small improvements can accumulate into better power usage.

Identifying frame building perf issues

The primary metric for frame building performance is the Backend timings provided by the profiler HUD. The first value is the average over a number of frames which is a good number to look at when the goal is to reduce overall CPU usage and power consumption, while the "max" number is the value to look at when improving janky frame rates.

When using the firefox profiler addon, the thread to look at is usually WRRenderBackend#1 (when a single browser window is open). Make sure to tick the RenderBackend box in the profiler's settings before profiling.

If getting reliable measurements for a test case is difficult, disabling gfx.webrender.picture-caching sometimes help.

A good target for frame building would be to keep the max timings consistently under 3ms on most pages.

Depends on: 1596046
Depends on: 1587906
Depends on: 1562433
Depends on: 1525061
Depends on: 1596054
Depends on: 1602458
Depends on: 1602520
Depends on: 1607419
Depends on: 1607836
Depends on: 1611134
Depends on: 1611145
Depends on: 1611153
Depends on: 1611176
Depends on: 1611199
Depends on: 1611908
Blocks: 1612443
Depends on: 1613053
Depends on: 1613067
Depends on: 1614691
Depends on: 1618132
Depends on: 1623003
Depends on: 1628530
Depends on: 1628665
Depends on: 1642629
Depends on: 1650378
Blocks: 1647073
Depends on: 1650403
Depends on: 1651018
Depends on: 1653569
Depends on: 1654279
Depends on: 1654779
Depends on: 1480964
Depends on: 1493359
Depends on: 1512789
Depends on: 1604670
Depends on: 1424579
Depends on: 1647903
Depends on: 1641704
Depends on: 1587475
Depends on: 1685831
Depends on: 1707796
Depends on: 1711678
Depends on: 1700284
Depends on: 1744052
Depends on: 1501545
Depends on: 1768984
Depends on: 1708408
No longer depends on: 1587906
Severity: normal → S3
Severity: normal → S3
Alias: wr-frame-building → wr-frame-building-perf
Depends on: 1817849
Depends on: 1308229
Depends on: 1793254
Depends on: 1820355
Depends on: 1844766
Depends on: 1257910
Depends on: 839509
Depends on: 1900787
Depends on: 1900791
You need to log in before you can comment on or make changes to this bug.