Banding over the whole picture from a cached host pipeline library (RTX 4080 SUPER, fab5286) #44
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/TaynanGT--Vice-Tay#44
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?
@Hailey-Ross on GitHub · 2026-11-26 18:02 UTC · original
On an RTX 4080 SUPER, banding appeared over the whole picture (every scene, not one area) from the third run on, with the same build and settings as two clean runs before it. Setting the host pipeline library aside removed it, so a pipeline saved in the library looks like the cause.
Setup
mainatfab5286, diag build,scripts\play.ps1 -Exe <exe> -Console series-s -Windowed(machine settingsauto)victory.exe shadersbefore run 1 (theshadersfolder was not written again after that)What happened
host-pipelines.bin,early-pipelines.txtandslow-pipelines.txtrenamed aside, empty libraryThe build, the settings, HDR (off, SDR presentation) and the display mode were identical in all five runs. Speed was not affected: run 4 had a median of about 69 ms a frame. None of the runs refused a pipeline or lost the device.
A possible cause
fxceless/victory-fork
a35c557("A draw into a render target of another format than its pipeline declares gets a host pipeline for the bound format",VICTORY_TARGET_VARIANTS) is not in this tree. If a pipeline made for one render-target format is reused for a draw into a target of another format, and the saved one has the lower-precision format, colours would quantize like this; once it is in the library, every later run reuses it. That is a guess from reading the code, not something I verified.Available
I kept the library that bands (
host-pipelines.bin, 172 MB, plus the two pipeline lists) and the run logs (2>redirects of runs 2 to 5). Happy to send them or test a branch.@Hailey-Ross on GitHub · 2026-11-26 18:31 UTC · original
Correction after more runs: the banding depends on the launch, not on the cached pipeline library. Setting the library aside only looked like a fix because the next launch happened to be clean.
On
8ada8fd(diag build,-Console series-s -Windowed, shaders translated fresh withvictory.exe shaders):So the same library gives a clean picture on one launch and banding on the next, and an empty library can band too. When it bands, it bands everywhere for the whole session; relaunching is the workaround here.
That fits a choice made once per launch more than anything stored on disk. My guess is still the render-target format: without fxceless/victory-fork
a35c557(VICTORY_TARGET_VARIANTS), which format a pipeline ends up made for could depend on which draw asks for it first, and that order can change between launches. Speed is unaffected either way (run 2 on8ada8fd: median 88 ms a frame at ~7,600 draws, 0 refused pipelines).@TaynanGT on GitHub · 2026-11-26 19:18 UTC · original
Thanks for repeating the launches with the exact same library. An empty library also banded, and the same saved library gave both outcomes. The pipeline key already includes the declared render-target formats. The next check is whether the typed view bound during a draw has a different format in the banded run. A matched screenshot and corresponding render-target/pipeline log excerpt from one clean launch and one banded launch would help establish that. #43 offers a separate way to isolate scheduling history while retaining the binary library.
@TaynanGT on GitHub · 2026-11-26 19:26 UTC · original · edited 2026-11-26 20:01 UTC
#43 and #52 are on
main. A separate Series S test on an RTX 5070 Ti saw a change in the sky and water with scheduling history disabled and the same driver library loaded. You can try-More @{VICTORY_PIPELINE_HISTORY='0'}on the same scene and cache. This keeps the two history files in place.For the whole-frame banding, a clean and a banded launch at the same checkpoint would let us check the format hypothesis. Use a diagnostic build and add
-More @{VICTORY_RTV_FORMAT_LOG='1'; VICTORY_LOG_FILE='banding-clean.log'}. Choose a different log file for the banded run. TheRTV format checksummary and a fewRTV format mismatchlines withnull_view=falseare enough. That will tell us whether the bound color format actually differs in the bad picture before we change how pipelines are selected.@Hailey-Ross on GitHub · 2026-11-26 21:11 UTC · original
Update on
a857333(diag build,-Console series-s -Windowed,-More @{VICTORY_RTV_FORMAT_LOG='1'}): three launches in a row, all clean. No banding reproduced, so I don't have a clean/banded pair yet and haven't runVICTORY_PIPELINE_HISTORY=0. I'll keep the format log on for every launch and do both comparisons the next time it bands.Format check totals at the end of each launch:
The mismatch examples in runs 1 and 2 are the same pipeline both times:
So a pipeline declared for
R10G10B10A2_UNORMis drawn into anR11G11B10_FLOATview. It shows up on clean launches, so it is probably not the whole-frame banding, but it's consistent across launches if it's useful.@TaynanGT on GitHub · 2026-11-26 21:25 UTC · original
The clean launches give us a concrete format mismatch to follow. The same
R10G10B10A2_UNORMtoR11G11B10_FLOATpair appears in the upstream debug-layer report for a fullscreen effect. I’ll track that draw separately. If the whole-frame banding comes back, the clean/banded pair from the same checkpoint and cache will help test the launch-to-launch cause.@Hailey-Ross on GitHub · 2026-11-26 21:37 UTC · original
Got a banded launch on
cc4a5dband ran the history test right after it. Same diag build, same cache and driver library,-Console series-s -Windowed,VICTORY_RTV_FORMAT_LOG=1on every launch:VICTORY_PIPELINE_HISTORY000So 3 clean launches in a row with the scheduling history off, after a banded one with it on. On the earlier builds, about half the launches banded with the history on (2 of 4 on
8ada8fd). That isn't proof yet, but it points at the scheduling history rather than the render-target format: the banded launch had no format mismatches at all.The banded run 1 was short (about a minute, it banded as soon as the world appeared), so it's the only banded sample on this build. Its log and the clean ones are available if you want them.
@TaynanGT on GitHub · 2026-11-26 21:43 UTC · original
The banded launch with zero RTV mismatches gives us a useful comparison. Three clean launches with history disabled make startup scheduling the next lead. Could you paste the
title pipelines to start earlyandhost pipeline library loadedlines from the banded launch and one clean launch? For a repeat, use fresh trial copies of one starting cache so the history files written by the default mode stay out of the next trial. The separate format-pair regression landed in #70.@Hailey-Ross on GitHub · 2026-11-26 21:51 UTC · original
Here they are, from
cc4a5db(same cache folder for all three, run in this order):The library size differs between run 1 and runs 2-3 because run 1 saved a slightly larger library on exit (
host pipeline library saved bytes=217988700), which runs 2 and 3 then loaded.For a repeat I'll copy one starting cache into fresh trial folders, so each trial starts from the same history and library and none writes into the next.
@TaynanGT on GitHub · 2026-11-26 21:51 UTC · original
The logs confirm that 3,811 saved keys were eligible for an early start in the banded launch and zero in the clean launches. The banded launch also wrote a larger driver library before the clean launches. Your fresh-copy repeat should isolate the scheduling switch. Please keep the original library and both history files identical at the start of each trial. The extra RTV trace fields are now on
mainin #72 for the separate format mismatch.@Hailey-Ross on GitHub · 2026-11-26 22:24 UTC · original
Fresh-copy repeat on
a252348(diag,-Console series-s -Windowed,VICTORY_RTV_FORMAT_LOG=1). One baseline pipeline folder (host-pipelines.bin219,185,318 bytes,early-pipelines.txt125,894 bytes,slow-pipelines.txt7,143 bytes, the history files as the earlier banded launch wrote them), copied into a new cache folder for every trial, so every trial started from identical files and none of them saw another's writes. Shader translations were shared (same for every trial). One caveat: the library is not byte-identical to the one the earlier banded launch started with, because later runs rewrote it before I took the baseline.VICTORY_PIPELINE_HISTORY000So with the history on, 1 of 3 launches banded from identical starting files; with it off, 0 of 3 (and 0 of 6 counting the earlier
cc4a5dblaunches). The same 3815 pipelines were started early in the banded trial and in the two clean ones, so it isn't which pipelines are listed, more likely the order or timing in which they come up. No RTV format mismatches in any trial.The trial logs are available if you want them; the banded trial 1 and clean trial 3 are the closest pair (same files, same switch, different outcome).
@TaynanGT on GitHub · 2026-11-26 22:25 UTC · original
Thanks for repeating this from a fresh copy each time. Could you attach the full logs for trials 1 and 3 and note when the banding first becomes visible? Both launches started from the same files with the same history setting and 3,815 eligible keys. I’ll line up the pipeline startup through the first affected scene.
For anyone hitting the same issue,
-More @{VICTORY_PIPELINE_HISTORY='0'}is the workaround tested here. I’ll keep the issue open while we compare the two launches.@Hailey-Ross on GitHub · 2026-11-26 22:30 UTC · original · edited 2026-11-26 22:32 UTC
trial1-history-on.log
trial3-history-on.log
Full logs for trials 1 (banded) and 3 (clean) attached as two .log files. Same build (
a252348diag), same baseline copy, history on,VICTORY_RTV_FORMAT_LOG=1. Local paths, the title id and account ids are replaced with placeholders; hashes, timings and counts are untouched.When it's visible: in trial 1 the banding was there from the first frame of the 3D world, as soon as the loading screens ended, and stayed for the whole launch. In the log that's the first frame line over 1,000 draws,
2026-11-26T21:55:44.5Z, 69 s after the launch started (21:54:35.7Z). In trial 3 the world appeared at22:05:06.3Z, 38 s after its start (22:04:28.8Z), and stayed clean.So the first affected scene is the opening view of the world right after loading; nothing before it shows 3D.
@TaynanGT on GitHub · 2026-11-26 22:50 UTC · original
Thanks for sending the logs and marking the start of the world. The pipeline queue had drained about 1.8 to 1.9 seconds before the first sample over 1,000 draws in both runs. One mesh and pixel shader pair,
5342c03d0bd42212/803a16fca6541b3f, first bound just before that sample in the clean run and 1.72 seconds after it in the banded run. The banded run also had more pending textures at an earlier bake. I’ll trace that pass and the upload order from those markers.@TaynanGT on GitHub · 2026-11-26 23:09 UTC · original
I traced the later mesh pipeline to a skinned material. The decoration bake pipelines were ready early in both launches, with substantially more texture work pending before the banded run’s bake. Draft #85 fixes two coverage cases in that path. It records the heap and the revision the pass actually inspected, so a slot rewritten during the pass stays eligible for another bake upload. The Windows library tests passed. The same fresh-cache comparison at the first world view would check the visible effect.
@Hailey-Ross on GitHub · 2026-11-26 23:20 UTC · original
Tried draft #85 (
7eef143on top of8edc378, diag) with the same fresh-copy setup as before: the same baseline pipeline folder copied into a new cache folder per launch, history on, 3815 eligible keys each time.So #85 doesn't stop it on its own: the second launch banded from the first world view, the same as before. The difference you saw between the earlier pair shows up again here. The banded launch reached its first bake later (frame 1285 against 1086) with about 3.7x as many textures queued and 10x as many due, and only 1 drained ahead instead of 26. Its second bake came 574 ms after the first, against 102 ms in the clean one.
Both logs are attached (
trial101-history-on.logclean,trial102-history-on.logbanded), scrubbed the same way as before.trial101-history-on.log
trial102-history-on.log
@TaynanGT on GitHub · 2026-11-26 23:38 UTC · original
Thanks for testing #85 with the same starting files. Both runs had the same bake pipelines ready, and the banded run still had far more texture work due before its first bake. The global upload counter rose by 9,467 between the first and second bake in the banded run and 739 in the clean run. The banded run still had more slots due at the second bake. If you can do another fresh-copy comparison, try
-More @{VICTORY_EARLY_TEXTURES_MS='24'}against the default 12 ms with the other settings held fixed. The first world view and the first two bake lines are enough to compare the outcome.@Hailey-Ross on GitHub · 2026-11-27 00:09 UTC · original
VICTORY_EARLY_TEXTURES_MS24 against 12, three launches each, alternating. Same fresh-copy setup as before (one baseline pipeline folder copied per launch, history on, 3815 eligible keys), build18d370d(cc9ed86+ #85, diag),VICTORY_RTV_FORMAT_LOG=1andVICTORY_INDIRECT_PREPARE_LOG=1on all six.(times UTC)
12 ms banded 3 of 3, 24 ms banded 1 of 3. That leans toward 24 ms helping, but it's a small sample and the 24 ms launch that banded (203) had the fewest textures due at both bakes of any launch so far (637, then 173), less than both clean ones. So the count due at the bake doesn't separate banded from clean by itself here.
@TaynanGT on GitHub · 2026-11-27 01:29 UTC · original
@Hailey-Ross Thanks for alternating the settings and keeping the cache controlled. Banding showed up in 3/3 starts at 12 ms and 1/3 at 24 ms. Trial 203 banded with just 637 textures due at the first bake and 173 at the second, fewer than either clean 24 ms start. I’ll keep 24 ms as an experiment while we look at which textures became available to the affected pass and when. If you already have the logs for 203 and either clean 24 ms start, those are the most useful pair. There’s no need to run all six again.
@Hailey-Ross on GitHub · 2026-11-27 01:57 UTC · original
Attached: trial203-history-on-early24.log (banded) and both clean 24 ms starts, trial201-history-on-early24.log and trial205-history-on-early24.log, so you can pick the closer pair. Same build and settings as in the table above; local paths, the title id, account ids and the indirect trace's addresses are replaced with placeholders; everything else is untouched.
trial201-history-on-early24.log
trial203-history-on-early24.log
trial205-history-on-early24.log
@TaynanGT on GitHub · 2026-11-27 02:02 UTC · original
@Hailey-Ross Thanks for all three logs. Trial 205 is the closer clean comparison by first bake frame (976 vs. 958). All three load the same 219,185,318-byte pipeline library and report zero RTV format mismatches through the first world view. The second bake has a logged stand-in flush in both clean runs, promoting 27 textures in 201 and 49 in 205. I don't see a second-bake flush line in 203. That narrows the trace to which stand-ins are promoted before bake two and when they become visible to that pass. These logs give us a comparison to start from without another six-run set.
@Hailey-Ross on GitHub · 2026-11-27 02:47 UTC · original
Thanks for merging the bake fixes in #116! I tried
0ef44bc(diag) with the history on, since that's the setting that bands. Trials 301 to 305 used the same fresh-copy setup as before (the same baseline pipeline folder copied per launch, 3815 eligible keys); the first launch used the normal cache.(times UTC, no RTV format mismatches in any of them)
So it still bands on about half the launches (3 of 6), though the first one was noticeably lighter than before. The counts due at the bake overlap again: trial 303 was clean with 10,344 due at its first bake, while run 1 banded lightly with 2,781. With the history off it's still been clean every time, so that remains a good workaround here.
All six logs are attached (
run1-0ef44bc.logandtrial301-history-on.logtotrial305-history-on.log). Local paths, the title id, account ids and the indirect trace's addresses are replaced with placeholders; everything else is untouched.run1-0ef44bc.log
trial301-history-on.log
trial302-history-on.log
trial303-history-on.log
trial304-history-on.log
trial305-history-on.log
@TaynanGT on GitHub · 2026-11-27 02:57 UTC · original
@Hailey-Ross Thanks for running all six launches and sharing the logs. #116 still leaves this reproducible on
0ef44bc. I checked the second logged bake in every file. All six reachedsettled=true, including the banded runs. Trial 304 (banded) had 6 cumulative stand-in promotions from lists, between trial 303 (clean, 5) and trial 305 (clean, 11). The earlier missing flush is therefore a clue from that pair, but the flush summary no longer separates clean and banded launches.The five copied-cache trials recorded zero RTV format mismatches. The normal-cache log has no format-check lines, so the count is only available for those five.
-More @{VICTORY_PIPELINE_HISTORY='0'}is still the workaround you've verified. No need to repeat the six launches. The current counters are cumulative. To make another comparison worth your time, we'd need a trace at the bake that shows which descriptor slots were actually published and which were still pointing at stand-ins.@anes66 on GitHub · 2026-11-27 04:17 UTC · original
Additional hardware result for the history-off workaround: RTX 3060 12 GB, Ryzen 7 9800X3D, 32 GiB RAM, Windows 10 22H2 (19045), Series X, 1920x1080 output.
Both sessions used main
0ef44bc36e354ad18810fb5e25cad47f832266a8plus the Agility SDK change from #102, local commit9baf1b3092a743f748f44b2b8c2fc7fd408dc155. Diagnostic MSVC build with Rust 1.100.0, SDK 1.620.2. The executable hash was identical; the only recorded renderer-setting change wasVICTORY_PIPELINE_HISTORY=0.The history-off session lasted about eight minutes and ended through the window-close lifecycle path with exit code 0. No ERROR-level lines, unhandled exceptions, OOM or device-loss markers were found; the captured Display/nvlddmkm event list was empty. Missing face surfaces remain in the captures, so this is not a claim of fully correct rendering.
Performance was broadly similar: periodic samples with 4,000–4,999 draws had a median of 55.4 ms with default history and 55.9 ms with history off; 5,000–5,999 draws measured 60.75 versus 59.6 ms. Camera/route differences prevent an exact performance comparison.
Important limitation: these were sequential sessions on the same evolving cache, not fresh copies of identical starting files. There is only one history-off result, and RTV tracing was not enabled. This supports trying the workaround on another NVIDIA/Windows setup; it does not establish causality or show that banding cannot recur. The earlier cache snapshot has been preserved locally. No raw logs, libraries, title files, saves or screenshots are attached.
@TaynanGT on GitHub · 2026-11-27 04:21 UTC · original
Thanks for adding the RTX 3060 and Windows 10 result, @anes66. The same executable and the 2,184-to-zero change in early pipeline keys make the history-off run a useful workaround report. The draw-count buckets also show similar frame times on that pair. Since the library grew between the two sessions, the next useful control is fresh copies of the same preserved cache, with history as the only setting changed. One matched sky or water view per run is enough to start.
@anes66 on GitHub · 2026-11-27 04:49 UTC · original
@TaynanGT Completed the fresh-copy comparison you requested: A with saved history enabled, then B with it disabled.
Both runs used the same
9baf1b3092a743f748f44b2b8c2fc7fd408dc155executable (0ef44bcplus #102), RTX 3060 12 GB, Ryzen 7 9800X3D, 32 GiB RAM, Windows 10 19045, Series X and 1920x1080 output. No newer renderer patches were added.Each trial had its own cache and persistent-data directories, copied from one frozen baseline before either launch. All 2,538 initial cache/save files were SHA-256 checked before launch. The same shader/image cache, save, driver library and both history files were present in A and B. The original preserved pipeline snapshot was used; this is not a reconstruction of the initial cache from our earlier sequential comparison.
VICTORY_PIPELINE_HISTORY=1VICTORY_PIPELINE_HISTORY=0The initial
host-pipelines.binSHA-256 wasD3FE4DD76FA5950170CCC7DA3421040FAFCBD23A4D33A18F20F0B1368E9DF847in both copies. Beyond the isolated directory paths, the only recorded renderer-setting difference was the history switch. Neither trial could write into the other trial's cache or save.Both logs have no ERROR-level lines, unhandled exceptions, OOM or device-loss markers; the captured Display/nvlddmkm event lists are empty. Missing face surfaces remain clearly visible in B, independently of the improved colour gradients.
There is no consistent FPS gain in the sampled draw-count buckets: 2,000–3,999 draws measured median 57.6 ms in A versus 55.3 ms in B; 4,000–4,999 measured 65.2 versus 67.9 ms. These are periodic log samples from different manual camera movements, not an exact frame-matched benchmark.
This is one A/B pair, in that order, with similar rather than pixel-identical views. The driver-managed caches outside the project were not reset, RTV tracing was not enabled, and the screenshots alone do not establish precisely when the visual difference first appeared. The result supports the workaround on this Windows 10 / RTX 3060 / Series X setup, without proving that it cannot recur. Baseline files and both trial directories are preserved locally. No raw logs, libraries, saves, title files or images are attached.
@TaynanGT on GitHub · 2026-11-27 04:52 UTC · original
Thanks for rerunning from the same frozen cache, @anes66. The matching library hash and the drop from 2,254 early keys to zero make this a controlled comparison for the project’s cache. I’ll record that the broad bands and water-highlight patches were absent in the history-off captures on
9baf1b30. The face gaps were still present. A B-then-A repeat from the same baseline would check run order if we need another comparison.@loftymocha on GitHub · 2026-11-27 06:55 UTC · original
Another card where
VICTORY_PIPELINE_HISTORY=0removed the whole-picture banding: RTX 5070 12 GB, driver 617.42, Ryzen 7 7800X3D, 32 GB, Windows 11 26300. Diag builds,-Machine 4070settings, Series S, windowed, all on the same machine and save (the arrest cutscene, then the boat).1d082331d082331d08233(+TEXTURE_NO_WAIT=0)b088755b088755+VICTORY_DLSS=qualityb088755+VICTORY_DLSS=qualityb088755+VICTORY_DLSS=quality=0b088755(FSR 4, no DLSS)=0So it's 4 of 6 launches banded with history on and 0 of 2 with it off. That's few launches, but it matches the controlled comparison above. Launch 3 made me suspect
TEXTURE_NO_WAIT=0at first, but launch 4 banded with the default=1, so that wasn't it. In this run,=0started with an empty history, so it cost a few minutes of low fps while pipelines were made. After that, history off ran at ~15–16 fps in the boat scene, against ~17.4 with history on in an earlier launch. That's not the same stretch or the same upscaler, so I can't attribute the cost yet.I didn't have
VICTORY_RTV_FORMAT_LOG=1on for any of these, sorry. If a clean/banded pair with that log is still useful, I can do it, with history on and several relaunches until one bands.AI-assisted (Claude Code). Descriptions and numbers only, no game data or images.
@TaynanGT on GitHub · 2026-11-27 07:41 UTC · original
@loftymocha That gives us another card where the banding disappears with pipeline history off: four of six launches with history on, zero of two with it off. Current
mainincludes #158, which recreates NVIDIA pipelines that use static samplers to avoid stale sampler indices. A clean/banded pair on currentmainis the useful follow-up, using fresh copies of the same frozen cache andVICTORY_RTV_FORMAT_LOG=1. Your boat result also shows why the comparison needs the same stretch and upscaler for frame timings.@Hailey-Ross on GitHub · 2026-11-27 07:59 UTC · original
Good news from the RTX 4080 SUPER: on current main with #158, the banding is gone here with the pipeline history on.
791648b(diag), Series S, windowed, history on, the same fresh-copy setup as my earlier trials (the same frozen baseline pipeline folder copied per launch, 3815 keys started early each time), VICTORY_RTV_FORMAT_LOG=1:6 of 6 clean, against 3 of 6 banded on
0ef44bcand 1 of 3 ona252348with the same baseline and history on. The bake counts span the same range as before (trial 403 had 7,344 due and stayed clean), so it fits #158's sampler fix rather than texture timing. Thanks for tracking this down! Logs available if you want any of them.run3-93f3b5f-plain.log
run1-93f3b5f-dlss-fg.log
run2-93f3b5f-dlss-only.log
@TaynanGT on GitHub · 2026-11-27 08:01 UTC · original
@Hailey-Ross Thanks for running six launches from copies of the same cache. All six stayed clean with history on and 3,815 early keys. The run with 7,344 textures due also stayed clean, and all six logged zero RTV mismatches. That confirms the whole-picture banding fix on your RTX 4080 SUPER with pipeline history enabled.