OBS is stuttering in the recording but not in gameplay, with no missed or skipped frames. I've tried for months to get this fixed, even building a new computer and upgrading from win7 to 11, but the problem remains. I'm recording in 4k, with low overhead settings to later get encoded after editing.
One thing I can say is that it seems related to keyframes. The stutter happens on cue with whatever the keyframes are set at. So if it's set to 2 seconds, you get a stutter every 2 seconds. If you disable keyframes with keyint=0, the problem seems to go away. But that makes the file sizes about 5x bigger, and they were already significant (around 70gb each.)
Things I have tried:
-game mode/no game mode
-nvenc/no nvenc
-gsync/no gsync
-set desktop refresh to 60/144
-limit capture framerate/no limit
-mp4/mkv
-admin/no admin
-crf/cbr
-slower/faster cpu presets
-profile, tune/no profile, tune
-recording directly to very fast nvme
-switched from win7 to win11
-built 100% new computer
The game is Factorio. I don't see the problem in other games, but it's possible the 2D style of Factorio makes it easier to see the 1 frame stutter. It doesn't actually stutter in game, only the output file. The OBS window will look fine, then I check the video recording after the fact and it's got stutters.
Using Factorio's debug overlay, I don't see anything that would imply it's the source of the stutter. Average frame time is about 5ms, and the spikes are well below 16ms. Both computers performed similarly with Factorio. Removing all mods and starting a new game drops frame time to 0.13ms, but the recording stutters are still there.
The computer:
10900k no o/c
3080ti no o/c
64gb 4000mhz
2tb 980 pro nvme
win11
15-20% cpu utilization by encoder
The old computer with the same problem:
7700k no o/c
1080 no o/c
32gb 3200mhz
1tb 970 pro nvme
win7
40-50% cpu utilization by encoder