8 GB Turing: SM active ~54 % with ~870 full-card waits per frame; cause not established #2640

Open
opened 2026-11-29 15:25:08 +00:00 by github-bot · 2 comments
Owner

@⁠Jesper-Andersson on GitHub · 2026-11-29 15:22 UTC · original

(Searched first: open PRs #1776 QUIET_WAITS, #1851 WAIT_SHARE, #1852 UAV_FOLD, #1890 JOIN_BARRIERS, #2360 scoped clamp barriers, #2359; issue #2098 (RTX 3090 Ti profiling notes) reports the same shape on another card and is linked below. This issue is a measurement for them, not a competing fix.)


What you see

About 17 fps (PresentMon, last 180 s of the run), median frame 55 ms, p95 77-87 ms. Open world, Series S profile, DLSS Performance, frame generation off. Warm shader cache from earlier runs.

Two of our measurements show the same shape. We have not established what causes it.

  1. Nsight Graphics GPU Trace (Throughput Metrics), in game: GR active about 98 %, SM active about 54 %, SM issue about 13 %, PCIe RX about 15 %. About 1,200 dispatches and 1,900 barriers per frame. The card counts as busy, but its SMs are idle about half the time.
  2. Play-log counts per frame (steady state, two 18-minute windows; line waits for every earlier shader write):
    • about 870 full waits ("wait for every earlier shader write") come from the title's own barrier-group calls;
    • 198 indirect commands each sit between two more such waits, around our clamp dispatch. (The clamp dispatch is a small compute pass of ours that bounds the title's indirect arguments in a scratch buffer before the ExecuteIndirect reads them.)
    • in 20+ sampled windows, about 250 of all these waits come after nothing that writes;
    • 5,350 indirect executions per frame, none of them joined. ("Joined" means two back-to-back one-record executions recorded as one ExecuteIndirect, VICTORY_INDIRECT_MERGE=1, which was off.)

New: the title-side wait switches have little to remove on this scene. We ran VICTORY_BARRIER_STATS=2 (barstat.rs in upstream main) with our ports of QUIET_WAITS (#1776), UAV_FOLD (#1852) and WAIT_SHARE (#1851) on. In that run JOIN_BARRIERS=1, INDIRECT_BATCH=3 and ALIAS_DIRECT=1 were also on.

  • The detail line said QUIET_WAITS would leave out 5 of 766 title waits per frame.
  • The UAV_FOLD line said 3 UAV barriers came "after nothing that writes".
  • The WAIT_SHARE counter ("title waits left out after one with only bindings since") read 0 in every log we have. That includes three runs with WAIT_SHARE=1 (and VICTORY_THIN=1). We have not found out why it never acts here.
  • Our reading, not measured: most of the ~250 waits after nothing that writes are the clamp-bracketing ones (the #2360 / INDIRECT_BATCH area), not the title's.
  • A note for anyone reading the same census: the "after nothing that writes" count on the census line counts quiet waits whether or not a switch skips them. That line alone cannot show what a switch did; the BARRIER_STATS detail line can.

We have not measured how many milliseconds the waits cost. The only on/off pair for the three switches together was −0.38 fps and p95 +4.7 ms, from separate launches with GPU timing on. That is n=1 and inside our noise, so it is not a result.

GPU and driver

RTX 2070 SUPER 8 GB (Turing, wave32), driver 621.40, Resizable BAR off, GPU clock locked at 1890 MHz.

CPU, RAM and Windows version

Ryzen 7 5800X (8 cores / 16 threads), 32 GB, Windows 11 Pro 10.0.26320.

VIctory release or commit

Not a release. A diagnostics build of our branch, based on upstream main 568c5e5d (2026-11-28), which is older than current main 829188e9. Our ports are on top of it, and their new behaviour is off unless the log header lists it. The QUIET_WAITS, WAIT_SHARE, UAV_FOLD and JOIN_BARRIERS code is our port of the open PRs above. The BARRIER_STATS run used our earlier round-4 tree on the same base.

Settings

Series S, 1440p output, DLSS Performance, frame generation off, no frame cap, ray tracing off, VICTORY_SKIP_BINK=1. Our launch set includes VICTORY_INDIRECT_BATCH=2 VICTORY_INDIRECT_WINDOW=1 VICTORY_THIN=1 VICTORY_CARD_STEPS=2 VICTORY_JOIN_PARTS=8 VICTORY_RELAY=2 VICTORY_SLOT_EVICT=1 VICTORY_SPANS_QUICK=1 VICTORY_TEXTURE_STAGE_MS=32 VICTORY_WATER_LIGHT=0 (full list on request). Diagnostics build for the counts.

Logs

No crash occurred, so there is no crash log. The full play logs are not attached because they name the title. Excerpt from the BARRIER_STATS=2 run (title-specific lines removed, paths removed, long lines shortened with ...):

# console=series-s build=diag  switches (barrier-related only): VICTORY_BARRIER_STATS=2 VICTORY_QUIET_WAITS=1 VICTORY_UAV_FOLD=1 VICTORY_WAIT_SHARE=1 VICTORY_JOIN_BARRIERS=1 VICTORY_INDIRECT_BATCH=3 VICTORY_ALIAS_DIRECT=1 VICTORY_THIN=1
05:29:15 INFO streamline: DLSS Super Resolution is supported on this GPU requirements="OS 10.0.26320 (needs 10.0.0), driver 621.40.0 (needs 512.15.0)"
05:29:16 INFO host: adapter=NVIDIA GeForce RTX 2070 SUPER own_memory_mb=7989
05:36:58 INFO copystat: waits for every earlier shader write, per frame: 873 for the title's barrier groups, 0 for its barriers on buffers; 146 indirect commands bounded (a dispatch of ours between two such waits each), 42 batched clamps ended by a record written since the last; 201 of all these after nothing that writes; 0 title waits left out after one with only bindings since; barrier experiment 0
05:37:03 INFO copystat: waits for every earlier shader write, per frame: 875 for the title's barrier groups, 0 for its barriers on buffers; 149 indirect commands bounded (...); 201 of all these after nothing that writes; 0 title waits left out after one with only bindings since; barrier experiment 0
05:30:03 INFO barstat: barrier stats detail per frame (VICTORY_BARRIER_STATS=2): ... waits VICTORY_QUIET_WAITS would leave out (nothing that writes since the previous wait in the list, the list's first kept) 5 of 766 title waits (172 list-first waits); ...
05:29:44 INFO copystat: the title's own unordered access barriers, per frame: 4 on every resource, 0 on one; 0 covered by another in the same call, 3 after nothing that writes (VICTORY_UAV_FOLD on)
05:34:28 INFO host: 17.0 fps, 58.7 ms/frame (38.5 preparing: copies 19.8 ms 49.1 MB, textures 1.5 ms ...) ...

Lines are from one log and not in time order. This excerpt is the BARRIER_STATS=2 run with the skip switches on; the counts in the text above (~870 waits, 198 clamp-bracketed indirect commands, ~250 after nothing that writes) are from the two 18-minute windows with those switches off, so the excerpt's counts (146-149 bounded plus 42 batched, 201 after nothing that writes) differ. The UAV_FOLD line shown is the most common one in that run (76 of 93 periodic lines). The log with the bundle switches off, and the full switch list, are available on request.

Are you working on a fix?

No. No fix claimed, we are not working on one, and there is no /claim.


  • #2098 (RTX 3090 Ti, Ryzen 7 9800X3D): graphics engine active ~99 %, SM throughput 10-20 %, front end in wait-for-idle ~29 %, ~560 of ~650 go-idles at barrier calls. Same shape on a much faster card. They also report that dropping all global UAV barriers (unsafe, as a measurement) did not change fps.
  • #553: adjacent (WC_BAR, about half the GPU wait gone on 8 GB with ReBAR on; we run ReBAR off).
  • #1776, #1851, #1852, #1890 (title-side waits), #2360 and #2359 (clamp and ambient barriers).

Spec dependence

  • Likely general: the per-frame wait count comes from the title's own barrier-group calls and from our clamp bracketing. It should not depend on the card. #2098 sees similar counts.
  • May depend on our specs: how much SM time sits idle (Turing, 8 GB, wave32, 1890 MHz lock).
  • Untested elsewhere: other GPU generations, AMD, 12-16 GB cards, Series X, frame generation, ray tracing.

What would settle it (asks only, no fix claimed)

  • Anyone with Nsight on Ampere or Ada: is SM active also near half on a similar open-world scene?
  • A wait-for-idle or go-idle count per barrier kind (title group, clamp, copy) on any card. #2098 has one for a 3090 Ti; we do not yet have one for Turing.

Sources

  • Full and global waits can be expensive: Microsoft Learn, D3D12 enhanced barriers ("Global barriers affect all cached memory so they can be expensive"); UAV barriers in DirectML ("A UAV barrier forces all previously-submitted dispatches to complete").
  • Cost of a wait with nothing pending on Turing: not known; we found no published figure.
  • Same shape on a 3090 Ti: #2098.
  • Our own numbers (Nsight trace, play-log counts, PresentMon summaries) come from our runs; the log excerpt is in the Logs section.

Causes (hypotheses, not measured)

  • The full waits may split the frame into many short dependent phases that each drain before the next one starts. That would give high GR active with low SM active. We have no per-wait timing, and #2098's unsafe "drop all global UAV barriers" test did not raise fps there, which argues against waits being the main cost.
  • The submitting thread leaves the card idle 6-35 ms per frame in our logs (a separate issue, linked when posted). We have not checked whether Nsight's GR active counts that idle time as active, so the SM figure may mix the two.

Not tested

Per-wait GPU cost; #2360 on this card with fps scored; frame generation on; ray tracing; other cards.

Drafted with AI assistance (Claude Code); measurements are ours.

**@⁠Jesper-Andersson** on GitHub · 2026-11-29 15:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2640) (Searched first: open PRs #1776 QUIET_WAITS, #1851 WAIT_SHARE, #1852 UAV_FOLD, #1890 JOIN_BARRIERS, #2360 scoped clamp barriers, #2359; issue #2098 (RTX 3090 Ti profiling notes) reports the same shape on another card and is linked below. This issue is a measurement for them, not a competing fix.) --- ### What you see About 17 fps (PresentMon, last 180 s of the run), median frame 55 ms, p95 77-87 ms. Open world, Series S profile, DLSS Performance, frame generation off. Warm shader cache from earlier runs. Two of our measurements show the same shape. We have **not** established what causes it. 1. **Nsight Graphics GPU Trace (Throughput Metrics), in game:** GR active about 98 %, SM active about 54 %, SM issue about 13 %, PCIe RX about 15 %. About 1,200 dispatches and 1,900 barriers per frame. The card counts as busy, but its SMs are idle about half the time. 2. **Play-log counts per frame** (steady state, two 18-minute windows; line `waits for every earlier shader write`): - about 870 full waits ("wait for every earlier shader write") come from the title's own barrier-group calls; - 198 indirect commands each sit between two more such waits, around our clamp dispatch. (The clamp dispatch is a small compute pass of ours that bounds the title's indirect arguments in a scratch buffer before the ExecuteIndirect reads them.) - in 20+ sampled windows, about 250 of all these waits come after nothing that writes; - 5,350 indirect executions per frame, none of them joined. ("Joined" means two back-to-back one-record executions recorded as one ExecuteIndirect, `VICTORY_INDIRECT_MERGE=1`, which was off.) **New: the title-side wait switches have little to remove on this scene.** We ran `VICTORY_BARRIER_STATS=2` (barstat.rs in upstream main) with our ports of QUIET_WAITS (#1776), UAV_FOLD (#1852) and WAIT_SHARE (#1851) on. In that run JOIN_BARRIERS=1, INDIRECT_BATCH=3 and ALIAS_DIRECT=1 were also on. - The detail line said QUIET_WAITS would leave out **5 of 766 title waits** per frame. - The UAV_FOLD line said **3** UAV barriers came "after nothing that writes". - The WAIT_SHARE counter ("title waits left out after one with only bindings since") read **0 in every log we have**. That includes three runs with WAIT_SHARE=1 (and `VICTORY_THIN=1`). We have not found out why it never acts here. - Our reading, not measured: most of the ~250 waits after nothing that writes are the clamp-bracketing ones (the #2360 / INDIRECT_BATCH area), not the title's. - A note for anyone reading the same census: the "after nothing that writes" count on the census line counts quiet waits whether or not a switch skips them. That line alone cannot show what a switch did; the BARRIER_STATS detail line can. We have **not** measured how many milliseconds the waits cost. The only on/off pair for the three switches together was −0.38 fps and p95 +4.7 ms, from separate launches with GPU timing on. That is n=1 and inside our noise, so it is **not a result**. ### GPU and driver RTX 2070 SUPER 8 GB (Turing, wave32), driver 621.40, Resizable BAR off, GPU clock locked at 1890 MHz. ### CPU, RAM and Windows version Ryzen 7 5800X (8 cores / 16 threads), 32 GB, Windows 11 Pro 10.0.26320. ### VIctory release or commit Not a release. A diagnostics build of our branch, based on **upstream main 568c5e5d (2026-11-28)**, which is older than current main 829188e9. Our ports are on top of it, and their new behaviour is off unless the log header lists it. The QUIET_WAITS, WAIT_SHARE, UAV_FOLD and JOIN_BARRIERS code is our port of the open PRs above. The BARRIER_STATS run used our earlier round-4 tree on the same base. ### Settings Series S, 1440p output, DLSS Performance, frame generation off, no frame cap, ray tracing off, `VICTORY_SKIP_BINK=1`. Our launch set includes `VICTORY_INDIRECT_BATCH=2 VICTORY_INDIRECT_WINDOW=1 VICTORY_THIN=1 VICTORY_CARD_STEPS=2 VICTORY_JOIN_PARTS=8 VICTORY_RELAY=2 VICTORY_SLOT_EVICT=1 VICTORY_SPANS_QUICK=1 VICTORY_TEXTURE_STAGE_MS=32 VICTORY_WATER_LIGHT=0` (full list on request). Diagnostics build for the counts. ### Logs No crash occurred, so there is no crash log. The full play logs are not attached because they name the title. Excerpt from the BARRIER_STATS=2 run (title-specific lines removed, paths removed, long lines shortened with `...`): ```text # console=series-s build=diag switches (barrier-related only): VICTORY_BARRIER_STATS=2 VICTORY_QUIET_WAITS=1 VICTORY_UAV_FOLD=1 VICTORY_WAIT_SHARE=1 VICTORY_JOIN_BARRIERS=1 VICTORY_INDIRECT_BATCH=3 VICTORY_ALIAS_DIRECT=1 VICTORY_THIN=1 05:29:15 INFO streamline: DLSS Super Resolution is supported on this GPU requirements="OS 10.0.26320 (needs 10.0.0), driver 621.40.0 (needs 512.15.0)" 05:29:16 INFO host: adapter=NVIDIA GeForce RTX 2070 SUPER own_memory_mb=7989 05:36:58 INFO copystat: waits for every earlier shader write, per frame: 873 for the title's barrier groups, 0 for its barriers on buffers; 146 indirect commands bounded (a dispatch of ours between two such waits each), 42 batched clamps ended by a record written since the last; 201 of all these after nothing that writes; 0 title waits left out after one with only bindings since; barrier experiment 0 05:37:03 INFO copystat: waits for every earlier shader write, per frame: 875 for the title's barrier groups, 0 for its barriers on buffers; 149 indirect commands bounded (...); 201 of all these after nothing that writes; 0 title waits left out after one with only bindings since; barrier experiment 0 05:30:03 INFO barstat: barrier stats detail per frame (VICTORY_BARRIER_STATS=2): ... waits VICTORY_QUIET_WAITS would leave out (nothing that writes since the previous wait in the list, the list's first kept) 5 of 766 title waits (172 list-first waits); ... 05:29:44 INFO copystat: the title's own unordered access barriers, per frame: 4 on every resource, 0 on one; 0 covered by another in the same call, 3 after nothing that writes (VICTORY_UAV_FOLD on) 05:34:28 INFO host: 17.0 fps, 58.7 ms/frame (38.5 preparing: copies 19.8 ms 49.1 MB, textures 1.5 ms ...) ... ``` Lines are from one log and not in time order. This excerpt is the BARRIER_STATS=2 run with the skip switches on; the counts in the text above (~870 waits, 198 clamp-bracketed indirect commands, ~250 after nothing that writes) are from the two 18-minute windows with those switches off, so the excerpt's counts (146-149 bounded plus 42 batched, 201 after nothing that writes) differ. The UAV_FOLD line shown is the most common one in that run (76 of 93 periodic lines). The log with the bundle switches off, and the full switch list, are available on request. ### Are you working on a fix? **No.** No fix claimed, we are not working on one, and there is no `/claim`. --- ### Related - #2098 (RTX 3090 Ti, Ryzen 7 9800X3D): graphics engine active ~99 %, SM throughput 10-20 %, front end in wait-for-idle ~29 %, ~560 of ~650 go-idles at barrier calls. Same shape on a much faster card. They also report that dropping all global UAV barriers (unsafe, as a measurement) did not change fps. - #553: adjacent (WC_BAR, about half the GPU wait gone on 8 GB with ReBAR on; we run ReBAR off). - #1776, #1851, #1852, #1890 (title-side waits), #2360 and #2359 (clamp and ambient barriers). ### Spec dependence - **Likely general:** the per-frame wait count comes from the title's own barrier-group calls and from our clamp bracketing. It should not depend on the card. #2098 sees similar counts. - **May depend on our specs:** how much SM time sits idle (Turing, 8 GB, wave32, 1890 MHz lock). - **Untested elsewhere:** other GPU generations, AMD, 12-16 GB cards, Series X, frame generation, ray tracing. ### What would settle it (asks only, no fix claimed) - Anyone with Nsight on Ampere or Ada: is SM active also near half on a similar open-world scene? - A wait-for-idle or go-idle count per barrier kind (title group, clamp, copy) on any card. #2098 has one for a 3090 Ti; we do not yet have one for Turing. ### Sources - Full and global waits can be expensive: Microsoft Learn, [D3D12 enhanced barriers](https://learn.microsoft.com/windows-hardware/drivers/display/enhanced-barriers) ("Global barriers affect all cached memory so they can be expensive"); [UAV barriers in DirectML](https://learn.microsoft.com/windows/ai/directml/dml-barriers) ("A UAV barrier forces all previously-submitted dispatches to complete"). - Cost of a wait with nothing pending on Turing: not known; we found no published figure. - Same shape on a 3090 Ti: #2098. - Our own numbers (Nsight trace, play-log counts, PresentMon summaries) come from our runs; the log excerpt is in the Logs section. ### Causes (hypotheses, not measured) - The full waits may split the frame into many short dependent phases that each drain before the next one starts. That would give high GR active with low SM active. We have no per-wait timing, and #2098's unsafe "drop all global UAV barriers" test did not raise fps there, which argues against waits being the main cost. - The submitting thread leaves the card idle 6-35 ms per frame in our logs (a separate issue, linked when posted). We have not checked whether Nsight's GR active counts that idle time as active, so the SM figure may mix the two. ### Not tested Per-wait GPU cost; #2360 on this card with fps scored; frame generation on; ray tracing; other cards. Drafted with AI assistance (Claude Code); measurements are ours.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 15:25:08 +00:00
Author
Owner

@⁠github-actions[bot] on GitHub · 2026-11-29 15:22 UTC · original

Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

**@⁠github-actions[bot]** on GitHub · 2026-11-29 15:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2640#issuecomment-7258044531) Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
Author
Owner

@⁠gioeleBrancaleoni on GitHub · 2026-11-29 18:58 UTC · original

Same shape here, with numbers for your two asks and one thing that may explain the "GR active high, SM low" part.

Ampere (RTX 3090 Ti, Ryzen 7 9800X3D, Series S profile, opening of a new game, spinner off): Nsight GPU Trace: graphics engine active ~99 %, SM throughput 15.6 % (10-20 % across traces), front end stalled in wait-for-idle ~29 %, ~650 go-idles a frame of which ~560 fall at a barrier call. So yes: SM well under half on Ampere too, and lower than your Turing figure.

What the frame actually waits for (measured since #2098's first post, details in the comment there):

  • A stack profile shows the title's main thread ~69 % of its samples in a monitorx/mwaitx loop on the value at a fence's GPU address (fence vtable slot 0x60, our fence::gpu_address). The title's job threads are 80-95 % idle. The title is waiting for our fence signals, not working.
  • From the title's queue Signal to our fence set: 27-35 ms mean (peaks 50-140), ~450 a second on the busiest fence. 19-25 ms of it is the signal queued behind the submitting thread's serial preparation of the submissions ahead of it; ~8 ms is the card plus the copy-back.
  • Adding 500 µs of spin per submission on the submitting thread took Series S from 38-40 fps to 32. Taking ~5 ms a frame off it (preparing submission N+1 while N is sent; several per-submission cuts) did not raise fps.
  • One reason it did not: with VICTORY_SUBMIT_FRAMES=1 (the default) the title's present waits for our line to be one present deep, 20-39 ms a frame here. VICTORY_SUBMIT_FRAMES=2 brings that to 0 ms, but then the line's thread works 27-30 ms per 25.6 ms frame and fps stays the same (39.1 / 40.7 vs 39.0). We are now measuring both together.
  • Internal resolution barely matters: DLSS Performance vs Quality is 41.7 vs 38.8 fps (Series S), 34.7 vs 33.4 (Series X).

Our reading, which ties to your hypothesis 2: the frame is a CPU-GPU loop (the title waits for GPU work N through our fence, records N+1, we prepare it, the card runs it, the copy-back lands, the fence is set). Each leg idles part of the frame, which gives a card that is "active" for long stretches while its SMs wait. In the trace the GPU work of a frame took 16-16.7 ms against a ~25 ms present interval. We have not checked either whether GR active counts the time the card waits for the next submission.

Barrier waits: same conclusion as you so far. Dropping all global UAV barriers (unsafe, measuring only) took go-idles from 850 to 770 with no fps change. We have no per-wait GPU cost on Ampere either.

(If useful: VICTORY_PROFILE=<from>,<to>,<ms>,<file> in a diagnostics build plus dbghelp on the diag PDB is how we found the mwaitx loop; the diag timeline counts that memory polling as the title's own work, so it hides this.)

**@⁠gioeleBrancaleoni** on GitHub · 2026-11-29 18:58 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/2640#issuecomment-7260903875) Same shape here, with numbers for your two asks and one thing that may explain the "GR active high, SM low" part. **Ampere (RTX 3090 Ti, Ryzen 7 9800X3D, Series S profile, opening of a new game, spinner off):** Nsight GPU Trace: graphics engine active ~99 %, SM throughput 15.6 % (10-20 % across traces), front end stalled in wait-for-idle ~29 %, ~650 go-idles a frame of which ~560 fall at a barrier call. So yes: SM well under half on Ampere too, and lower than your Turing figure. **What the frame actually waits for (measured since #2098's first post, details in [the comment there](https://git.gtahub.st/github/trustno1-coder--VIctory-NVIDIA/issues/2098)):** - A stack profile shows the title's main thread ~69 % of its samples in a `monitorx`/`mwaitx` loop on the value at a fence's GPU address (fence vtable slot `0x60`, our `fence::gpu_address`). The title's job threads are 80-95 % idle. The title is waiting for our fence signals, not working. - From the title's queue `Signal` to our fence `set`: 27-35 ms mean (peaks 50-140), ~450 a second on the busiest fence. 19-25 ms of it is the signal queued behind the submitting thread's serial preparation of the submissions ahead of it; ~8 ms is the card plus the copy-back. - Adding 500 µs of spin per submission on the submitting thread took Series S from 38-40 fps to 32. Taking ~5 ms a frame off it (preparing submission N+1 while N is sent; several per-submission cuts) did not raise fps. - One reason it did not: with `VICTORY_SUBMIT_FRAMES=1` (the default) the title's present waits for our line to be one present deep, 20-39 ms a frame here. `VICTORY_SUBMIT_FRAMES=2` brings that to 0 ms, but then the line's thread works 27-30 ms per 25.6 ms frame and fps stays the same (39.1 / 40.7 vs 39.0). We are now measuring both together. - Internal resolution barely matters: DLSS Performance vs Quality is 41.7 vs 38.8 fps (Series S), 34.7 vs 33.4 (Series X). **Our reading, which ties to your hypothesis 2:** the frame is a CPU-GPU loop (the title waits for GPU work N through our fence, records N+1, we prepare it, the card runs it, the copy-back lands, the fence is set). Each leg idles part of the frame, which gives a card that is "active" for long stretches while its SMs wait. In the trace the GPU work of a frame took 16-16.7 ms against a ~25 ms present interval. We have not checked either whether GR active counts the time the card waits for the next submission. **Barrier waits:** same conclusion as you so far. Dropping all global UAV barriers (unsafe, measuring only) took go-idles from 850 to 770 with no fps change. We have no per-wait GPU cost on Ampere either. (If useful: `VICTORY_PROFILE=<from>,<to>,<ms>,<file>` in a diagnostics build plus dbghelp on the diag PDB is how we found the `mwaitx` loop; the diag timeline counts that memory polling as the title's own work, so it hides this.)
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/trustno1-coder--VIctory-NVIDIA#2640
No description provided.