Shaders loading repeatedly with big lag spikes #3122
Open
opened 2026-12-02 12:18:13 +00:00 by sernartar
·
4 comments
No Branch/Tag specified
main
claude/loop-total
claude/pops-collision-seed
claude/dstorage-hold-page-reads
claude/host-image-copy-switch
feat/gdk-lifecycle-window-hook
claude/d16s8-uav-nvidia-fallback
feat/mfplat-offline-shim
claude/gameinput-slow-reader
fix/rt-null-barrier-clear
claude/depth-resolve-sample-positions
integration/palmetto-parity
claude/valu-literal-sext
claude/slot74-pool-handle
claude/rgb9e5-uint-alias-view
claude/fssm-root-layout-tables
feat/gdk-speech-display-lifecycle
asset-audio-skip-current
qemmhd/old-9940-rectangle-quad-lists
feat/ws2-offline-shim
qemmhd/rt-d16-unorm-uav
feat/xs-device-stops-7-9
qemmhd/rt-depth-same-base-shapes
qemmhd/rt-lazy-attachment-variant
feat/acphal-xma2-decoder
asset-audio-skip
codex/coord-claim-check-20261124-7e48
feat/xs-frame-pacing-presentx
feat/xs-device-vm-options
old-pr/9844
old-pr/9978
old-pr/9815
old-pr/10057
old-pr/9874
old-pr/9965
old-pr/9863
old-pr/10068
old-pr/10066
old-pr/10067
old-pr/10007
old-pr/10061
old-pr/10065
old-pr/10059
old-pr/10063
old-pr/10055
old-pr/10062
old-pr/10042
old-pr/10041
old-pr/10049
old-pr/10047
old-pr/10046
old-pr/10045
old-pr/10056
old-pr/10043
old-pr/10036
old-pr/10034
old-pr/9984
old-pr/10052
old-pr/10038
old-pr/10033
old-pr/10028
old-pr/10050
old-pr/9891
old-pr/9889
old-pr/10051
old-pr/10019
old-pr/10027
old-pr/10029
old-pr/10031
old-pr/10026
old-pr/9941
old-pr/10030
old-pr/10040
old-pr/9990
old-pr/10021
old-pr/9962
old-pr/10022
old-pr/10020
old-pr/10015
old-pr/10025
old-pr/9886
old-pr/10048
old-pr/10014
old-pr/10011
old-pr/9861
old-pr/10010
old-pr/10008
old-pr/9860
old-pr/10006
old-pr/9920
old-pr/9995
old-pr/10000
old-pr/10016
old-pr/10004
old-pr/10023
old-pr/9982
old-pr/9981
old-pr/9983
old-pr/9970
old-pr/9969
old-pr/9968
old-pr/9971
old-pr/9972
old-pr/9942
old-pr/9963
old-pr/9960
old-pr/9964
old-pr/9985
old-pr/9973
old-pr/9862
old-pr/9953
old-pr/10017
old-pr/9952
old-pr/9955
old-pr/9946
old-pr/9954
old-pr/9938
old-pr/9956
old-pr/9856
old-pr/9947
old-pr/9924
old-pr/9961
old-pr/9927
old-pr/9979
old-pr/10032
old-pr/9926
old-pr/5237
old-pr/9951
old-pr/9931
old-pr/9902
old-pr/9921
old-pr/9994
old-pr/9775
old-pr/9768
old-pr/9905
old-pr/9936
old-pr/9901
old-pr/9904
old-pr/9906
old-pr/9988
old-pr/9908
old-pr/9909
old-pr/9911
old-pr/9912
old-pr/9913
old-pr/9887
old-pr/9916
old-pr/9919
old-pr/9925
old-pr/9933
old-pr/9935
old-pr/9918
old-pr/9879
old-pr/9880
old-pr/9881
old-pr/9996
old-pr/9876
old-pr/9892
old-pr/9899
old-pr/9915
old-pr/9914
old-pr/9872
old-pr/9869
old-pr/9866
old-pr/9819
old-pr/10012
old-pr/9857
old-pr/9893
old-pr/9897
old-pr/9928
old-pr/9868
old-pr/9917
old-pr/9940
old-pr/9873
old-pr/9816
old-pr/10009
old-pr/9900
old-pr/9966
old-pr/9859
old-pr/9843
old-pr/9991
old-pr/10058
old-pr/9883
old-pr/9838
old-pr/9835
old-pr/9959
old-pr/9895
old-pr/9837
old-pr/9858
old-pr/9865
old-pr/9864
old-pr/9840
old-pr/9820
old-pr/4669
old-pr/9848
old-pr/9850
old-pr/9810
old-pr/9799
old-pr/9853
old-pr/9875
old-pr/9831
old-pr/9796
old-pr/9801
old-pr/9813
old-pr/9794
old-pr/7417
old-pr/9781
old-pr/9806
old-pr/9958
old-pr/9809
old-pr/9791
old-pr/9792
old-pr/10053
old-pr/9784
old-pr/9789
old-pr/9849
old-pr/9846
old-pr/9773
old-pr/9785
old-pr/9803
old-pr/9826
old-pr/9839
old-pr/9922
old-pr/9948
old-pr/7189
old-pr/9957
old-pr/9823
old-pr/9807
old-pr/9851
old-pr/9774
old-pr/9830
old-pr/9836
old-pr/9822
old-pr/9783
old-pr/9833
old-pr/9890
old-pr/9770
old-pr/9769
old-pr/9772
old-pr/9787
old-pr/9852
old-pr/9834
old-pr/9845
old-pr/9871
old-pr/9771
old-pr/9776
old-pr/10005
old-pr/9949
old-pr/9923
old-pr/9805
old-pr/9829
old-pr/9790
old-pr/9827
old-pr/9929
old-pr/9855
old-pr/9934
old-pr/9907
old-pr/9910
old-pr/9779
old-pr/9780
old-pr/9885
old-pr/9882
old-pr/9877
old-pr/9998
old-pr/4251
old-pr/9987
old-pr/9989
old-pr/9950
old-pr/9777
old-pr/10044
old-pr/9884
old-pr/2906
old-pr/5076
old-pr/9937
old-pr/9986
old-pr/3014
old-pr/9943
old-pr/9939
old-pr/4682
old-pr/4765
No results found.
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Reference
ProjectLeonida/mandy#3122
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?
Imported from ubiquitarianism/leonida. Originally posted by sernartar on 2026-12-02T12:18:13Z.
What happens
Shaders keep loading like every second causing a big lag spike before returning to normal
Commit
2026-12-02
System
Windows 11, Intel Core i5-12600KF, NVIDIA RTX 4060 Ti (8GB VRAM), 32GB RAM
Where
shaders
Command and steps
Hi I'm not sure if there's a setting I missed or if this is a bug Every so often shaders appear to be loading which causes one big lag spike and then things go back to normal I already have all pipelines and shaders ready/warmed up it happens repeatedly during gameplay.
Otherwise, amazing work on the project!
Output
Imported from ubiquitarianism/leonida. Originally posted by fuzer322 on 2026-12-02T12:26:25Z.
I got the same problem on Ryzen 7800x3d RTX 4070 ti
Imported from ubiquitarianism/leonida. Originally posted by Ihavesmallpp on 2026-12-02T12:31:21Z.
I have the same problem, 4060ti i7-14700f
Imported from ubiquitarianism/leonida. Originally posted by Dash-Tale on 2026-12-02T13:37:16Z.
same problem, 5700X3D RTX 4070
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T14:54:25Z.
What you are seeing has a name in this repository, and it is not a setting you missed: it is the title's pipelines being compiled the first time a place is reached.
d3d12/crates/leonida-gpu/src/pipeline/known.rsopens with the numbers:That compile is what freezes the picture for a second or two - the driver's compiler runs on the frame that first asks for it.
findings.mdcounts it too: runs where "270-660 s of a session were full of frames over 200 ms, almost all while new pipelines were made".What to do about it
In the launcher, Settings: "Precompile every pipeline (-PrecompileAll)", together with "Prepare shaders before starting". It makes them ahead of the run instead of during it - and it is very long the first time (that is the launcher saying so, not me), which is exactly why it is not the default.
From a command line, the two steps are:
and, for the pipelines a session met, the next session makes them during loading because they are in the book (
known-pipelines.bin, appended as they are found, so a crash does not lose them).What tells whether it is working
With
-Log, in%LOCALAPPDATA%\Leonida\logs\play-*.log:shader preparation 64.5 son a first start,0.0 son later ones - if it is never 0.0, the cache is being thrown away and that is worth a report;host mesh pipeline/first bindlines during play: each one is a pipeline compiled while you wait;pipelines made - loaded -in the launcher's telemetry line.If you paste the tail of that log with a few of those lines around a spike, I can say whether it is pipelines, textures or something else - none of the four reports here has a log yet, and the logs are what turn this from "it stutters" into a number.
AI-assisted: yes - DeepSeek v4.1 (flash).
Written with an AI assistant.