Skip to content

perf(steam): cap the web helper's GPU image cache and tile budget - #23

Merged
xXJSONDeruloXx merged 1 commit into
mainfrom
webhelper-gpu-budget
Dec 2, 2026
Merged

xXJSONDeruloXx merged 1 commit into
mainfrom
webhelper-gpu-budget

Conversation

@xXJSONDeruloXx

Copy link
Copy Markdown
Owner

Steam's web helper keeps 48-69 MB of panfrost buffers while a game runs. Panfrost can't swap those, so the game can't use that memory. WEBHELPER_EXTRA_ARGS now defaults to --force-gpu-mem-discardable-limit-mb=16 --force-gpu-mem-available-mb=64, which caps Chromium's decoded-image cache and its tile budget.

Measured on the RG40XX-H, on a fresh boot per run: 150 s settled at Big Picture's home, then 30 s of D-pad navigation, then LIMBO 60 s in:

navigating web helper GPU in game web helper PSS + swap MemAvailable in game
none 10.6-11.6 frames/s 48, 69 MB 764, 771 MB 114, 116 MB
--enable-low-end-device-mode 5.7, 7.4, 11.0 28-33 MB 653-676 MB 139-157 MB
this PR 11.5, 11.5 33, 34 MB 627, 671 MB 136, 150 MB

Low-end mode saved about the same memory, but two of its three runs navigated at half speed, so it is not used. Its colours stayed 8-bit.

docs/findings.md covers what I tried that doesn't help:

  • The JS heap is live data; a forced full GC frees 0.3 MB of it.
  • A CDP memory-pressure notification reaches only the page's renderer, and it freed nothing there.
  • Valve's browser process keeps a 1280x800 surface, which no switch can resize.

The patched wrapper had 105 spare bytes with these switches, so they fit.

@xXJSONDeruloXx
xXJSONDeruloXx merged commit c179aff into main Dec 2, 2026
15 checks passed
@xXJSONDeruloXx
xXJSONDeruloXx deleted the webhelper-gpu-budget branch December 2, 2026 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant