S.T.A.L.K.E.R. 2: Heart of Chornobyl

S.T.A.L.K.E.R. 2: Heart of Chornobyl

View Stats:
TheMidur™ Nov 20, 2024 @ 2:53pm
Compiling shaders every time?
It is normal when compiling shaders every time you start the game??
< >
Showing 1-15 of 93 comments
Kashra Fall Nov 20, 2024 @ 2:54pm 
Yup, it's how it's designed.
MaxxGold Nov 20, 2024 @ 2:56pm 
This way you don't get stutter in the game, unless you are playing at to high of settings.
You can increase your shader's in the Nvidia Control app. I put mine at 100G and the shaders load faster. :praisesun:
fox Nov 20, 2024 @ 2:57pm 
5
2
2
4
Don't exit the game and you'll never have to compile shaders.
Brother Atheos Nov 20, 2024 @ 2:57pm 
I dont mind.
Tiny Trees Nov 20, 2024 @ 2:58pm 
Have had games before compile shaders at every start up, however, the first time was the longest shader compilation. .... The second start up was a shorter compilation. Every time after that it was over in a few seconds.
TheMidur™ Nov 20, 2024 @ 3:04pm 
Originally posted by MaxxGold:
This way you don't get stutter in the game, unless you are playing at to high of settings.
You can increase your shader's in the Nvidia Control app. I put mine at 100G and the shaders load faster. :praisesun:
Where i set this pls?
RitualistEssence Nov 20, 2024 @ 3:09pm 
Seems to be a trend with new games this year, Dragon Age Veilguard is doing the same thing with every startup compiling shaders.
Kashra Fall Nov 20, 2024 @ 3:10pm 
Originally posted by RitualistEssence:
Seems to be a trend with new games this year, Dragon Age Veilguard is doing the same thing with every startup compiling shaders.

Loads your game now, so it doesn't have to load it in the future, makes for a more seemless experience (Unless you fast travel.) it's primarily for moving around, not warping areas. Even then, the loading is substantially reduced.
DevNull Nov 20, 2024 @ 3:11pm 
3
2
2
3
As a software developer who worked on shader and GPU such as SPIR-V, HLSL, and GLSL across DirectX, Vulkan, Metal, and OpenGL, I can tell you that there is no reason why you need to recompile the shader if your hardware configuration and software versions for the game, driver, and so forth are the same when comparing to the last time that you compiled the shaders.

The GPU Device IR stays the same when you re-run compilation for shaders, don't believe me, try it yourself. I'm serious.

This isn't a particularly hard thing to cache for from a developer POV, because you can keep a metadata information containing the GPU Driver Version, Game Version, and Hardware Configuration on your PC and simply cache the shaders ties to those metadata.
MrVakmix Nov 20, 2024 @ 11:52pm 
Originally posted by TheMidur™:
Originally posted by MaxxGold:
This way you don't get stutter in the game, unless you are playing at to high of settings.
You can increase your shader's in the Nvidia Control app. I put mine at 100G and the shaders load faster. :praisesun:
Where i set this pls?

Nvidia Control Panel - Manage 3D Settings - Shader Cache Size
ChubbiChibbai Nov 20, 2024 @ 11:56pm 
Originally posted by Opaatia:
As a software developer who worked on shader and GPU such as SPIR-V, HLSL, and GLSL across DirectX, Vulkan, Metal, and OpenGL, I can tell you that there is no reason why you need to recompile the shader if your hardware configuration and software versions for the game, driver, and so forth are the same when comparing to the last time that you compiled the shaders.

The GPU Device IR stays the same when you re-run compilation for shaders, don't believe me, try it yourself. I'm serious.

This isn't a particularly hard thing to cache for from a developer POV, because you can keep a metadata information containing the GPU Driver Version, Game Version, and Hardware Configuration on your PC and simply cache the shaders ties to those metadata.

Have seen it in a few games recently though.
What you say makes sense but i wonder why this isn't just an isolated case. Maybe something new is being done.

These games that do this don't take long either - unlike the games you describe that do an initial shader comp every time you update your drivers which take a while. This is more like its loading stuff into RAM or VRAM.
Niall Nov 21, 2024 @ 12:00am 
The first time compiling took 20 minutes. Every time I start the game it takes over 7 minutes. This is unacceptable. XBox game pass. My system is no joke I have the mighty 7800X3D coupled with an RX 6950 XT and 32GB of DDR5.
ChubbiChibbai Nov 21, 2024 @ 12:01am 
Originally posted by Niall:
The first time compiling took 20 minutes. Every time I start the game it takes over 7 minutes. This is unacceptable. XBox game pass. My system is no joke I have the mighty 7800X3D coupled with an RX 6950 XT and 32GB of DDR5.

What? That's not right.
Assuming you are on a decent SSD as well. Like NVME not one of the old sata ones?

My complile each launch is no more than 30 sec.
Niall Nov 21, 2024 @ 12:03am 
m.2 ssd drive. It's painfully frustrating waiting for it to compile every launch
ChubbiChibbai Nov 21, 2024 @ 12:04am 
That's not normal. Wonder if its the gamepass specific version doing that. Your RAM is really good as well.
Last edited by ChubbiChibbai; Nov 21, 2024 @ 12:04am
< >
Showing 1-15 of 93 comments
Per page: 1530 50

Date Posted: Nov 20, 2024 @ 2:53pm
Posts: 94