Skip to content

fix(memory): let LIMBO fit with 2048 textures and a 500 ms thrash guard - #22

Merged
xXJSONDeruloXx merged 1 commit into
mainfrom
limbo-memory
Dec 2, 2026
Merged

xXJSONDeruloXx merged 1 commit into
mainfrom
limbo-memory

Conversation

@xXJSONDeruloXx

Copy link
Copy Markdown
Owner

LIMBO was killed during its first level load on the RG40XX-H. Its GPU memory is about 195 MB of uncompressed GL_LUMINANCE8_ALPHA8 textures, 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's limit_max_texture_size=2048 for 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_ms goes 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-memhog is ended in 8-10 s, against 7-9 s at 1000 ms, and sshd answered within 1.1 s either way.
  • Castle Crashers (DXVK) is still killed at 500 ms; a Mesa GL option does not reach it.

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.

@xXJSONDeruloXx
xXJSONDeruloXx merged commit 3bdffae into main Dec 2, 2026
15 checks passed
@xXJSONDeruloXx
xXJSONDeruloXx deleted the limbo-memory branch December 2, 2026 21:19
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