Frame drops with 28+ version

Galach

New Member
Hello. I've been using OBS for a year for 4K recordings. Image from PC goes through capture card to the laptop, which is doing encoding. Before version 27 I've used Nvenc h264 codek with preset "Quality" and it worked great. But after version 28 (currently updated to 29) some performance issues started to appear.
On the stats tab "Average time to render frame" eventually switches from usual 1-2ms to 16.6, like it's vsync for 60fps. And this leads to frame drops about 1 time in 10 seconds (time just jumps around 16.6ms and always has yellow or red text color. Sometimes before that happens image also lag for couple seconds, skipping about 60-100 frames. Also in rare scenarios frame drops can increase more dramatically for 5-10 seconds in a row. When I see any of these bugs - I relaunch OBS so my frame rendering time goes back to 2ms and continue recording. Even just folding and unfolding the app makes time normal again (but relaunching seems more secure)

For the most of the time I can record footage with no drops at all with stable low frame render time. The problem more often appears when I'm not recording and just standing afk. In version 27 and below frame time never rasied above couple ms so I could sit for hours with 0 dropped frames. That's why such behavior in version 28 and above seems like bug/new eco option or optimization issue, whuch I'd like to clarify. (Also speaking of vsync, I remember that in version 27 image in OBS preview has strong image breaks artifacts like in game with vsync disabled. But on the final record everything was fine. In newer version image preview is stable but I'm facing such issues. Even tried to manualy turn off vsync for OBS in nvidia control panel but nothing changed.

Here's some logs with variety of settings. I'm not sure that they're important, because I tried more and less gpu intensive presets, some of them are equal to my 27 version config.

H264 P4 - https://obsproject.com/logs/iGADFe0wkWznly4e
H265 P4 - https://obsproject.com/logs/avjNBsIrwDTiX5pS
H265 P5 - https://obsproject.com/logs/z4gXS1BJzGZKeh0n https://obsproject.com/logs/YD0UdpLccuRQeKrY

In the last configuration I've recorded hours of footage and most of them has 0 dropped frames. But sometimes the problem apears which makes me relaunch the app and waste a time.
 

dcmouser

Member
I've noticed something similar in the particular case where i have an image overlay on the scene.. Can I ask if these are pure scenes of a camera or might it only happen on scenes where there is an image or media source?
 

Galach

New Member
I've noticed something similar in the particular case where i have an image overlay on the scene.. Can I ask if these are pure scenes of a camera or might it only happen on scenes where there is an image or media source?
Pure scene? The only source in my scene in video capture device. I record only image and sound of my PC
 

dcmouser

Member
If the only thing in your scene is the video capture device then it's a different problem than the one I noticed, so I don't have any insight into your problem.
 

Galach

New Member
Seems like I found strange solution for this issue. I changed refresh rate of my laptop to higher value than 60 (300hz in my case) and since then OBS behaves stable without capping frame rendering time to 16.6ms. Recording is still in 60fps
 
Top