Profile under root (RDNA3, 8 GB): the frame is the title's own synchronisation, not the layer's memory work #64

Open
opened 2026-12-01 11:51:17 +00:00 by github-bot · 5 comments
Owner

@⁠YaBulochka on GitHub · 2026-12-01 11:50 UTC · original

Where the frame goes: a root-level profile of the stack on RDNA3 / 8 GB

Measured on a machine that is not the reference one, in case the shape is useful: nobody's copy of this runtime has been counted from the kernel side, and the split surprised me.

Rig. RX 7600 XT (8 GB, RDNA3), Ryzen 5 9600X (6 cores / 12 threads), 30 GB RAM, RADV 26.3.1 built by ./setup.sh, GE-Proton11-16, KWin on Wayland with the desktop on the integrated GPU (so the dGPU does the title alone). Build: 37bb30f with #51, #52, #58 and #60 merged locally (ede9bc9); series-s, VICTORY_FSR_HOST=1, VICTORY_OUTPUT=1920x1080, VICTORY_BVH_HARDWARE=0, ray tracing otherwise on.

Method. bpftrace on tracepoint:syscalls:sys_enter_ioctl and the amdgpu:* tracepoints with /pid == <title>/, strace -c -f on the same pid, perf record -p at 99 Hz, plus /proc/<pid>/smaps and the DRM fdinfo counters. Every number below is the title's process only; system-wide counters are useless here because the desktop runs on the other card.

The split

Frame, 720p rendered to 1080p, open world:

fps            13.8 - 16.0
frame          72 ms
preparing      4 - 12 ms
copy           0.6 - 1.0 ms      (Copy prep 0.4 ms in the HUD)
gpu_wait      20 - 45 ms
texture queue ~13k slots, 60-370 due, oldest written 5-11k frames ago

Syscalls of the title, per 10 s (two runs, same shape):

futex            186 000 - 210 000      ~47 % of syscall time
ioctl            372 000 - 418 000      ~44 %
pread64           40 000 -  50 000
mmap              16 000 -  18 000
mprotect          19 000 -  21 000

And the ioctls by request, which is the part I did not expect:

NTSYNC_IOC_WAIT_ANY          77 982 / 5 s    15 600/s
NTSYNC_IOC_EVENT_SET         62 432          12 500/s
DRM_AMDGPU_GEM_VA            15 988           3 200/s   (the page-table work)
DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT 10 022         2 000/s
NTSYNC_IOC_SEM_RELEASE        7 266
DRM_IOCTL_AMDGPU_CS           3 995             800/s
GEM_CLOSE                     1 140
GEM_CREATE / GEM_MMAP           944 / 943

amdgpu tracepoints for the same process: vm_bo_map 24 000-51 000 and vm_bo_unmap 23 000-53 000 per 10 s, bo_move 2 700-5 200, bo_create 1 400-2 700.

Profile (perf -p, 99 Hz), stable across four runs:

21-28 %  __wine_syscall_dispatcher
 8-12 %  NtDelayExecution
 9-12 %  the title's JIT
 5-6  %  getrusage
 5-6  %  __sched_yield

What I read out of it

The layer's own memory work is not the heavy part: 800 submissions and 3 200 page-table updates a second. What dominates is the title's own synchronisation, arriving as 15 600 NTSYNC_WAIT_ANY and 12 500 EVENT_SET a second, plus the futex traffic beside it. 150 threads of the title, waiting on each other, is the largest single consumer in the process.

Second, the page cache is squeezed while the title streams: filemap_add_folio 138 000-205 000 per 10 s against filemap_get_pages 17 000-37 000, that is 54-100 MB/s, with Cached at 1.8-2.7 GB on a machine that has 30 GB. The title keeps adding, the cache keeps dropping, so textures come back from disk.

Third, and small: VRAM sits at 7.0-7.6 GB of 8.2 GB with GTT around 9.5 GB, which is where bo_move and part of the page-table churn comes from.

