Results on an RX 6800: settings, GPU cost, dropped calls, builder on #264

Open
opened 2026-11-26 03:39:29 +00:00 by github-bot · 1 comment
Owner

@⁠TG0000 on GitHub · 2026-11-24 23:03 UTC · original

Results on an RX 6800 16 GB, Ryzen 5900X, 32 GB, Windows 11, in the opening scenes, on 7b0f736 plus the branches named below. One launch per line unless said; the cutscene timing differs between launches, so small differences mean nothing.

Settings for all lines: VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c

what median frame notes
defaults, only the skip (cache still filling) 1187 ms
settings, without / with VICTORY_TEXTURE_NO_WAIT=1 587, 745 / 470, 505 ms two alternating pairs
texture time budget 20 ms instead of 250 (four launches, ABBA) 268, 277 against 507, 484 ms not free: 4,200-5,200 textures uploaded against 32,500-35,500, black faces
hash passes with a group per piece (#253) GPU wait 90 -> 32 ms frame time not shown: CPU-bound
PastiiJay's half-wave fix and NaN guard, on / off 492 / 455, 508, 521 ms on: skin no longer looks wet and the purple sky is gone, but eyes and parts of faces are black
everything combined, builder off 426 ms GPU wait 38 ms, 3,142 calls run, 397 dropped, 17 GB
everything combined, VICTORY_BVH_BUILDER=1 with its stores kept out of title memory 669 ms 30 dropped, no crash in 150 s, 20 GB, sky and city visible; without that quarantine the title crashed before the world

What drops calls (warm cache): 92-95 % of them are the ray-tracing structure builder, off by its switch. Untranslated programs are about 34 of 3,900 calls a frame.

Shader census of the combined branch: 25,610 of 25,889 accepted by dxil.dll (25,349 before), 0 lost. That is not proof of a correct picture. The clean-up passes of 1684989 remove 42.7 % of the host instructions over 25,668 programs, and constant-branch folding takes 39f0e9aeb156a61c from 78,850 to 11,067 instructions. We saw no AMD compiler crash with them in two launches.

Known faults: black shadow areas, missing bodies and faces, purple spots on the ground, empty eyes; one device hang (0x887A0006) in six launches with pooled staging buffers (not shown to be the cause, none since in the following launches of a changed version); a title breakpoint (0x80000003) near 300 s on an older build of ours.

Branch with all of it: https://github.com/TG0000/victory-fork/tree/rx6800-combined (commits of others keep their authors). The head as a whole has passed its tests (gpu 118, shader 221) but has not been launched in a game; without its last two merges (shaders, main 2119b0e) it has, twice.

Useful from others: the same table on another card; whether VICTORY_BVH_BUILDER=1 starts for you; any idea why shadow areas stay black.

AI-assisted.

**@⁠TG0000** on GitHub · 2026-11-24 23:03 UTC · [original](https://github.com/fxceless/victory-fork/issues/264) Results on an RX 6800 16 GB, Ryzen 5900X, 32 GB, Windows 11, in the opening scenes, on 7b0f736 plus the branches named below. One launch per line unless said; the cutscene timing differs between launches, so small differences mean nothing. **Settings** for all lines: `VICTORY_LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024 VICTORY_TEXTURE_NO_WAIT=1 VICTORY_SKIP_PIPELINES=39f0e9aeb156a61c` | what | median frame | notes | |---|---|---| | defaults, only the skip (cache still filling) | 1187 ms | | | settings, without / with `VICTORY_TEXTURE_NO_WAIT=1` | 587, 745 / 470, 505 ms | two alternating pairs | | texture time budget 20 ms instead of 250 (four launches, ABBA) | 268, 277 against 507, 484 ms | not free: 4,200-5,200 textures uploaded against 32,500-35,500, black faces | | hash passes with a group per piece (#253) | GPU wait 90 -> 32 ms | frame time not shown: CPU-bound | | PastiiJay's half-wave fix and NaN guard, on / off | 492 / 455, 508, 521 ms | on: skin no longer looks wet and the purple sky is gone, but eyes and parts of faces are black | | everything combined, builder off | 426 ms | GPU wait 38 ms, 3,142 calls run, 397 dropped, 17 GB | | everything combined, `VICTORY_BVH_BUILDER=1` with its stores kept out of title memory | 669 ms | 30 dropped, no crash in 150 s, 20 GB, sky and city visible; without that quarantine the title crashed before the world | **What drops calls** (warm cache): 92-95 % of them are the ray-tracing structure builder, off by its switch. Untranslated programs are about 34 of 3,900 calls a frame. **Shader census** of the combined branch: 25,610 of 25,889 accepted by dxil.dll (25,349 before), 0 lost. That is not proof of a correct picture. The clean-up passes of 1684989 remove 42.7 % of the host instructions over 25,668 programs, and constant-branch folding takes 39f0e9aeb156a61c from 78,850 to 11,067 instructions. We saw no AMD compiler crash with them in two launches. **Known faults**: black shadow areas, missing bodies and faces, purple spots on the ground, empty eyes; one device hang (0x887A0006) in six launches with pooled staging buffers (not shown to be the cause, none since in the following launches of a changed version); a title breakpoint (0x80000003) near 300 s on an older build of ours. Branch with all of it: https://github.com/TG0000/victory-fork/tree/rx6800-combined (commits of others keep their authors). The head as a whole has passed its tests (gpu 118, shader 221) but has not been launched in a game; without its last two merges (shaders, main 2119b0e) it has, twice. Useful from others: the same table on another card; whether `VICTORY_BVH_BUILDER=1` starts for you; any idea why shadow areas stay black. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:39:29 +00:00
Author
Owner

@⁠TG0000 on GitHub · 2026-11-25 12:28 UTC · original

Update on the same RX 6800 (16 GB, Ryzen 5900X, 32 GB, Windows 11), with a local build: f85101b plus our older branch, PainDe0Mie's constant views read in place, two small Yeetbot159 changes, placed textures (#903) and the hash passes of #253. Launches of 420 s, warm cache, each alone, 0 display events.

settings median frame fps, by frames GPU wait / copy-back draws run / dropped peak RAM
control (the build before, on 9376fd6) 290 ms 3.47 56 / 84 ms 2,413 / 303 17.3 GB
new, with VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1 238 ms 4.47 35 / 39 ms 2,428 / 260 18.4 GB
the same with a 25 ms texture budget, launch 1 199 ms 4.62 39 / 39 ms 2,626 / 245 19.1 GB
the same with a 25 ms texture budget, launch 2 195 ms 4.85 32 / 36 ms 2,229 / 236 17.8 GB

All of them with VICTORY_PLACED_TEX=1 VICTORY_TEXTURE_CATCHUP=0 VICTORY_HEAP_SYNC=0; the new ones also with our opt-in for fills (below). Not a full ABBA, scenes not frame-matched, and only one launch of the second line. Two older launches of the control build gave 318 and 296 ms. The 25 ms budget (VICTORY_HEAP_TEXTURES_MS=25, #254) is not free: textures come visibly later and there are more stalls (29-30 one-second windows over 600 ms against 17).

Pairs in one launch (ABBA, 240 s unless said): no single switch's frame gain is shown alone. The table above is for the set.

  • VICTORY_QUEUE2 on top of ASYNC_SUBMIT: copy-back -52 ± 14 ms, GPU wait -35 ± 11 ms, frame 0 ± 96 (not shown). No device loss in the launches of this pair or of the table.
  • VICTORY_ASYNC_SUBMIT: copy-back -17 ± 12 ms, frame -39 ± 72 (not shown).
  • Texture budget 250 or 25 ms: heap pass -58 ± 39 ms, frame -98 ± 132 (not shown).
  • HEAP_SYNC on or off, on the build before: heap pass -91 ± 56 ms with it off, frame not shown. Separate 150 s launches: 598 ms with it on, 297 and 325 ms off.

Device lost once (0x887A0007), in a launch that flipped seven switches together every 4 s, an asynchronous present of ours among them (not the one in a253706). The cause is not isolated. None in the launches of the table.

Fills that do not wait turn themselves off here in the first world second: one 2 KiB title buffer copy reads what shaders write. Letting only its 64 KiB wait took fill waits from 2.3 to 0.0 a frame; that copy's first frame used old bytes. #860 already limits the wait to the pieces touched and also removes false trips, which our check could not tell apart, so we open nothing for it.

Where a frame goes (profiler, about 220 ms; the lines are on different threads and do not add up): 105 ms the texture/heap pass inline on one recording thread, 56-66 ms unmapping and mapping pages on the render thread, 47-51 ms waiting for the relay, 31 ms ReadProcessMemory, 25-34 ms write watch and guards.

Picture: walls, hair and clothes are drawn now; still wrong are magenta foliage, black characters in the sun and a white flash. Compared by eye only.

a253706 and its draw windows are not tested here yet. Pull requests: #253 and #254 rebased on it, #903 new.

AI-assisted (Claude Code).

**@⁠TG0000** on GitHub · 2026-11-25 12:28 UTC · [original](https://github.com/fxceless/victory-fork/issues/264#issuecomment-7162423781) Update on the same RX 6800 (16 GB, Ryzen 5900X, 32 GB, Windows 11), with a local build: f85101b plus our older branch, PainDe0Mie's constant views read in place, two small Yeetbot159 changes, placed textures (#903) and the hash passes of #253. Launches of 420 s, warm cache, each alone, 0 display events. | settings | median frame | fps, by frames | GPU wait / copy-back | draws run / dropped | peak RAM | |---|---|---|---|---|---| | control (the build before, on 9376fd6) | 290 ms | 3.47 | 56 / 84 ms | 2,413 / 303 | 17.3 GB | | new, with `VICTORY_ASYNC_SUBMIT=1 VICTORY_QUEUE2=1` | 238 ms | 4.47 | 35 / 39 ms | 2,428 / 260 | 18.4 GB | | the same with a 25 ms texture budget, launch 1 | 199 ms | 4.62 | 39 / 39 ms | 2,626 / 245 | 19.1 GB | | the same with a 25 ms texture budget, launch 2 | 195 ms | 4.85 | 32 / 36 ms | 2,229 / 236 | 17.8 GB | All of them with `VICTORY_PLACED_TEX=1 VICTORY_TEXTURE_CATCHUP=0 VICTORY_HEAP_SYNC=0`; the new ones also with our opt-in for fills (below). Not a full ABBA, scenes not frame-matched, and only one launch of the second line. Two older launches of the control build gave 318 and 296 ms. The 25 ms budget (`VICTORY_HEAP_TEXTURES_MS=25`, #254) is not free: textures come visibly later and there are more stalls (29-30 one-second windows over 600 ms against 17). **Pairs in one launch (ABBA, 240 s unless said): no single switch's frame gain is shown alone.** The table above is for the set. - `VICTORY_QUEUE2` on top of `ASYNC_SUBMIT`: copy-back -52 ± 14 ms, GPU wait -35 ± 11 ms, frame 0 ± 96 (not shown). No device loss in the launches of this pair or of the table. - `VICTORY_ASYNC_SUBMIT`: copy-back -17 ± 12 ms, frame -39 ± 72 (not shown). - Texture budget 250 or 25 ms: heap pass -58 ± 39 ms, frame -98 ± 132 (not shown). - `HEAP_SYNC` on or off, on the build before: heap pass -91 ± 56 ms with it off, frame not shown. Separate 150 s launches: 598 ms with it on, 297 and 325 ms off. **Device lost once** (0x887A0007), in a launch that flipped seven switches together every 4 s, an asynchronous present of ours among them (not the one in a253706). The cause is not isolated. None in the launches of the table. **Fills that do not wait** turn themselves off here in the first world second: one 2 KiB title buffer copy reads what shaders write. Letting only its 64 KiB wait took fill waits from 2.3 to 0.0 a frame; that copy's first frame used old bytes. #860 already limits the wait to the pieces touched and also removes false trips, which our check could not tell apart, so we open nothing for it. **Where a frame goes** (profiler, about 220 ms; the lines are on different threads and do not add up): 105 ms the texture/heap pass inline on one recording thread, 56-66 ms unmapping and mapping pages on the render thread, 47-51 ms waiting for the relay, 31 ms `ReadProcessMemory`, 25-34 ms write watch and guards. **Picture**: walls, hair and clothes are drawn now; still wrong are magenta foliage, black characters in the sun and a white flash. Compared by eye only. a253706 and its draw windows are not tested here yet. Pull requests: #253 and #254 rebased on it, #903 new. AI-assisted (Claude Code).
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/fxceless--victory-fork#264
No description provided.