Game Stuttering in Steam but Runs Smoothly from Folder - Need Solutions

Hi, I have a small problem with adding a game to Steam. The same build on the same computer stutters in Steam, as if shaders are being compiled, but then runs smoothly. However, when launched directly from the folder, it doesn’t stutter at all. What could be the issue and what are the possible solutions?