Question / Help Dropping frames. Low FPS, Lag, Jamming

makintosz

New Member
Hello all!

At the beginning I would like to apologize for any language mistakes. My English is not perfect, so I help using a translator.

To the point!

I have been using OSA for a long time and it has always worked PERFECTLY. For some time, specifically since I started recording Call of Duty Black Ops 4, I noticed that the program loses frames. At the beginning, while playing Black Ops 4 was okay, everything worked well. After a while, it started to stutter. By the time of Black Ops, I was playing the new Assasin Odyssey and everything was okay, nothing stuttered. Since it started trimming in CoD, now the program loses frames / lags in almost every game. Even in those that have less requirements like Elex, Realm Royal, Ashen, the program does not work properly. The V-sync option in games is a bit easier, but it's not perfect anyway. The most puzzling thing is that everything was always fine. I have the latest version of the program, the latest drivers, so I have no idea where the problem lies...

I'm counting on your help!

Thank you and best regards!

OBS Log

https://obsproject.com/logs/7j7GypMzvRus17JF

https://obsproject.com/logs/RKK7IgqI2qazIcks
 

Narcogen

Active Member
Did those recordings lag? Because the logfiles there basically show almost no lagged frames.

17:43:01.898: Output 'simple_file_output': Number of lagged frames due to rendering lag/stalls: 3 (0.1%)
17:38:21.263: Output 'simple_file_output': Number of lagged frames due to rendering lag/stalls: 23 (0.1%)

That would be... barely perceptible? Any lagged frames in rendering means you are near the limit of your GPU's capacity and capping your in-game framerate is always a good idea, but I routinely see users who have problems recording and are experiencing way, way more rendering lag than this.
 

makintosz

New Member
Yes, lags or those drops in frames are visible on the recording unfortunately

Can the problem be related to the fact that the use of GPU is practically 100%, so there is nothing left for OSA? Because I have nearly 100% use for the GPU, even with weaker games. Changing the settings of the high-priority process does not help anything.
Czy problem może dotyczyć tego, że użycie GPU jest praktycznie na 100%, przez co nie zostaje nic dla OBS?
Ponieważ mam blisko 100% użycie dla GPU, nawet przy słabszych grach.
Zmiana ustawien priorytetu procesu na wysoki nic nie pomaga.
 

Narcogen

Active Member
I am not sure what you mean by "OSA"...

But any case, yes. You need to keep 5-10% of your GPU free for OBS to render frames, as it needs to do this before encoding. If your GPU is at 100% load all the time then you will have frames that lag in rendering and this will appear as stutter, as the encoder will encode the old frame until a new one is rendered.
 

Narcogen

Active Member
If the line for "Number of lagged frames due to rendering lag/stalls:" is not zero, then at some point the GPU reached 100%.

The reason for keeping it at 90-90% maximum is so that it never reaches 100%, and no frames are ever lagged while rendering.

I still don't know what "OSA" is?
 

makintosz

New Member
It should be OBS ... Do not know why correct the correctness on OSA ... xD I did not notice this during the posting.


I have no idea why it used to be good, and now it is as it is. I removed the drivers from the graphics card, installed the older ones, installed the older version of OBS, still bad. I was restoring the system to times when it was okay, it still does not work properly, I was restoring the system to the initial settings and still the same. Can the problem be a power supply or a processor? None of the components had physical failure, but I do not know where to look for the cause ...
 

PrinceVinc

Member
Deactivate Game Mode (Spielemouds) on Windows 10 and everything else connected that starts with Game on Win10 settings

I can see in your Log that every other Game Mode was disabled, but better double Check
Windows 10 Gaming Features:
Game Bar: Off
Game DVR: Off
Game DVR Background Recording: Off

Dev will include Game Mode in the Log at some point, but it is the main reason most people suddenly have this issue, me and a Friend included.

Also, get Nvidia Inspector and turn off this. Not the main issue, but it lowers GPU Power when using Nvenc.
1546204888870.png
 
Last edited:

makintosz

New Member
What did you cap the framerate to?

What do you mean exactly?
I just turned on the V-sync option in the game. If I have a choice, because it's not the case for everyone, I set it to 60 frames.

