SHADER COMPILE: Is it Truly doing ALL Shaders? 10x faster than it used to be #3451
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#3451
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?
@ajmi982 on GitHub · 2026-11-29 23:28 UTC · original
I would LOVE for shader pre-compile to only take 1-2 min BUT it seems since Shader Building went from 10-15 min to 1-2 min the game runs horribly with 1fps frequently.
Are we truly getting ALL Shaders now? Using the very latest build FWIW.
@github-actions[bot] on GitHub · 2026-11-29 23:28 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.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@PatrykKu on GitHub · 2026-11-29 23:32 UTC · original
It's not, I have the same issue and had it for the last 3 versions.
@helloimStar on GitHub · 2026-11-29 23:32 UTC · original
ran into the same issue, i think i fixed it by running the precomp manually with
.\victory.exe preload --jobs 4 --all . 2>&1 | Tee-Object -FilePath "$env:USERPROFILE\Desktop\victory-preload.log"
havent finished the precomp yet to check for sure everything is correct but the numbers of shaders look correct now, ill update when done
win11 5070ti release v2026.11.29.05
@aaron16122001-cmyk on GitHub · 2026-11-29 23:36 UTC · original
It not. even if you restart for preloading shaders
@ajmi982 on GitHub · 2026-11-29 23:44 UTC · original
it now warms all 88,563 pipelines according to the latest RELEASE - i have never seen it do this.
I just MANUALLY FORCED PRECOMPILE and even that seemed to fail :(
@ajmi982 on GitHub · 2026-11-29 23:46 UTC · original
@hrk1337 on GitHub · 2026-11-29 23:49 UTC · original
@ajmi982

it appears like this for me
@gitburner112926 on GitHub · 2026-11-29 23:49 UTC · original
I've tried clearing and pre-loading the cache several times. Mine keeps saying "60691 pipelines known" so it's not getting that right.
On 28.03 it "knows" the correct number.
@DabinkiPrime on GitHub · 2026-11-29 23:51 UTC · original
The amount pipelines are going to be different depending on Ray tracing on/off, and your console profile settings.
However still, it's definitely forgoing many shaders for some reason. Mine gets to about 25,000 and then boots, when it should definitely be more than that
@hrk1337 on GitHub · 2026-11-29 23:52 UTC · original
after precomp i see this
@ajmi982 on GitHub · 2026-11-29 23:52 UTC · original
seems to be doing what it did on the 11.28.3 build that ran rather well. had to do this manually. so i can CONFIRM that preloading never worked on a single 11.29.x build released today.
What i do NOT know is:
we will see in 20 min or so since this is finally correctly getting all shader.s
@ajmi982 on GitHub · 2026-11-29 23:53 UTC · original
oh fuck :( NOT good.
@hrk1337 on GitHub · 2026-11-29 23:54 UTC · original
@ajmi982 For some reason, I’m getting 4500 instead of 93000
@ajmi982 on GitHub · 2026-11-29 23:57 UTC · original
RUN THIS (but replace with ur correct directory where the game is)
victory.exe preload "J:\GTA6\GTA6.Xbox.v1.0.2.1\game_scarlett_master.exe" --jobs 4 --all
THIS is what has my compile taking 20 damn min lol, im only at 15000 out of 81000
@DabinkiPrime on GitHub · 2026-11-29 23:58 UTC · original
hey guys, while testing and being in this thread I completely missed that trustno1 dropped a new version. go grab the new release and see how it goes for you, mine is currently pre loading all of the shaders properly. will come back in to update on how its running but ima go rip a bowl while it does its thing lol
@hrk1337 on GitHub · 2026-11-29 23:59 UTC · original
Thank you
@gitburner112926 on GitHub · 2026-11-30 00:06 UTC · original
Any way to run precomp manually? No matter what the app says it's doing, the end result is the same.
@ajmi982 on GitHub · 2026-11-30 00:08 UTC · original
PLEASE read this entire thread. we discuss EXACTLY how to run it manually.
Just open a Command Prompt and then follow what is above (sadly it does NOT work in PowerShell)
@hrk1337 on GitHub · 2026-11-30 00:21 UTC · original
I noticed a discrepancy in the total shader count during compilation/preloading depending on the selected console profile
On my setup, I'm getting the following counts:
series-sprofile: 60,668 shadersseries-xprofile: 83,546 shadersIs this difference between
series-sandseries-xexpected due to , and why might the total shader count differ across different users running the same build?@artik on GitHub · 2026-11-30 00:28 UTC · original
Please precise for other readers that it's using
CMD, notPower Shell. And thanks for the tip.@DabinkiPrime on GitHub · 2026-11-30 00:34 UTC · original
yes i mentioned this above, also ray tracing on or off will affect the number of shaders as well.
as an update for everyone, my shaders no longer compile during gameplay and seem to have fully preloaded. I did not have to do the manual command, only cleared shader cache and preloaded them both with the F1 menu. However RT still broken in Jason's first house + crashing when i exit which are potentially separate issues
@gitburner112926 on GitHub · 2026-11-30 00:36 UTC · original
Oh that's telling. Even though I have the Series X console profile on, when it precompiles, its count is closer to the Series S config (mine is 60,671).
When I precompiled on 28.03 with the Seriex X console profile, it was in the correct 83K range.
Wires are getting crossed in my install. And no, it's not RT on/off.
@gitburner112926 on GitHub · 2026-11-30 00:40 UTC · original
I did. I'm confused as how to run this in command prompt as opposed to PowerShell when, despite what you say, the command doesn't execute in CMD but does in PowerShell. Runs just like it does from the F1 menu, just w/o the program being open.
But apparently that's wrong. Please try to not be a smug jerk for just one second and explain where/how in command prompt (not Terminal/PowerShell) to run these commands. I bow to your unlimited wisdom and patience..
@hrk1337 on GitHub · 2026-11-30 00:43 UTC · original
Even after preloading all 83k shaders via F1 > Preload shaders, the overlay (F2 menu) still shows that shaders are compiling.
which drops my FPS from 22 down to 4
@helloimStar on GitHub · 2026-11-30 00:45 UTC · original
manually precompiling all 88k shades didnt seem to actually improve performance at all, still <2 fps for me as well
@DabinkiPrime on GitHub · 2026-11-30 00:48 UTC · original
I was just mentioning that as possibly making small changes to the shader amount, that's all.
Also I hope everyone here is making sure to clear shader cache + preload them after making basically any settings changes or downloading a new build. Fresh cache is the best way to get accurate numbers in the console, and also fix some rendering issues too usually
@AzureLumina on GitHub · 2026-11-30 00:49 UTC · original
Ran the command above (victory.exe preload "J:\GTA6\GTA6.Xbox.v1.0.2.1\game_scarlett_master.exe" --jobs 4 --all) which took like 30 minutes to process and complete but still have the same 2FPS on launch... Something is totally broken with shader compilation right now.
Already cleared cache and rebuilt, hell I even deleted all of the Victory folders and files from Appdata and rebuilt once more, still broken.
@DabinkiPrime on GitHub · 2026-11-30 00:52 UTC · original
Yes it's absolutely broken. But check your F3 top bar, if it's actually rendering shaders in game still when FPS drops(you didn't mention)
the issue could be something other than shader preload problems
@ajmi982 on GitHub · 2026-11-30 00:54 UTC · original
yeah the obliterated the progress that was made from 11.28.3 into every single build from today the moment 400+ commits hit the release :(
I (and im sure hundreds of others) have now spent the entire day beta-testing a very broken 5 builds and my theory is "NEVER Commit 400+ commits from 10+ different ppl" and expect shit to "just work"
@artik on GitHub · 2026-11-30 00:56 UTC · original
Same here. All 83k shaders pre-compiled, and still stuttering like crazy compiling shaders during gameplay.
@gitburner112926 on GitHub · 2026-11-30 00:57 UTC · original
Yeah no worries, I just wanted to make it absolutely clear that I was aware and had checked lol.
I went ahead and reported it as a separate issue.
@hrk1337 on GitHub · 2026-11-30 01:00 UTC · original
I decided to test
victory.exe warm --jobs 8via cmd and now it88549 pipelines known.@hrk1337 on GitHub · 2026-11-30 01:28 UTC · original
It didn’t get any better
@ajmi982 on GitHub · 2026-11-30 01:34 UTC · original
they DESTROYED this project in 24 hours. :(
@davemathews12 on GitHub · 2026-11-30 05:55 UTC · original
I think I found why a full preload can still leave shaders compiling in-game. It depends on how you preload. Analysis from reading the code on
main(41adb551); I haven't run it on Windows.Cause. The shader cache key includes the value of every
VICTORY_*switch named in the translator's sources (translation_fingerprint()incrates/victory-shader/src/emit/mod.rs). If a switch differs between the preload and the game, the preloaded translations never match.victory.exe/victory play: before anything else it clears leftoverVICTORY_*variables and sets its own switches (SETTINGSinapps/victory/src/play.rs). Among others it setsVICTORY_BVH_MISS=1,VICTORY_NAN_SCRUB=1,VICTORY_EARLY_DEPTH=1andVICTORY_SAMPLED_MARKS=1, all of which are in the key. Its own preload (the first start of a new version, and F1 → PRELOAD SHADERS, which restarts throughplay) uses those switches, so the cache matches the game.scripts\play-foxhound.ps1) also preloads "with this start's switches", so it's fine too.victory.exe preload …orvictory.exe warm …by hand from CMD or PowerShell doesn't set those switches. Every shader is then keyed with them unset, while the game runs with them set to1. The game never uses that cache, and everything compiles again during play. That matches the reports here: manual precompiles still stutter at 2–4 fps, while F1 → Preload stopped in-game compiling for DabinkiPrime.Also: turning ray tracing on or off in F1 changes
VICTORY_BVH_BUILDER, which is in the key too. So after switching RT, the next preload is a new one. That's one reason counts differ between people.Workaround for now:
victory.exe preload/warm.Possible fix: make the standalone
preload/warmcommands apply the same switches asvictory play(theSETTINGStable plus the F1victory-settings.txt). At the least, they could warn when a translator switch differs from whatplaywould set. I can open a PR if a maintainer agrees on which behaviour is wanted. It changes what a launcher-run preload sees, so it needs a decision.@davemathews12 on GitHub · 2026-11-30 06:04 UTC · original
Follow-up: #1971 makes hand-typed preload/warm use the same switches as victory play, which fixes the case above. Until it's merged, use F1 → PRELOAD SHADERS.
victory preloadrun on its own translates withoutvictory play's defaults, so the next start translates the shaders again #3884@artik on GitHub · 2026-11-30 10:22 UTC · original · edited 2026-11-30 11:39 UTC
@davemathews12 Curious, I also tried
F1 > Preload shaders, and the compilation stutters were occuring the same during gameplay. I'll try your fix when it's merged, and let you know with alogfile if the issue persists.@davemathews12 on GitHub · 2026-11-30 15:45 UTC · original
@artik thanks, that's useful: it means the key mismatch isn't the whole story. F1 → PRELOAD SHADERS goes through
victory play, so its translations should match the game's keys. Stutters after that point to something else: pipelines the warm-up list doesn't know yet, or driver-side PSO builds. A play log from such a run would show it, so please attach it when you can. Thanks!@artik on GitHub · 2026-12-01 10:29 UTC · original
Here is a pretty good news. It doesn't stutter anymore. Here is what I did:
pipelineandshadersfolders in..user/local/victoy/cachevictory.exeand downloaded the latest version v2026.11.30.03The result:
F1 > precompile all shaders. (1st log).\victory.exe preload --jobs 16 --all . 2>&1 | Tee-Object -FilePath "$env:USERPROFILE\Desktop\victory-preload.log"(3nd log + shaders log)No more stutters.
victory-nvidia-play-20261130-214015-5044.log
victory-nvidia-play-20261130-214336-4052.log
victory-nvidia-play-20261130-220340-3344.log
victory-preload.log