Ruled out here, with numbers, so it is not re-tried

  • Resolution is not the wall: 1280x720, 960x540 and 640x360 render to the same frame (12-16 fps), gpu_wait stays 25-45 ms in all three.
  • AVX-512 in the shader translator: 20 runs of a whole-store translation, 23.2 s versus 22.6 s median, permutation test p=0.42. Nothing.
  • VICTORY_PAGES=0 does not change the mapping churn (24 467 to 23 181 vm_bo_map per 10 s), so the residency pass is not what remaps pages.
  • The texture re-check ceiling (most): 256 frames versus 4 changes nothing on screen and multiplies re-uploads by 18.
  • Keeping the slot when its page is away, and not uploading partially mapped textures: both no visible change, the first also slows the frame.
  • Pinning the title to six physical cores: same frame, worse preparing.

Questions

  1. Is 15 600 NTSYNC_WAIT_ANY a second expected for this title, or does it look like a synchronisation that could be batched (one wait for several events)?
  2. The streaming numbers above (filemap_add against filemap_get_pages, 54-100 MB/s) — does that match what the reference machine shows, or is this 8 GB card simply re-reading what a bigger one would keep?
  3. If any of this is useful to keep, I can re-run the same probes on a build you point at and post the deltas; the scripts are local and only read counters.

No game files, paths, screenshots or captures included: numbers and log fragments only.

**@⁠YaBulochka** on GitHub · 2026-12-01 11:50 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/64) # Where the frame goes: a root-level profile of the stack on RDNA3 / 8 GB Measured on a machine that is **not** the reference one, in case the shape is useful: nobody's copy of this runtime has been counted from the kernel side, and the split surprised me. **Rig.** RX 7600 XT (8 GB, RDNA3), Ryzen 5 9600X (6 cores / 12 threads), 30 GB RAM, RADV 26.3.1 built by `./setup.sh`, GE-Proton11-16, KWin on Wayland with the desktop on the integrated GPU (so the dGPU does the title alone). Build: `37bb30f` with #51, #52, #58 and #60 merged locally (`ede9bc9`); `series-s`, `VICTORY_FSR_HOST=1`, `VICTORY_OUTPUT=1920x1080`, `VICTORY_BVH_HARDWARE=0`, ray tracing otherwise on. **Method.** `bpftrace` on `tracepoint:syscalls:sys_enter_ioctl` and the `amdgpu:*` tracepoints with `/pid == <title>/`, `strace -c -f` on the same pid, `perf record -p` at 99 Hz, plus `/proc/<pid>/smaps` and the DRM `fdinfo` counters. Every number below is the title's process only; system-wide counters are useless here because the desktop runs on the other card. ## The split Frame, 720p rendered to 1080p, open world: ``` fps 13.8 - 16.0 frame 72 ms preparing 4 - 12 ms copy 0.6 - 1.0 ms (Copy prep 0.4 ms in the HUD) gpu_wait 20 - 45 ms texture queue ~13k slots, 60-370 due, oldest written 5-11k frames ago ``` Syscalls of the title, per 10 s (two runs, same shape): ``` futex 186 000 - 210 000 ~47 % of syscall time ioctl 372 000 - 418 000 ~44 % pread64 40 000 - 50 000 mmap 16 000 - 18 000 mprotect 19 000 - 21 000 ``` And the ioctls by request, which is the part I did not expect: ``` NTSYNC_IOC_WAIT_ANY 77 982 / 5 s 15 600/s NTSYNC_IOC_EVENT_SET 62 432 12 500/s DRM_AMDGPU_GEM_VA 15 988 3 200/s (the page-table work) DRM_IOCTL_SYNCOBJ_TIMELINE_WAIT 10 022 2 000/s NTSYNC_IOC_SEM_RELEASE 7 266 DRM_IOCTL_AMDGPU_CS 3 995 800/s GEM_CLOSE 1 140 GEM_CREATE / GEM_MMAP 944 / 943 ``` amdgpu tracepoints for the same process: `vm_bo_map` 24 000-51 000 and `vm_bo_unmap` 23 000-53 000 per 10 s, `bo_move` 2 700-5 200, `bo_create` 1 400-2 700. Profile (`perf -p`, 99 Hz), stable across four runs: ``` 21-28 % __wine_syscall_dispatcher 8-12 % NtDelayExecution 9-12 % the title's JIT 5-6 % getrusage 5-6 % __sched_yield ``` ## What I read out of it The layer's own memory work is **not** the heavy part: 800 submissions and 3 200 page-table updates a second. What dominates is the title's own synchronisation, arriving as 15 600 `NTSYNC_WAIT_ANY` and 12 500 `EVENT_SET` a second, plus the `futex` traffic beside it. 150 threads of the title, waiting on each other, is the largest single consumer in the process. Second, the page cache is squeezed while the title streams: `filemap_add_folio` 138 000-205 000 per 10 s against `filemap_get_pages` 17 000-37 000, that is 54-100 MB/s, with `Cached` at 1.8-2.7 GB on a machine that has 30 GB. The title keeps adding, the cache keeps dropping, so textures come back from disk. Third, and small: VRAM sits at 7.0-7.6 GB of 8.2 GB with `GTT` around 9.5 GB, which is where `bo_move` and part of the page-table churn comes from. ## Ruled out here, with numbers, so it is not re-tried - **Resolution** is not the wall: 1280x720, 960x540 and 640x360 render to the same frame (12-16 fps), `gpu_wait` stays 25-45 ms in all three. - **AVX-512** in the shader translator: 20 runs of a whole-store translation, 23.2 s versus 22.6 s median, permutation test p=0.42. Nothing. - **`VICTORY_PAGES=0`** does not change the mapping churn (24 467 to 23 181 `vm_bo_map` per 10 s), so the residency pass is not what remaps pages. - **The texture re-check ceiling** (`most`): 256 frames versus 4 changes nothing on screen and multiplies re-uploads by 18. - **Keeping the slot when its page is away**, and **not uploading partially mapped textures**: both no visible change, the first also slows the frame. - **Pinning the title to six physical cores**: same frame, worse `preparing`. ## Questions 1. Is 15 600 `NTSYNC_WAIT_ANY` a second expected for this title, or does it look like a synchronisation that could be batched (one wait for several events)? 2. The streaming numbers above (`filemap_add` against `filemap_get_pages`, 54-100 MB/s) — does that match what the reference machine shows, or is this 8 GB card simply re-reading what a bigger one would keep? 3. If any of this is useful to keep, I can re-run the same probes on a build you point at and post the deltas; the scripts are local and only read counters. No game files, paths, screenshots or captures included: numbers and log fragments only.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 11:51:17 +00:00
Author
Owner

