Linux launcher (experimental), guide and test results #40
No reviewers
Labels
No labels
accessibility
bug
crash
documentation
duplicate
enhancement
good first issue
graphics
help wanted
invalid
needs logs
performance
question
rdna2
rdna3
rdna4
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/eikkapine--victory-amd!40
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-40"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@skalel on GitHub · 2026-11-30 16:43 UTC · original
skalel:feat/linux-launcher→main· +128 −16 · 8 files · 32 commits · closed without mergingAdds
victory-linux, a start for Linux, with a guide in English, Russian and Brazilian Portuguese. Experimental, tested on one PC: it runs in the 3D world with a picture, at about 15 fps. Random freezes and a black 3D world are worked around: a session of 44 minutes went through. The picture that went black for moments on RX 6000 is FSR 4's, and Auto now picks FSR 3 there. Faces, textures and lights are still wrong at times, and the cause is not known.Correction. Earlier versions of this text gave 20 fps in the 3D world. Those runs were made with a profile that, looked at afterwards, shows a black world: only the menu's picture had been checked. They also said that nobody was at the controls in two runs, which was not recorded. Both are corrected here and in the guide.
What is in it
release/victory-linux: one Python file. It detects the PC, picks the profileVIctory.ps1would, builds the shader cache and starts the game through umu and GE-Proton. Commands:setup,doctor,play,warm,fix-shaders,set,fps. It uses the samevictory.ini. The commands need nothing but Python.victory-linuxwithout a command, orconfig), for GTK 4.10 or newer with PyGObject. It has the options of the Windows launcher, the game folder, the advanced switches, PLAY (STOP while something runs), Warm Shaders, Fix Shaders, Set up, Check PC, FPS, Logs and Output. It is drawn by the CPU, so it takes no video memory, and closing it does not end the game. Ultrawide is greyed out, and Import Save and Updates are not there.victory.exe). One session logged 80 lines a second, up to 2,895 while an area loaded; what that costs in fps has not been measured.PRESSURE_VESSEL_FILESYSTEMS_RW, and keeps what is set there already.release/tests: 92 tests. They run the originalGet-TierofVIctory.ps1(v2026.11.30.8, withNoMod: the resolution mod is not set up on Linux) in PowerShell and compare the port with it, compare the window's options and defaults with those inVIctory.ps1, and drive the real window on an invisible display (gtk4-broadwayd).LINUX_GUIDE.md,.ru.md,.pt-BR.md: setup, commands, what differs from Windows, the test PC, results, known problems.README.mdpoints to it;README.ru.mdandREADME.pt-BR.mdare new, with the key map and advanced switches thatmainhas just added to the English one. The translations were written with an AI model and no native speaker of Russian has read the Russian ones.docs/README-RULES.mdandAGENTS.mdask fordocs/{en,ru}and two languages only; those rules come from the parent repository and this one had nothing in Russian, so the files are at the root. Say so if you want them elsewhere or fewer.xtask/src/policy.rs: the asset policy's allowlist takespyfiles and the namevictory-linux. Without thisrepository_passes_policyfails on the new files. If you would rather not widen it, tell me the name and place you prefer.No runtime code and nothing of the Windows launcher is changed.
mainis merged up to5d91fde(v2026.11.30.8; its skip-intro option is in the window too).Test PC
Ryzen 7 5700X, RX 6750 XT 12 GB (RDNA2), 24 GB RAM, NVMe with btrfs, 1080p 165 Hz. CachyOS, kernel 7.3.6-3-cachyos, Hyprland 0.57.2, Mesa 26.3.1 (RADV), GE-Proton11-15, umu-launcher 1.4.3.
What was measured
victory.exeof v2026.11.30.4, warm cache, Auto profile (Medium, 1080p Series S, locked 30, no frame generation). Runs 11 to 14 use the profiles of v2026.11.30.5 on that same executable; v2026.11.30.5 to v2026.11.30.7 themselves have not been run; v2026.11.30.8, whosevictory.exeis that of v2026.11.30.7, has, in the comparison of upscalers below. Frames with at least 500 draws; "lit" is the share of the middle of the window that is not black, every 20 s in the world.VICTORY_PORT_CBV_PLACE=0, FSR 3VICTORY_PORT_CONSTANTS=0,VICTORY_PORT_ALL=0VICTORY_GUARD_ASK=1VICTORY_PORT_CONSTANTS=0,VICTORY_GUARD_ASK=1, FSR 4VICTORY_GUARD_ASK=1VICTORY_PORT_ALL=0and more texture memory (b), playedVICTORY_KEEP_SHOWN=0, playedVICTORY_PORT_DESCRIPTORS=0, playedVICTORY_RELAY=0, played(a) Run 10 has the profile of run 7 and is black, so take these as frame rates of black frames.
(b)
VICTORY_TEXTURE_MAX=512,VICTORY_TEXTURE_ROOM_PERCENT=91,VICTORY_TEXTURE_KEEP_PERCENT=84,VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280.Runs 11 to 13 went through different scenes and do not compare FSR 4 with FSR 3. There is no measurement of this PC under Windows. "Lit" says that there is a picture, not that it is right. One session longer than five minutes has been run (15).
Black screen. With the Windows profile unchanged everything is black.
VICTORY_PORT_CBV_PLACE=0brings back the menu (99.9% lit) but not the world (0%).VICTORY_PORT_ALL=0with it: still 0%, with one region in place, the 185 MB 32-bit graphics heap.VICTORY_PORT_CONSTANTS=0instead: a picture, with the rest of the memory still in place. So it is that heap, used in place, through vkd3d-proton and RADV; why is not known.Random crashes (freezes). 7 of 7 runs in the world without
VICTORY_GUARD_ASK=1froze; 6 of 6 runs of 300 s with it did not, nor did the 44 minutes of run 15. The picture stops, ambient sound goes on, the process stays alive, the log ends with no error, the card is 0% busy.on_writewaiting forGUARDS, two of them interrupted by a write to that heap insideRtlReAllocateHeap. Onevictory-widethread was asking about0x0-0xC0000.guard()incrates/victory-gpu/src/watch.rstakes a range whose first block is noted absent for the title's view memory without askingis_view. Address 0 is such a hole and the title has buffers at a null address. Wine keeps the first stack and the heap just above it. Which thread heldGUARDSwas not seen; that last step is from the code.Asking
is_viewwhen the first block is only absent would fix it in the runtime. That is not in this PR.The picture goes black for moments: FSR 4. With FSR 4 the 3D picture goes black for one frame of the game, and then for seconds; the HUD and the F3 overlay stay. The middle of the window was measured five times a second (numbers only), one session each, all with
VICTORY_PORT_ALL=0:VKD3D_CONFIG=single_queuesingle_queue,RADV_DEBUG=nodcc,nohiz,zerovram,DISABLE_LSFGVK=1RADV_DEBUG=syncshaders(c) It ended before the part of the route where most of the black frames of the two lines above came, so it says nothing about
syncshaders.In all, 24 black frames or stretches in 1152 pictures with FSR 4, and none in 1421 with FSR 3 or Off. The sessions were short. A black frame has as many draws as its neighbors. The FSR DLLs of v2026.11.30.4 and v2026.11.30.8 are the same byte for byte. Whether the DLL, vkd3d-proton or RADV is at fault is not known; reports from Windows with FSR 4.1.2 on an RX 6800 XT (#50, #72) do not mention it, which points to the Linux side, but is not a measurement.
Textures and lights. Seen by the player: with
VICTORY_PORT_ALL=1, faces of which only the eyes and the mouth are drawn. In run 15 (VICTORY_PORT_ALL=0) the faces were there, with eyes, foreheads and brows that move and a mouth that does not; after a while, textures came and went and popped in late, and lights changed color like strobes. The cause is not known. Faces were there in all three sessions withVICTORY_PORT_ALL=0whose faces were reported on, and missing in the run just before run 15, whose settings differ in nothing else. The guide and the READMEs give it as the thing to try; it is not the default. Video memory was full for most of run 15 (10.7 to 10.9 of 11.5 GB), but texture refusals came only in minutes 2 to 14 and 42 to 44. Slots that went on showing their old texture (VICTORY_KEEP_SHOWN=2) grew from about 60,000 every two minutes to about 140,000.In a video of 18 s of run 17 the scene is black for 4.6 s in 14 stretches, often beside bursts of white, and a light turns red and blue from one frame of the game to the next. The black is FSR 4's. The red and blue come from glass and shiny surfaces, by the player, and are there with FSR 3 and Off too: their cause is not known. None of these, tried in one run each with FSR 4, is a cure:
VICTORY_KEEP_SHOWN=0(more pop-in),VICTORY_PORT_DESCRIPTORS=0(with1, 168 to 260 descriptor records a frame are missed and found later, if their page is among the 16 of about 280 looked at: a fault, but not this one),VICTORY_RELAY=0(no difference seen, half the frame rate). With FSR 3 on v2026.11.30.8,VICTORY_AMBIENT_REFLECT=0andVICTORY_AMBIENT=0gave too few red and blue frames to tell the sessions apart, and the second turned a room almost all white. No texture was refused for lack of memory in those sessions, so their pop-in is not that.Checks
python3 -m unittest discover -s release/tests: 92 pass./stuff/release, the game folder in/stuff(a private one, with a dummy file for the title) and the real Proton, the launcher before the fix gave the reportedError: reading Z:\stuff\...: path not found, and the one now reads the file. With the prefix outside the home as well.warmthrough Proton and stopped it in 4.1 s with nothing left running. PLAY has since started the game from the window on the test PC.documented_switches_are_readwere checked with a script that follows their rules, not withcargo test(the crates are not downloaded on this PC). The new files pass.VICTORY_NAMEinREADME.md, already there onmain, is a name no source reads, so that test looks red onmaintoo.🤖 Generated with Claude Code
https://claude.ai/code/session_01Y2QqrwNobrhjwn27CitnKG
@chatgpt-codex-connector[bot] on GitHub · 2026-11-30 16:43 UTC · original · edited 2026-11-30 16:50 UTC
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
cc1dec0ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
@chatgpt-codex-connector[bot] on GitHub · 2026-11-30 16:50 UTC · original · reviewed
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
cc1dec072bℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@ -0,0 +17,4 @@from pathlib import PathROOT = Path(__file__).resolve().parentGAME_EXE = "game_scarlett_master.exe"@chatgpt-codex-connector[bot] on GitHub · 2026-11-30 16:50 UTC · original
This new launcher hard-codes
game_scarlett_master.exe, introducinggame_scarlettinto a distributed launcher even though the repository rule bans it there and says to useyour_executable.exeor its localized equivalent. Use the permitted placeholder or configuration instead before shipping.AGENTS.md reference: AGENTS.md:L73-L73
Useful? React with 👍 / 👎.
@ -25,6 +26,10 @@ NVIDIA and Intel GPUs are not supported.The launcher detects your GPU generation, VRAM, RAM and CPU threads and picks settings to match. Settings are saved to `victory.ini` next to the launcher.## Linux (experimental)@chatgpt-codex-connector[bot] on GitHub · 2026-11-30 16:50 UTC · original
This adds the Linux status only to the English root README, and the repository-wide file inventory contains no
README.ru.mdor Russian section. Russian landing-page readers therefore will not see that Linux is experimental and currently not playable; the required README governance says EN/RU content must be updated together, so add the translated counterpart in this change.AGENTS.md reference: AGENTS.md:L60-L60
Useful? React with 👍 / 👎.
@ -0,0 +1,140 @@# Linux guide (experimental)@chatgpt-codex-connector[bot] on GitHub · 2026-11-30 16:50 UTC · original
This adds a technical Linux guide at the repository root, while the required documentation governance directs Linux guides into
docs/{en,ru}/. Keeping it at the root bypasses the maintained locale structure; move it underdocs/en/, add thedocs/ru/counterpart, and update the README link.AGENTS.md reference: AGENTS.md:L60-L60
Useful? React with 👍 / 👎.
@ -0,0 +281,4 @@def prefix():data = os.environ.get("XDG_DATA_HOME") or Path.home() / ".local/share"return Path(os.environ.get("WINEPREFIX") or Path(data) / "victory-linux/prefix")@chatgpt-codex-connector[bot] on GitHub · 2026-11-30 16:50 UTC · original
When
WINEPREFIXis relative and the launcher is invoked from outside its install directory,prefix()resolves the ready marker and compiler relative to the caller's directory, butumu()runs withcwd=ROOTand passes the same relative value to Proton. Setup and play can therefore use different prefixes; normalize the override to an absolute path before using it.Useful? React with 👍 / 👎.
@Xinayder on GitHub · 2026-11-30 20:44 UTC · original · edited 2026-11-30 20:48 UTC
I appreciate the effort but there's something weird with how it tries to find the paths for the game files. I have everything under /stuff/torrents/ and the script says it cannot find the executable:
EDIT: Clanker told me to add
PRESSURE_VESSEL_FILESYSTEMS_RW=/stuffand it worked.@skalel on GitHub · 2026-11-30 21:47 UTC · original · edited 2026-11-30 22:00 UTC
lmao, clanker got me off.
ill update the PR with a GTK4 version to this script, just like the one they have on Windows. Feel free to test it :)
EDIT: btw, your problem happened because Proton runs inside the Steam Runtime container, which sees your home folder but not folders like /stuff. The launcher never told the container about the game folder, so it wasn't visible in there, even though the path itself (Z: is just /) was right. PRESSURE_VESSEL_FILESYSTEMS_RW is the right workaround, and I'm making the launcher set it by itself.
Proton's container sees little outside the home. umu-run is given the program as a Windows path, so it shared only the working folder: with the game folder elsewhere, victory.exe could not read the title ("Path not found"). The launcher now shares its own folder and the game folder with the container, in PRESSURE_VESSEL_FILESYSTEMS_RW, and keeps what is set there already. Guide and READMEs (English, Russian, Brazilian Portuguese): where the folders may be, and VICTORY_PORT_ALL=0 for missing faces and textures. Faces were there in both sessions reported on with it, and missing in a run that differs from one of them in nothing else. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Y2QqrwNobrhjwn27CitnKG@Xinayder on GitHub · 2026-11-30 23:56 UTC · original · edited 2026-12-01 00:04 UTC
I've tried the latest changes, it solved my issues, but now I guess it's a matter of time of finding a proper config to get the game playable.
On a Ryzen 9 5900X, RX6700 XT, 32GB RAM, I get the following results:
frames-20261201-004524.csv: 237 frames in the world, median 2.5 fps, p10 0.9, 1% 0.2there was one run that I managed to get around 15fps median, but I cannot replicate it.
victory.ini:
EDIT: got a bit more fps by setting the resolution to 360p:
frames-20261201-005701.csv: 280 frames in the world, median 5.2 fps, p10 1.2, 1% 0.3faces still don't render, and no lights indoors, and my GPU usage is not even close to 100%. memory usage is around 10GB.
@skalel on GitHub · 2026-12-01 00:48 UTC · original
im using the following Extras "VICTORY_SKIP_INTRO=1;VICTORY_TEXTURE_MAX=512;VICTORY_TEXTURE_ROOM_PERCENT=91;VICTORY_TEXTURE_KEEP_PERCENT=84;VICTORY_CARD_ROOM_FOR_TARGETS_MB=1280;VICTORY_PORT_ALL=0"
VICTORY_PORT_ALL=0 fixes the glitches about the faces and other things.
Im right now validating that the fsr4 implementation is actually causing some black screens when i encounter some light reflection artifacts.
Evaluating with Claude to see if something would solve (changing to FSR3 fixes it, but we want the quality of 4, of course)
i'll evaluate if i can actually invest some time on changing somethings on the Rust code to optimize this on Linux, all repos are really bad at my pc, but same specs on windows are "playable". This one already gave me a huge leap from ~2fps and broken 3D rendering to ~15-20 at prison and ~10 at the piers house.
Could be an interesting start point to develop some linux-based fixes
@BelphegorPrime on GitHub · 2026-12-01 18:41 UTC · original
Thanks for the Linux launcher and the
VICTORY_PORT_ALL=0workaround! I can independently confirm that it restores facial geometry on another RDNA2 card, an RX 6900 XT.Test environment
Results
VICTORY_PORT_ALL=0, FSR 3, FG offVICTORY_PORT_ALL=0, upscaler off, FG offReproduction using the Linux launcher:
Then repeat with
Upscaler=Off, keeping the other settings unchanged.In the prison corridor cutscene with FSR 3 Quality (720p internal / 1080p output), the overlay showed approximately 17 FPS, 76% GPU utilization, 10.3 GB VRAM and 25.5 GB RAM. The guard's face was almost black and his forearms/hands were magenta. Disabling FSR improved the arm artifacts but worsened lighting.
The workaround therefore restores visible faces on my setup, but does not restore facial animation or correct lighting. These are visual observations, not a confirmed root-cause diagnosis. Potentially related: #18, #41 and #57.
Happy to provide additional logs or run targeted tests if useful.
@skalel on GitHub · 2026-12-01 19:01 UTC · original
Illd recommend to change the project to the https://github.com/lobomfz/VIctory-xmem. It fixes a lot of things already and im getting ~20fps at jason house, without visual artifacts
Pull request closed