Repository navigation
perf(steam): cap the web helper's GPU image cache and tile budget - #23
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_ARGSnow 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:
--enable-low-end-device-modeLow-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.mdcovers what I tried that doesn't help:The patched wrapper had 105 spare bytes with these switches, so they fit.