Series S on an 8 GB laptop GPU: VICTORY_WINDOW_KB=1024 VICTORY_WINDOW_TAILS=1 VICTORY_INPLACE=1 cut memory and fill in more of the first room #580
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork#580
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@Jonirulah on GitHub · 2026-11-25 02:31 UTC · original
Setup
main(c96b4f2) plus a few local patches; #188 is needed for Series S.--console series-s), warm pipeline library.VICTORY_PIPELINE_WAIT_MS=24 VICTORY_LEAN_WINDOWS=1.Same shot: first room after the cutscene, character at the window. One run each, process numbers sampled every 10 s once the frame rate had settled:
WINDOW_KB=1024 WINDOW_TAILS=1INPLACE=1Picture
With one run each, part of this may simply be how long streaming had to catch up.
What limits
INPLACE: in C the inplace line reports132 windows 188 MBin place and4185 view memory or not private memory committed wholeturned down. Most title memory is the physical-page pool, which xmem creates as aSEC_RESERVEsection, andOpenExistingHeapFromFileMappingrefuses that. With the shared usage still around 4.3 GB on an 8 GB card, a committed pool section (or another way to open it in place) looks like the remaining big lever. I haven't tried it.Also relevant on this card: a diag run at the same point showed textures capped at the 90% budget: 6.6 of 7.25 GB, about 9.9k title textures without a host copy, and over 1,100 passes that made no texture for lack of room.
@OussamaToumirt on GitHub · 2026-11-25 04:54 UTC · original
Tried the lever from the last paragraph: the page pool made
SEC_COMMITand opened in place. Numbers from one machine, no game data.Setup
TdrDelay10 s. Game on a SATA SSD.mainatc6867ca+ local changes, release build, Series X profile, opening cutscene, 150 to 180 s of world frames per run (medians of the frame lines).VICTORY_RELAY=0 VICTORY_WIDE_BACK=0 VICTORY_CARD_BUFFERS_MIN_MB=16 VICTORY_CARD_BUFFERS_MB=512 VICTORY_LATE_WAIT=0 VICTORY_PLACED_FILLER=1 VICTORY_EARLY_TEXTURES_MS=0 VICTORY_BAKE_TEXTURES_MS=0.The change (
VICTORY_INPLACE=3, local, about 60 lines)xmem:XMemAllocatePhysicalPagesmakes its sectionSEC_COMMITwhenVICTORY_INPLACE>=3(6.1 GiB of commit up front) and reports it committed;commit()returns early as under Wine.inplace::place_for: aCover::Run(section, offset)is placed in the section itself: the section is opened once withOpenExistingHeapFromFileMappingand kept, and a buffer is placed at the 64 KiB-aligned offset; other views are still turned down.Results
VICTORY_INPLACEIn place 3 report:
85 windows 400 MB, 3422 title buffers 361 MB,72 refused by the host; no device loss.What it shows here
VICTORY_TEXTURE_ROOM_PERCENT=75removed the 2–3 s GPU spikes once the card filled (1.3 fps, GPU ~410 ms flat).Series S on this card (
main+ #188 + #32, same switches,VICTORY_INPLACE=2): the main targets are 1280x720 (2560x1440 on Series X). GPU 130–300 ms per frame for the first minute and a half (2–2.4 fps), then about 550 ms for the rest; median 1.3 fps over the run, no device loss.Not tested: NVIDIA, other AMD cards, gameplay past the cutscene, more than one run per setting (run-to-run spread here is about ±0.2 fps).
AI use: Claude Code (Claude Opus 5.5) made the change, ran the builds and runs, and wrote this comment. The runs are from the owner's machine.