Repository navigation
fix(memory): let LIMBO fit with 2048 textures and a 500 ms thrash guard - #22
Merged
Merged
Conversation
This was referenced Dec 3, 2026
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.
LIMBO was killed during its first level load on the RG40XX-H. Its GPU memory is about 195 MB of uncompressed
GL_LUMINANCE8_ALPHA8textures, including a 4096x4096 one (43 MB). The game picks that format itself, and panfrost GPU memory cannot be swapped.overlay/usr/share/drirc.d/90-mdeck.conf: Mesa'slimit_max_texture_size=2048for LIMBO. The game probes for 4096x4096 support with a proxy texture and loads 2048 textures when the probe fails, which brings it to 138 MB. The entry matches the guest executable under FEX (checked on the device).min_ttl_msgoes from 1000 to 500. With the texture limit, the 1000 ms guard still killed LIMBO from kswapd during the level load with about 95 MB available. At 500 ms it ran in all three runs, the longest 150 s past the load.mdeck-memhogis ended in 8-10 s, against 7-9 s at 1000 ms, and sshd answered within 1.1 s either way.Also in
docs/findings.md: where physical memory goes with a game running, and a correction. The tiler heaps are 0-4 MB; they only looked like 128 MB because my script misparsed owner names that contain spaces.Tested on the RG40XX-H with the files installed by hand: LIMBO's first level, memory pressure, the memory hog test at 300, 500 and 1000 ms, and Castle Crashers.