In general, it looks like I have a GTX 970 graphics card from which such connectors come out: DVI to which an older type of monitor is connected. It serves as a preview window for OBS. DisplayPort to which a monitor with this type of connector is connected. I also use AverMedia Live Gamer HD2, which is connected to the PS4 console and the image from the console in OBS, when I use AverMedia is okay, there is NO CALLS / LAGS. Only when the image is broadcast from a PC there are these suspensions.

Deactivate Game Mode (Spielemouds) on Windows 10 and everything else connected that starts with Game on Win10 settings

I can see in your Log that every other Game Mode was disabled, but better double Check
Windows 10 Gaming Features:
Game Bar: Off
Game DVR: Off
Game DVR Background Recording: Off

Dev will include Game Mode in the Log at some point, but it is the main reason most people suddenly have this issue, me and a Friend included.

Also, get Nvidia Inspector and turn off this. Not the main issue, but it lowers GPU Power when using Nvenc.View attachment 41724

It seems to me that this Game Mode mode is off, as you mentioned. In the settings in the tab, the bar from the game and dvr everything is turned off. Unless it can be turned off differently. As for the CUDA option in NVidia Inspector, I do not have such a 100% tab. If anything, I attach a screen that does not exist.
 

Narcogen

Active Member
It seems to me that this Game Mode mode is off, as you mentioned. In the settings in the tab, the bar from the game and dvr everything is turned off. Unless it can be turned off differently. As for the CUDA option in NVidia Inspector, I do not have such a 100% tab. If anything, I attach a screen that does not exist.

The OBS Log doesn't mention Windows 10 Game Mode specifically, only the Game Bar and DVR features. So you can't tell if game mode is on or off from the OBS log. That DVR and Game Bar are off does not mean that Game Mode is.

Windows 10 "game mode" being on negatively impacts OBS performance significantly.

If you go into the Game page of the PC Settings area and you don't see a toggle for "Game Mode" then you're running a build of W10 prior to 1809 from last October, and that probably means that Game Mode is on and you can't turn it off. You should do the 1809 update and then toggle the setting to off.
 

Narcogen

Active Member
Please post a log of a session where the problem occurs after the update and with game mode turned off.
 

Narcogen

Active Member
Do these sessions display your problem? The recording sessions are not showing any significant dropped frames:

09:28:17.678: ==== Recording Start ===============================================
09:28:17.678: [ffmpeg muxer: 'simple_file_output'] Writing file 'D:/OBS NAGRANIA/2019-02-08 09-28-16.mp4'...
09:29:46.382: Stopping recording due to hotkey
09:29:46.693: [ffmpeg muxer: 'simple_file_output'] Output of file 'D:/OBS NAGRANIA/2019-02-08 09-28-16.mp4' stopped
09:29:46.693: Output 'simple_file_output': stopping
09:29:46.693: Output 'simple_file_output': Total frames output: 5323
09:29:46.693: Output 'simple_file_output': Total drawn frames: 5338 (5341 attempted)
09:29:46.693: Output 'simple_file_output': Number of lagged frames due to rendering lag/stalls: 3 (0.1%)
09:29:46.693: ==== Recording Stop ================================================

But again, if the amount of rendering lag is the issue, GPU load must be reduced. If you have already capped the framerate or turned on vsync, the options are to further reduce quality to keep GPU load low enough, or switch to either 720p60 or 1080p30 to reduce load.
 

makintosz

New Member
From Apex Legens on medium set...

https://obsproject.com/logs/TcGM1j-70QKLbtW5


How to reduce the charging/loading of the GPU? When playing virtually all titles, in the task manager I see that the GPU is used in almost 100%, which leaves nothing for OBS.


The biggest problem is that ALWAYS EVERYTHING WAS WORTH ... Is the fault on the side of the equipment? I did not change anything ...
 
Last edited:

Narcogen

Active Member
Neither did OBS; the last update was six months ago.

What has updated since then are: Windows, the games, and your video drivers.
 

makintosz

New Member
I restored my windows settings to the initial state and checked the updates again. Both to the graphics card as well as the system. I really think that the fault lies on the side of the graphics card. In the device manager I see that every game consumes 100% of the card, so nothing is left for OBS. Something has happened to this card since Black Ops 4 or the new Assassin. It was not like that before.
 
Top