Question / Help Preview lag = Recording lag, how can I get rid of preview lag Windows 10 (Nvidia GPU)

Unconquered

Member
I know it's a lot of the same users on here, so I'm very sorry to those of you who have already read my issue. This will be my last thread on this forum, whether anyone is able to help me or not, I assure you. I wanted to re-post as I have a very specific focus I want to address, and am hoping some tech god may happen through here and be able to point me in the right direction. To those of you who have already helped, thank you so much for your time. My last week has been nonstop scouring of the internet, and posting and receiving help on various forums, from these forums, to generalized PC forums, all the way to NVIDIA forums. I just want to be clear that my making a new thread isn't a desperate bid for views on my issue, but to create a succinct thread to not only showcase where I believe the issue may lie, but the multitude of fixes I've tried, to save everyone time.

The Problem
When I have OBS open alongside a game (I haven't noticed it happen in desktop, but it's harder to tell), the preview OCCASIONALLY becomes choppy, as though the framerate has dropped down to 30fps (or lower) from 60. This happens Whether I'm Recording Or Not. These dropped frames are NOT in the actual gameplay. These dropped frames, if I am recording, ARE present in the recording, identically to how they were in the preview. These dropped frames ARE NOT encoding or rendering lag. There are ZERO dropped frames in my log files.

This is not the result of my HDD being unable to keep up - if it were, the frame drops wouldn't occur in the preview when not recording. This is not the result of my CPU/GPU/RAM Bottlenecking, their average utilization are 40%/60%/40% respectively while recording, and even less while not. Temperatures of all of those have also remained low. Something bizarre is happening on my computer, that for some reason is either stealing resources from OBS (of which I should have plenty left to allocate), or choking it out.

I'm not going to include my recording settings at this moment in time, as the preview is lagging independently of the recording. If someone thinks a certain setting may be affecting it, please tell me where it is and I will both change it to what you suggest.