@⁠YaBulochka on GitHub · 2026-12-01 12:29 UTC · original

Follow-up: the page traffic itself, traced for a minute

Same rig as above. I traced amdgpu:amdgpu_vm_bo_map and amdgpu_vm_bo_unmap for 60 s during open-world driving at ~13 fps, tracefs buffer at 256 MB, and parsed start/last (they are page numbers in these events, not bytes; the GTT base at 0x80000000 pages confirms it).

map events            107 368          (1 789 a second)
unmap events          107 826
pages mapped in all   2 004 440        = 7.65 GiB of mapping traffic a minute
distinct pages          924 924        = 3.53 GiB, the whole minute's working set
peak mapped at once     125 444        = 0.48 GiB
reuse                        2.17x      (pages mapped / distinct pages)
range size              median 19 pages = 76 KiB, one 8 MiB range out of the tail

Three things stand out.

The minute's working set is 3.5 GiB, and it fits. On this 8 GB card there is room; the frame is not short of VRAM for what the title actually touches in a minute.

What is mapped at any instant is only ~0.5 GiB. So the layer maps a small slice, unmaps it, maps the next: 1 789 operations a second at a median of 76 KiB, 7.65 GiB of mapping traffic for a 3.5 GiB set. Each of those is a page-table update and a TLB invalidation.

It is the layer doing it, not the title. The trace's task names are victory-late-wa… and victory-submit…, so the slicing is ours; the title asks for memory and we hand it over in 76 KiB pieces.

