I was going to download Elden Ring and give it a go, but from what I've gathered the pc community is saying it's next to unplayable with all of the random stuttering. One video I watched the author had alluded to the cause being do to how the shader programs are compiled at runtime when they are required to render specific elements.
Now, I've been working on an opengl engine for the past half decade at this point and I can for sure see how this could cause the stuttering. If you've got a large shader program and it takes (just for example sake) 100ms to send the string to the gpu and compile, you'll block for that amount of time causing a stutter.
However, and this is probably naivety on my part, but why don't they just preload all of the shaders before the scene begins? This is what I do in my engine (although I only have maybe 10 different shader programs, none of which are massive in size) and it's worked out fine for me up to this point.
Is there some specific reason why they choose to compile shaders at runtime?