graphics-profile: keep the Series S prefix between launches #618

Merged
csj0oe merged 1 commit from upstream-pr/618 into main 2026-12-01 13:56:17 +00:00
csj0oe commented 2026-12-01 11:32:30 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by csj0oe on 2026-12-01T11:32:30Z.


Summary

The Series S graphics profile copied the Wine prefix into a temporary directory and deleted it at exit. The title compiles a Series S pipeline set of its own when it first runs with the console mode, which took about eight minutes on the RX 7600, so every Series S launch paid that cost again.

This keeps the copy at <prefix>-series-s and reuses it. The copy remains isolated from the packaged prefix: its registry receives ConsoleMode=96, and its T: is replaced only when it points outside the copy.

Verification

  • python -m unittest tests.test_graphics_profile — 5 tests pass (reuse, a failed copy, and both T: cases).
  • A Series S run with the persistent prefix reached the title's intro ("VICE CITY, TWO YEARS AGO") at 30-35 fps on an RX 7600, and the title's crash log reports Console Type: Lockhart. The run later hit the placement texture-readback stall and the title's watchdog; that is the same failure as the packaged profile and is not addressed here.
  • The first Series S launch still compiles its pipeline set (about 8-9 minutes). vkd3d-proton writes its pipeline cache at device teardown, so a crashed run does not preserve that compilation.

Notes

  • The copy is about 24 GiB and is created with cp -a --reflink=auto; it appears atomically.
  • Delete <prefix>-series-s to force a fresh copy, for example after changing the runtime by hand.
  • Series S and the packaged prefix are launched one at a time, like the existing prefix.
<!-- greyfinch-sync:brcly/TuxBox:issue:5584796664 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/618). Originally posted by [csj0oe](https://github.com/csj0oe) on 2026-12-01T11:32:30Z. --- ## Summary The Series S graphics profile copied the Wine prefix into a temporary directory and deleted it at exit. The title compiles a Series S pipeline set of its own when it first runs with the console mode, which took about eight minutes on the RX 7600, so every Series S launch paid that cost again. This keeps the copy at `<prefix>-series-s` and reuses it. The copy remains isolated from the packaged prefix: its registry receives `ConsoleMode=96`, and its `T:` is replaced only when it points outside the copy. ## Verification - `python -m unittest tests.test_graphics_profile` — 5 tests pass (reuse, a failed copy, and both `T:` cases). - A Series S run with the persistent prefix reached the title's intro ("VICE CITY, TWO YEARS AGO") at 30-35 fps on an RX 7600, and the title's crash log reports `Console Type: Lockhart`. The run later hit the placement texture-readback stall and the title's watchdog; that is the same failure as the packaged profile and is not addressed here. - The first Series S launch still compiles its pipeline set (about 8-9 minutes). vkd3d-proton writes its pipeline cache at device teardown, so a crashed run does not preserve that compilation. ## Notes - The copy is about 24 GiB and is created with `cp -a --reflink=auto`; it appears atomically. - Delete `<prefix>-series-s` to force a fresh copy, for example after changing the runtime by hand. - Series S and the packaged prefix are launched one at a time, like the existing prefix.
NickStallman commented 2026-12-01 11:53:46 +00:00 (Migrated from github.com)

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-12-01T11:53:46Z.


A measured note on the Series S step, since this touches the same lines: on some hosts the registry step fails on every launch. Inside bwrap --unshare-net, a second namespace cannot be created there: umu's own container fails with "No permissions to create a new namespace", and with --offline the launcher's unshare --user fails with "Operation not permitted". reg.exe exits 1 and the launch stops with "Could not select Series S mode". Cutting the network for the trial with the launcher's own offline wrapper (unshare --user --map-current-user --net) instead of bwrap works there, with and without --offline. host.py already probes for the same nesting limit for the Wine server binding. I have that as a small change and will offer it after this PR, so as not to conflict with it.

<!-- greyfinch-sync:brcly/TuxBox:comment:7310314835 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/pull/618#issuecomment-7310314835). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-12-01T11:53:46Z. --- A measured note on the Series S step, since this touches the same lines: on some hosts the registry step fails on every launch. Inside `bwrap --unshare-net`, a second namespace cannot be created there: umu's own container fails with "No permissions to create a new namespace", and with `--offline` the launcher's `unshare --user` fails with "Operation not permitted". reg.exe exits 1 and the launch stops with "Could not select Series S mode". Cutting the network for the trial with the launcher's own offline wrapper (`unshare --user --map-current-user --net`) instead of bwrap works there, with and without `--offline`. `host.py` already probes for the same nesting limit for the Wine server binding. I have that as a small change and will offer it after this PR, so as not to conflict with it.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox!618
No description provided.