If that reading is right, a policy that keeps larger ranges mapped (or a whole placed buffer at a time) would cut 1 789 operations a second to tens, without any change on the title's side. That is the one lever this profile found that is not "buy a 16 GB card".

Caveats, so this is not overread: one sample, driving at ~13 fps, and tracepoints only cover the VM's own mappings (other resident memory is not in these events). I can re-run the same probe on any commit and post the deltas, or on a build with a switch that changes the policy, so you can see whether the operation count moves.

**@⁠YaBulochka** on GitHub · 2026-12-01 12:29 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/64#issuecomment-7311206079) ## Follow-up: the page traffic itself, traced for a minute Same rig as above. I traced `amdgpu:amdgpu_vm_bo_map` and `amdgpu_vm_bo_unmap` for 60 s during open-world driving at ~13 fps, `tracefs` buffer at 256 MB, and parsed `start`/`last` (they are page numbers in these events, not bytes; the GTT base at `0x80000000` pages confirms it). ``` map events 107 368 (1 789 a second) unmap events 107 826 pages mapped in all 2 004 440 = 7.65 GiB of mapping traffic a minute distinct pages 924 924 = 3.53 GiB, the whole minute's working set peak mapped at once 125 444 = 0.48 GiB reuse 2.17x (pages mapped / distinct pages) range size median 19 pages = 76 KiB, one 8 MiB range out of the tail ``` Three things stand out. **The minute's working set is 3.5 GiB, and it fits.** On this 8 GB card there is room; the frame is not short of VRAM for what the title actually touches in a minute. **What is mapped at any instant is only ~0.5 GiB.** So the layer maps a small slice, unmaps it, maps the next: 1 789 operations a second at a median of 76 KiB, 7.65 GiB of mapping traffic for a 3.5 GiB set. Each of those is a page-table update and a TLB invalidation. **It is the layer doing it, not the title.** The trace's task names are `victory-late-wa…` and `victory-submit…`, so the slicing is ours; the title asks for memory and we hand it over in 76 KiB pieces. If that reading is right, a policy that keeps larger ranges mapped (or a whole placed buffer at a time) would cut 1 789 operations a second to tens, without any change on the title's side. That is the one lever this profile found that is not "buy a 16 GB card". Caveats, so this is not overread: one sample, driving at ~13 fps, and tracepoints only cover the VM's own mappings (other resident memory is not in these events). I can re-run the same probe on any commit and post the deltas, or on a build with a switch that changes the policy, so you can see whether the operation count moves.
Author
Owner

@⁠YaBulochka on GitHub · 2026-12-01 12:54 UTC · original · edited 2026-12-01 12:58 UTC