My Computer
CPU: i7-6700k @ 4ghz (Intel Processor Diagnostics Tool - Passed with low temperature)
GPU: ASUS GTX 1070 DUAL OC (Running 416.93, Tried 417.71, Tried 397.93)
RAM: 16 GB (Windows Memory Diagnostic showed no errors, but shouldn't have been issue anyway as games that require high amounts of RAM are consistent 60)
Recording onto HDD (Although again, inconsequential as long as the preview lag when not recording is an issue)
OBS is running off an SSD
Windows 10 - Version 1809 - Build 17763.253
Logitech HD Pro Webcam C920 (Extra bit of info, but it is used in the program so thought I'd include)

What I have tried (not in order)
  1. Lowering settings in game and OBS (to bare minimums of both, and the problem persisted)
  2. Changing a wide range of OBS settings one at a time to see if they were the issue, too many to list.
  3. Changed OBS priority from normal, to above normal, to high
  4. Full system scans with BitDefender and Malwarebytes
  5. Setting PC to High Performance (Minimum Processor State 100%, also tried 99% to see if it was a stability issue with turbo)
  6. Clean re-installation of NVIDIA drivers, using DDU in safe mode
  7. Clean re-installation of OBS, including profiles and plug-ins.
  8. Limiting In-game FPS to 60
  9. Using V-sync in game and NVIDIA control panel
  10. Running game in Fullscreen, Borderless Window, Window
  11. Changing affinities of game running to use less CPU cores
  12. Disabling every potentially slowing background application/process I could think of
  13. Making an exception for OBS folder/application with Windows Defender
  14. Tried the OBS Beta with increased Nvenc Functionality
  15. Running OBS as admin
  16. Went through event viewer and looked for anything strange at the times I was recording, nothing
There may be more that I am forgetting, but I think those are the core ones. If I can't get a fix to this, my next step will be a complete wipe of my drives and windows to see if that gets me anywhere, but I'd really rather not do that unless it's absolutely necessary.

I am going to include a log file, because I know for a fact someone will request one regardless of my assertion that no frames are being dropped in the logs :P. This particular one I'm including has several recordings, where the issue arose in each. The reason for so many different attempts was I was playing with the affinities of Overwatch between each recording.

I do not feel that this is a hardware issue, and it's not as though my computer is lagging and locking up for 30 seconds anywhere other than OBS. My main suspicion is that something, maybe in a Windows update, maybe in a program, is causing some sort of malfunction of OBS. I am sorry again for making another thread, but this issue is actually far different from what I originally perceived it to be, thinking it was in fact tied to a certain game, but realizing now that it's all games, and not only when I'm recording.

I humbly request any assistance, and appreciate each and every suggestion. If you've already given this a crack for me, thank you, you may very well see your advice in the things I've tried above. I really wanna record some games, been putting off playing Resident Evil 2 because I want my reactions to be authentic when recording.

Thank you so much, hope you all have a lovely weekend.
 

Attachments

  • 2019-02-02 00-15-31.txt
    23.3 KB · Views: 91
Last edited:

Narcogen

Active Member
"I do not feel that this is a hardware issue, and it's not as though my computer is lagging and locking up for 30 seconds anywhere other than OBS. My main suspicion is that something, maybe in a Windows update, maybe in a program, is causing some sort of malfunction of OBS."

Just a thought here-- I concur that this is very likely an underlying issue. However, if this were to happen in this manner, OBS would report it as a dropped or lagged frame. It knows how many frames it tries to render. It knows how many it actually rendered. A windows bug can't fake the number of rendered frames, or make OBS forget how many frames it should have rendered at a constant framerate during a specified time period. This includes not just frames that OBS has encoded, but the frames it needs to render in order to composite your scene.

I believe what is happening here, outside of the lagged frames that are actually recorded in the in the OBS log, is that OBS is getting repeated frames, rendering them and encoding them, and considering that a success. It doesn't know that those repeated frames appear to you to be a stutter-- it only knows that when it repeats a frame because it couldn't render one.

00:23:46.047: Output 'adv_file_output': Total frames output: 20448
00:23:46.047: Output 'adv_file_output': Total drawn frames: 20463

I don't know as much about how to parse NVENC logs, so I can't tell if the above is a serious issue or not, but the discrepancy there is only 15 frames over five minutes. I am assuming that what you are experiencing is in excess of that.

The latest log shows display capture, a webcam, and a color filter, and the NVENC encoder.

Before wiping your hard drive, I would try a few things. Again, on fresh profiles and scene collections, do a game capture of something you know you can run well, at native display resolution, with no filters and no webcam. Cap framerate at 60, capture at 60, and use the software x264 encoder (logs are more verbose than for NVENC). Try to see if there's any baseline task that your current setup can perform without encountering this issue, because if you can't, then it's definitely something more pervasive and might be worth starting all over.
 

DEDRICK

Member
This issue is not new, it has been around for a couple years now with no real acknowledgement that it exists. It definitely exists, I want to say everyone on a single PC using an NVIDIA GPU experiences it

https://obsproject.com/forum/thread...review-which-goes-into-recorded-videos.77744/

It's not lagged, skipped or dropped frames. It's a microstutter, like duplicated frames, an inconsistent feed of frames from the GPU. Visible in the preview as a dip in FPS yet no indication that the FPS has dropped. The recording will appear to have inconsistent frame times, and will have duplicated frames.

It occurs randomly but it always occurs, it's always there. A hitch here, a stutter there, mostly unnoticed until you start really looking for it
 
Last edited:

Unconquered

Member
Thank you all for taking the time to respond.

@StraightEGO - No, my preview/recordings run at 60fps 80% of the time, but occasionally dip down to 15-30FPS for up to a full minute. It seems like your issue is more of a constant framerate drop.

@Narcogen - Thanks for your continued support on this. That's an interesting point. I do believe that what I'm seeing is far more than what those suspected duplicates in the log would account for. I will try a clean uninstall and test with no filters/webcam on x264 and let you know soon. Thank you for the advice.

@DEDRICK - Wow, that was quite the read, and honestly made me feel that much more hopeless about this whole thing! (Not to say that was your intention, just crazy it hasn't been resolved!). So, if I understand what you're saying, this tiny hitch, stutter, or duplication, while not as severe as the fps drop implies, manifests in that way?

Well, I am going to try what Narcogen suggested, as it seems prudent to follow every avenue afforded to me, but it does really sound like it's just something I'm going to have to live with, or build a new PC with an AMD card..

It seems absolutely ludicrous that the developers were silent on that long-standing thread. I understand that this is a free to use, open source software, but you would think one of them could offer some insight into the situation, yikes.

Thank you all for your time!
 

Unconquered

Member
@Narcogen

No dice, switched over to x264 when I reinstalled and before I could even try recording the preview was going crazy. Based on what I read in that other thread, I'll just need to put off recording for a year or so until I can afford a good new PC running on AMD instead of Nvidia. Honestly can't understand why this is such a common issue, yet no one on either side can address it, and will likely never be purchasing another NVIDIA card based on this experience.

I really do appreciate all of the help that's been given, and know you all gave me great info to work with. Just unfortunate that this issue exists and is ignored by those who could potentially address it.

Thanks again.
 
Last edited:

Sakuukuli

New Member
Have you tried turning off Game Mode in Windows settings? It's under the Gaming section.
2018-12-02_17-22-45_002xY.png
 

drakgoku1

Member
Same problem with Ryzen 2400G.
The preview looks lagged:

1 - Without activating streaming
2 - x264 or AMD encoder
3 - Game Mode on / off

The strange thing is that there are games that do not happen and there are others that do.
For example, in World of warcraft it does not happen, while in Allods or eternal magic and many others it does.

The debugger will not find anything because streaming is off and it will only show that the specifications are working properly.

Someone will come saying why you use an APU, from my point of view, I am not going to waste my time with those arguments.

I think we can approach the problem in this way.
"OBS: We have programmers for the OBS according to their moment and time, in other words, buy the latest and greatest, because otherwise we won't know how to fix it."
That's the best best argument that fits OBS.

Therefore, it is much better to have two machines, one to play and the low-spec machine to stream.

It is normal for you to think that I am complaining and it does not make sense, the same I think of someone who thinks like this. Many years of disappointment for low-spec computers.
 

JackCobanGaming

New Member
This issue is not new, it has been around for a couple years now with no real acknowledgement that it exists. It definitely exists, I want to say everyone on a single PC using an NVIDIA GPU experiences it

https://obsproject.com/forum/thread...review-which-goes-into-recorded-videos.77744/

It's not lagged, skipped or dropped frames. It's a microstutter, like duplicated frames, an inconsistent feed of frames from the GPU. Visible in the preview as a dip in FPS yet no indication that the FPS has dropped. The recording will appear to have inconsistent frame times, and will have duplicated frames.

It occurs randomly but it always occurs, it's always there. A hitch here, a stutter there, mostly unnoticed until you start really looking for it
It is exactly this and it is STILL a problem! I have it, it kinda makes no sense, because the stats are perfect, the gameplay runs perfect, the hardware is around 60% usage but STILL the preview and recording is randomly but regurarly/always stuttery.

How is this not solved yet?
 

KingMundane

New Member
ATTENTION EVERYONE!!!!!!! I've had the same problem for forever and just found a possible solution for you! I use game capture for all of my sources and never turned off my sources so they were all on at once even if I wasn't playing that game. I just turned off all of my sources that I wasn't using and the lag disappeared!!!! I recommend trying this!
 

Toastfalter

Member
What do you mean exactly. did you switch off the launcher during the game or what do you mean exactly. At the moment I also have the problem that I have laggs when recording but the game runs smoothly and OBS has 0% skipped frames.
 

Xorcist

New Member
ATTENTION EVERYONE!!!!!!! I've had the same problem for forever and just found a possible solution for you! I use game capture for all of my sources and never turned off my sources so they were all on at once even if I wasn't playing that game. I just turned off all of my sources that I wasn't using and the lag disappeared!!!! I recommend trying this!

THIS!!!!! I've been having this issue randomly but then THIS!!!!
Now the issue may not necessarily be checking all the "Deactivate when not showing" options for video inputs but may have to do with the number of SCENES you have. I accidentally have been just making one main SCENE for EVERYTHING and different sources. Well... I started getting stutter on my main cam at 1080p/60 but when I made a new SCENE with just one Source of the cam - it's perfect.

tl;dr - Make smaller Scenes - don't crowd.
 

Xorcist

New Member
THIS!!!!! I've been having this issue randomly but then THIS!!!!
Now the issue may not necessarily be checking all the "Deactivate when not showing" options for video inputs but may have to do with the number of SCENES you have. I accidentally have been just making one main SCENE for EVERYTHING and different sources. Well... I started getting stutter on my main cam at 1080p/60 but when I made a new SCENE with just one Source of the cam - it's perfect.

tl;dr - Make smaller Scenes - don't crowd.
And following up - YES - Once I dug deeper, there was a source on my 4 INPUT HDMI card that had 2 Scenes that were NOT ticked so aside from bloat, KingMudane I think nailed it.
 

Boostedsol

New Member
I'm having this same issue.. anyway any one can explain more in detail on how you fixed it? I'm sorry I'm not very good at this stuff I'm still trying to learn it all..
 

FrozenSaw

New Member
Я считаю что это проблема Windows 10. Ибо я пробовал многие варианты (даже самые безумные), но ничего не помогает. Но проблема присутствует как в обс студио, так и в стримлабс обс, твич студио и обс классик. Программисты OBS молчат, хотя проблема есть и она выводит из себя. Итого я пришёл к выводу- что проблема вовсе не в обс, а в Windows 10. Ибо проблема во всех программах для стриминга и во всех симптомы одни и те же. Так же могу отметить тот факт, что при переустановке Windows 10 без обновлений, потеря кадров появляется раз в 18 минут,а при всех обновлениях каждые 6 минут. Так же читал отзывы, что на Linux таких проблем нет. Итог снова подозрения падают на кривую W-10. Сегодня буду пробывать установить Windows LTSB, если не поможет то установлю Windows 7. Если и это не поможет, то я уже не знаю что делать. Но пока единственный подозреваемый тут Windows 10. Но так же я слышал о решении этой проблемы от знакомых, это - карта захвата. Стрим с двух пк или двух видеокарт, с использованием карт видеозахвата. Мой пк - RX 580 8GB, Ryzen 1700x, RAM 16 GB 3000MHz. И я не думаю что мощности моего пк не хватает для стриминга.
 

Boostedsol

New Member
Я считаю что это проблема Windows 10. Ибо я пробовал многие варианты (даже самые безумные), но ничего не помогает. Но проблема присутствует как в обс студио, так и в стримлабс обс, твич студио и обс классик. Программисты OBS молчат, хотя проблема есть и она выводит из себя. Итого я пришёл к выводу- что проблема вовсе не в обс, а в Windows 10. Ибо проблема во всех программах для стриминга и во всех симптомы одни и те же. Так же могу отметить тот факт, что при переустановке Windows 10 без обновлений, потеря кадров появляется раз в 18 минут,а при всех обновлениях каждые 6 минут. Так же читал отзывы, что на Linux таких проблем нет. Итог снова подозрения падают на кривую W-10. Сегодня буду пробывать установить Windows LTSB, если не поможет то установлю Windows 7. Если и это не поможет, то я уже не знаю что делать. Но пока единственный подозреваемый тут Windows 10. Но так же я слышал о решении этой проблемы от знакомых, это - карта захвата. Стрим с двух пк или двух видеокарт, с использованием карт видеозахвата. Мой пк - RX 580 8GB, Ryzen 1700x, RAM 16 GB 3000MHz. И я не думаю что мощности моего пк не хватает для стриминга.



Thank you im not sure how to change this to English so I can read it
 

uwu

New Member
Yo guys i'm experiencing similar issue, cpu, gpu, network all piss chilling but i'm getting drops for no reason on preview/recording/stream no matter the settings used. I'm on a single pc dual 1080/144 setup. I think the problem comes from the capturing methods. If i use an mp4 file of a smooth 60fps video as a source now all of sudden everything appears to be smooth to me. Same with chatbox, the animation at which the messages come in is still 60fps smooth while gameplay seems to be dropping under 60. Also when i used to stream console games (using elgato) i didnt have this issue everything was really smooth even after hours of streaming. I think using "video capture device" rather than game/display/window capture is the way to fix it. Whoever has an 1080/60 elgato with a similar setup than mine or another way to capture screen with this capture method can help us out i think id rather have confirmation before throwing money out the window.
I apologize in advance if you guys already ruled out this option i might have missed a message.
 
Top