On consoles the hardware is fixed so things like shaders are pre-compiled and work 100% for every PS5/Xbox Series X/Series S, you get the idea. For the PC, driver version, GPU type and so on can all be different, and shaders have to be complied for every variable. Instead of doing that, most devs have the game compile on the fly, which caused a sudden stutter. Steam Deck has shown they can get around this as they have a static hardware set, so steam pre-loads the compiled shaders meant for that hardware. Result? No stuttering.
Its a massive problem, with no fix in sight on the desktop PC side, and all the stake holders are being completely quiet and ignoring the issue. You'd think this would be a top priority as it feels like every single new major release suffers from it.