Where the 7 GB of VRAM actually goes (it is not the title's memory)

Same rig and build as above. The unified arena reports 1024 MB in VRAM while mem_info_vram_used reads 7.1 GB, so something else owns most of the card.

From the frame summary:

textures from the first level viewed, since the start:
  77 118 host copies of the levels viewed alone
   5 150 MB on the card
  32 503 MB of title memory whole
   3 616 replaced by one with more levels
   7 790 slots made from their new view after its upload had run

So 5.15 GB of the 8 GB card, 72 %, is the layer's copies of individual texture levels, averaging 68 KB each, taken because the title views single mips. The unified memory itself is about 1 GB.

That reframes the residency picture on this card: the window stays at 0.5-0.8 GB not because the policy is timid but because the copies already own the card. A minute's working set is 3.5 GiB (previous comment) and it would fit, if the copies did not.

Three questions this raises, in the order I would answer them:

  1. How many of those 77 118 copies are still read? If most are cold mips for distant views, dropping cold ones frees gigabytes without touching the visible picture.
  2. Can a level viewed alone be aliased instead of copied, the way whole buffers already are? That would remove the copy, and it is the same trick the model is named for.
  3. If copies must exist, is there a reuse window between "made from their new view after its upload had run" (7 790 slots) and replacement? That number suggests copies are remade rather than reused.

What I have not measured yet: how much of that VRAM the ray-tracing structures take. My first attempt at that comparison was wrong (the switch never reached the runtime, because run.sh clears inherited VICTORY_* variables and only takes them as arguments), so I am re-running it and will post the number separately rather than guess.

Caveat: this is one run, an 8 GB card, series-s with VICTORY_FSR_HOST=1 at 1080p, which makes the working set smaller than it would be at 4K. On a 16 GB card the same copies would simply not compete.

No game files, paths or captures included.

**@⁠YaBulochka** on GitHub · 2026-12-01 12:54 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/64#issuecomment-7311830748) · edited 2026-12-01 12:58 UTC ## Where the 7 GB of VRAM actually goes (it is not the title's memory) Same rig and build as above. The unified arena reports `1024 MB in VRAM` while `mem_info_vram_used` reads 7.1 GB, so something else owns most of the card. From the frame summary: ``` textures from the first level viewed, since the start: 77 118 host copies of the levels viewed alone 5 150 MB on the card 32 503 MB of title memory whole 3 616 replaced by one with more levels 7 790 slots made from their new view after its upload had run ``` So **5.15 GB of the 8 GB card, 72 %, is the layer's copies of individual texture levels**, averaging 68 KB each, taken because the title views single mips. The unified memory itself is about 1 GB. That reframes the residency picture on this card: the window stays at 0.5-0.8 GB not because the policy is timid but because the copies already own the card. A minute's working set is 3.5 GiB (previous comment) and it would fit, if the copies did not. Three questions this raises, in the order I would answer them: 1. How many of those 77 118 copies are still read? If most are cold mips for distant views, dropping cold ones frees gigabytes without touching the visible picture. 2. Can a level viewed alone be aliased instead of copied, the way whole buffers already are? That would remove the copy, and it is the same trick the model is named for. 3. If copies must exist, is there a reuse window between "made from their new view after its upload had run" (7 790 slots) and replacement? That number suggests copies are remade rather than reused. **What I have not measured yet:** how much of that VRAM the ray-tracing structures take. My first attempt at that comparison was wrong (the switch never reached the runtime, because `run.sh` clears inherited `VICTORY_*` variables and only takes them as arguments), so I am re-running it and will post the number separately rather than guess. Caveat: this is one run, an 8 GB card, `series-s` with `VICTORY_FSR_HOST=1` at 1080p, which makes the working set smaller than it would be at 4K. On a 16 GB card the same copies would simply not compete. No game files, paths or captures included.
Author
Owner

@⁠YaBulochka on GitHub · 2026-12-01 13:04 UTC · original

Correction to the numbers in the comment above: the first RT comparison was taken with the switch in the environment instead of as an argument, and run.sh clears inherited VICTORY_* variables, so both runs had the builder on. Re-measured properly (VICTORY_BVH_BUILDER=0 VICTORY_BVH_IN_PLACE=0 as run arguments, and the log no longer says "the ray-tracing structure builder runs"):

builder on    VRAM 7 118 MB   GTT 9 126 MB
builder off   VRAM 7 031 MB   GTT 9 106 MB

So the ray-tracing structures are about 87 MB on this card at series-s with 1080p output and the hardware node test off. They are not what fills the card; the 5.15 GB of texture-level copies is, and that part of the comment stands.

The earlier VICTORY_REVEAL_RUN note in my head was also measured with the switch in the environment and is being redone; nothing of it went into this thread.

Sorry for the noise: the rule here is now "every VICTORY_* goes after play", and I will re-run any number you want before it is quoted again.

**@⁠YaBulochka** on GitHub · 2026-12-01 13:04 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/64#issuecomment-7312075464) Correction to the numbers in the comment above: the first RT comparison was taken with the switch in the environment instead of as an argument, and `run.sh` clears inherited `VICTORY_*` variables, so both runs had the builder on. Re-measured properly (`VICTORY_BVH_BUILDER=0 VICTORY_BVH_IN_PLACE=0` as run arguments, and the log no longer says "the ray-tracing structure builder runs"): ``` builder on VRAM 7 118 MB GTT 9 126 MB builder off VRAM 7 031 MB GTT 9 106 MB ``` So the ray-tracing structures are about **87 MB** on this card at `series-s` with 1080p output and the hardware node test off. They are not what fills the card; the 5.15 GB of texture-level copies is, and that part of the comment stands. The earlier `VICTORY_REVEAL_RUN` note in my head was also measured with the switch in the environment and is being redone; nothing of it went into this thread. Sorry for the noise: the rule here is now "every `VICTORY_*` goes after `play`", and I will re-run any number you want before it is quoted again.
Author
Owner

@⁠LOCKhart07 on GitHub · 2026-12-01 14:33 UTC · original

A note on the "host copies of the levels viewed alone" reading: as far as I can tell from the code, those aren't extra copies on top of the texture. They are the texture's host copy, made smaller.

In resource.rs (host_resource), a placed texture the title only views from level n gets a host texture of levels n.. only (ResourceDesc::from_level(base)), not the whole chain. want_level replaces it with a larger one when a sharper level is viewed ("replaced by one with more levels"). HELD[1] (the MB on the card) is the size of those reduced copies, and HELD[3] (MB of title memory whole) is what the full textures would have taken.

So 5.15 GB on the card versus 32.5 GB whole is a saving of about 27 GB. Each title texture's console-layout bytes stay in title memory, and the PC-layout host copy is the only copy in VRAM.

Same counter on a 16 GB RX 9070 XT (RT on, 1440p, ~18 min): 537,052 reduced copies, 38 GB copied versus 220 GB whole.

What did look costly here instead:

  • Idle copies are let go once the card passes 80% of its budget (2 s idle at 86–92%). That was 675k copies over the session, 19% of them made again.
  • About 92% of new slot showings first show the neutral texture for up to 3 frames while their upload lands. That reads as flicker.
**@⁠LOCKhart07** on GitHub · 2026-12-01 14:33 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/64#issuecomment-7314463601) A note on the "host copies of the levels viewed alone" reading: as far as I can tell from the code, those aren't extra copies on top of the texture. They *are* the texture's host copy, made smaller. In `resource.rs` (`host_resource`), a placed texture the title only views from level *n* gets a host texture of levels *n*.. only (`ResourceDesc::from_level(base)`), not the whole chain. `want_level` replaces it with a larger one when a sharper level is viewed ("replaced by one with more levels"). `HELD[1]` (the MB on the card) is the size of those reduced copies, and `HELD[3]` (MB of title memory whole) is what the full textures would have taken. So 5.15 GB on the card versus 32.5 GB whole is a saving of about 27 GB. Each title texture's console-layout bytes stay in title memory, and the PC-layout host copy is the only copy in VRAM. Same counter on a 16 GB RX 9070 XT (RT on, 1440p, ~18 min): 537,052 reduced copies, 38 GB copied versus 220 GB whole. What did look costly here instead: - Idle copies are let go once the card passes 80% of its budget (2 s idle at 86–92%). That was 675k copies over the session, 19% of them made again. - About 92% of new slot showings first show the neutral texture for up to 3 frames while their upload lands. That reads as flicker.
Author
Owner

@⁠YaBulochka on GitHub · 2026-12-01 16:06 UTC · original

Three switches on an 8 GB card: gpu_wait 38.6 -> 13-15 ms, frame 60.7 -> 56 ms

Follow-up on the profile above, because two of these are defaults rather than new code, and one of them is on by default and costs about 25 ms of card wait here.

Setup. Same rig and build as the first post (RX 7600 XT 8 GB, Ryzen 5 9600X, RADV 26.3.1, series-s, VICTORY_FSR_HOST=1, VICTORY_OUTPUT=1920x1080, VICTORY_BVH_HARDWARE=0, ray tracing otherwise on). One save, open world, medians of the in-world frame lines:

                                   fps   frame   prep   gpu_wait   draws
no switches                      16.48    60.7   6.06      38.6     6117
+ VICTORY_SHADER_OPT=0xffffffff   14.94    66.9  10.44      25.4     6101
+ VICTORY_LOW_MEMORY=0            18.35    54.5   9.16      17.2     6937
+ VICTORY_PROCESS_PRIORITY=high   16.80    59.6   9.51      13.2     7250
  same, second run                17.66    56.6   8.90      14.6     6855

The finding. gpu_wait falls by about two thirds and stays there between runs. The frame falls 60.7 -> 54-57 ms. FPS rises from 16.5 to 17-18 while drawing more per frame, so the per-draw cost moved less than the totals suggest; gpu_wait is the number that holds.

Why it looks like VICTORY_LOW_MEMORY is backwards here. It is on when unset (memory.rs: is_none_or(|v| v != "0")), and turning it off is the single biggest step in the table. My reading of direct() is that with it on, pages above 0x1_0000 skip some of the "can this be placed directly" checks, so the title ends up waiting for pages instead of reading them where they are. On an 8 GB card with 5.15 GB of texture-level copies that may be the wrong trade: the mode saves VRAM by making the title wait.

So the question: is the low-memory default right for 8 GB cards? Here it costs about 25 ms a frame of card wait, and switching it off is worth more than everything I tried on top of it.

Cost of the shader pass set. VICTORY_SHADER_OPT is part of the cache key, so the first run rebuilt 99 308 pipelines in 777 s (13 minutes). Fine once; worth a line in the docs, because switching it looks like the game hung.

Textures. None of the three changed the flicker: tiles of another texture on roads and clothes, and characters that go fully white or black, are still there. That is the refill put off ... the last fill kept path from my earlier comment, and it is untouched by these switches.

No game files, screenshots or captures included.

**@⁠YaBulochka** on GitHub · 2026-12-01 16:06 UTC · [original](https://github.com/lobomfz/VIctory-xmem/issues/64#issuecomment-7317046952) ## Three switches on an 8 GB card: `gpu_wait` 38.6 -> 13-15 ms, frame 60.7 -> 56 ms Follow-up on the profile above, because two of these are defaults rather than new code, and one of them is on by default and costs about 25 ms of card wait here. **Setup.** Same rig and build as the first post (RX 7600 XT 8 GB, Ryzen 5 9600X, RADV 26.3.1, `series-s`, `VICTORY_FSR_HOST=1`, `VICTORY_OUTPUT=1920x1080`, `VICTORY_BVH_HARDWARE=0`, ray tracing otherwise on). One save, open world, medians of the in-world frame lines: ``` fps frame prep gpu_wait draws no switches 16.48 60.7 6.06 38.6 6117 + VICTORY_SHADER_OPT=0xffffffff 14.94 66.9 10.44 25.4 6101 + VICTORY_LOW_MEMORY=0 18.35 54.5 9.16 17.2 6937 + VICTORY_PROCESS_PRIORITY=high 16.80 59.6 9.51 13.2 7250 same, second run 17.66 56.6 8.90 14.6 6855 ``` **The finding.** `gpu_wait` falls by about two thirds and stays there between runs. The frame falls 60.7 -> 54-57 ms. FPS rises from 16.5 to 17-18 while drawing more per frame, so the per-draw cost moved less than the totals suggest; `gpu_wait` is the number that holds. **Why it looks like `VICTORY_LOW_MEMORY` is backwards here.** It is on when unset (`memory.rs`: `is_none_or(|v| v != "0")`), and turning it off is the single biggest step in the table. My reading of `direct()` is that with it on, pages above `0x1_0000` skip some of the "can this be placed directly" checks, so the title ends up waiting for pages instead of reading them where they are. On an 8 GB card with 5.15 GB of texture-level copies that may be the wrong trade: the mode saves VRAM by making the title wait. So the question: is the low-memory default right for 8 GB cards? Here it costs about 25 ms a frame of card wait, and switching it off is worth more than everything I tried on top of it. **Cost of the shader pass set.** `VICTORY_SHADER_OPT` is part of the cache key, so the first run rebuilt **99 308 pipelines in 777 s** (13 minutes). Fine once; worth a line in the docs, because switching it looks like the game hung. **Textures.** None of the three changed the flicker: tiles of another texture on roads and clothes, and characters that go fully white or black, are still there. That is the `refill put off ... the last fill kept` path from my earlier comment, and it is untouched by these switches. No game files, screenshots or captures included.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/lobomfz--VIctory-xmem#64
No description provided.