zappy1000

New Member
I haven't had this issue in awhile, but it was never this bad. when sometimes even when my cpu is using like 30% i'm still dropping fps while streaming i've lowered the preset to ultra fast and changed bit rate and it will still do it when I swap games sometimes etc. I used to have it at 60fps 2600 bitrate and very fast with no issue so I'm not sure what happened. Those are the three logs from today. Please help me the only way I fix this is by stopping my stream and either restarting OBS or restarting my PC.
 

Attachments

  • 2018-12-21 19-09-36.txt
    17.7 KB · Views: 119
  • 2018-12-21 20-49-37.txt
    13.7 KB · Views: 44
  • 2018-12-21 17-50-10.txt
    21.2 KB · Views: 53

Narcogen

Active Member
You've got a little bit of everything.

The rendering lag is GPU overload. Most of the logs show a bit of it, one entry shows significant (8.5%). Getting rid of this means making sure your game doesn't monopolize the GPU so that OBS can render frames. This is usually done by capping the in-game framerate, reducing the capture resolution, or adjusting other quality settings.



20:49:02.254: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 1068 (0.4%)
20:49:02.268: ==== Streaming Stop ================================================
20:49:02.327: Video stopped, number of skipped frames due to encoding lag: 1011/283648 (0.4%)

19:07:29.630: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 2200 (8.5%)
19:07:29.631: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 96 (0.4%)

22:59:10.372: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 1752 (0.5%)
22:59:10.375: Video stopped, number of skipped frames due to encoding lag: 3022/372719 (0.8%)

23:07:06.022: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 517 (2.3%)
23:07:06.022: Video stopped, number of skipped frames due to encoding lag: 643/22246 (2.9%)
 

DEDRICK

Member
Unplug your webcam then test again.

I don't think this is GPU usage but instead Video Capture Device lagging the render.

You have both Render and Encoding lag, at 720p48 Super Fast with a 7700K and 1080Ti playing LoL, this shouldn't be possible unless something else is misbeahaving, and it's usually webcams that do it, that or Browser Sources
 
Last edited:

zappy1000

New Member
Unplug your webcam then test again.

I don't think this is GPU usage but instead Video Capture Device lagging the render.

You have both Render and Encoding lag, at 720p48 Super Fast with a 7700K and 1080Ti playing LoL, this shouldn't be possible unless something else is misbeahaving, and it's usually webcams that do it, that or Browser Sources
Yeah I'll try that for sure I might swap the USB ports because I think this happened before.
 

zappy1000

New Member
I tried unplugging the webcam and it still wants to act up.
 

Attachments

  • 2019-01-10 21-56-55.txt
    11.7 KB · Views: 48
  • 2019-01-10 21-51-43.txt
    15.5 KB · Views: 31
  • 2019-01-10 21-30-38.txt
    9 KB · Views: 30

DEDRICK

Member
It was re-determined recently that Game Mode and League of Legends ...and OBS, do not play well together. Take steps to disable Game Mode on your system or just League of Legends for now by following this link

https://obsproject.com/wiki/How-to-disable-Windows-10-Game-Mode

Game Mode and LoL specifically reduces your systems thread count to 4, and also restricts GPU usage to OBS. This combination causes both Rendering and Encoding lag on even the simplest of settings
 

zappy1000

New Member
I didn't use league that time I tried battlefield 5 and I tried turning game mode off but there's no switch so I did the regedit thing and created a allow game mode and set it to zero so I would its off. Not sure why I didn't see a switch I'm on the latest windows update.
 

DEDRICK

Member
Hit WIndows + i, goto system >About. 1809 is the latest Windows 10

1547211015990.png


Which gives you this

1547211049033.png


You can force the update if Microsoft isn't pushing it to you through Windows Update

https://www.microsoft.com/en-ca/software-download/windows10
 

DEDRICK

Member
It's still mostly encoding lag though @ 720p60 Very Fast

22:14:08.968: Video stopped, number of skipped frames due to encoding lag: 2782/9782 (28.4%)

What is your OBS CPU usage when recording/streaming your desktop in the Windows scene, one of yuor browsers sources could be hammering your CPU

You can test this by disabling them or creating a new scene collection and only creating a basic scene (Capture + Webcam) then playing a game. If you don't have issues then you know it is your sources causing this issue
 
Last edited:

zappy1000

New Member
I stayed at a steady 60fps on my window scene it only like to drop frames when I go and open a game.

OBS is using 18.3 to 17.1 % of my cpu and when I was in BFV last night to test my cpu usage overall was about 70%, but I used to use all 100% or 95% when streaming cod blackout with no issues about 2 months ago.
 

zappy1000

New Member
I updated and turn off game mode and it still dropped the frames even after lowering the encoder which I know I shouldn't have to do.
 

Attachments

  • 2019-01-11 15-20-06.txt
    14.1 KB · Views: 32
  • 2019-01-11 13-06-39.txt
    11 KB · Views: 30

zappy1000

New Member
I think these should updated logs with me not having the browser sources on them
 

Attachments

  • 2019-01-11 13-06-39.txt
    11 KB · Views: 31
  • 2019-01-11 15-20-06.txt
    20 KB · Views: 30

DEDRICK

Member
Something is very wrong here. Create a New Scene Collection, name it whatever. Don't worry, you old collection will still be there under the name Untitled.

1547244332507.png


Add a Single Game Capture, nothing more

1547244400435.png


Test your x264 settings playing BFV
 

zappy1000

New Member
New scene collection I only saw it drop to 59.04 fps for a sec when fully opening BFV.
 

Attachments

  • 2019-01-11 15-20-06.txt
    24.5 KB · Views: 32
  • 2019-01-11 15-20-06.txt
    24.9 KB · Views: 30

DEDRICK

Member
Even with these simple settings you are skipping, not much though.

So it is something with your old Scene Collection, its either goign to be the Webcam settings/resolution or your broswer sources.

You may need to delete your browser sources then re-add them


Code:
16:39:05.316: Switched to scene 'Scene'
16:39:05.323: Added scene collection 'test' (clean, test.json)
16:39:05.323: ------------------------------------------------
16:39:12.207: User added source 'Game Capture' (game_capture) to scene 'Scene'
16:39:30.132: ---------------------------------
16:39:30.132: [x264 encoder: 'simple_h264_stream'] preset: veryfast
16:39:30.132: [x264 encoder: 'simple_h264_stream'] settings:
16:39:30.132:     rate_control: CBR
16:39:30.132:     bitrate:      2650
16:39:30.132:     buffer size:  2650
16:39:30.132:     crf:          0
16:39:30.132:     fps_num:      60
16:39:30.132:     fps_den:      1
16:39:30.132:     width:        1280
16:39:30.132:     height:       720
16:39:30.132:     keyint:       120
16:39:30.132:
16:39:30.132: [x264 encoder: 'simple_h264_stream'] custom settings: scenecut=0
16:39:30.136: ---------------------------------
16:39:30.136: [FFmpeg aac encoder: 'simple_aac'] bitrate: 128, channels: 2, channel_layout: 3
16:39:30.136:
16:39:30.140: [rtmp stream: 'simple_stream'] Connecting to RTMP URL rtmp://live-atl.twitch.tv/app...
16:39:30.184: [rtmp stream: 'simple_stream'] Interface: Intel(R) Ethernet Connection (2) I219-V (ethernet, 1000 mbps)
16:39:31.007: [rtmp stream: 'simple_stream'] Connection to rtmp://live-atl.twitch.tv/app successful
16:39:31.011: ==== Streaming Start ===============================================
16:39:44.625: [game-capture: 'Game Capture'] attempting to hook process: bfv.exe
16:39:44.628: [game-capture: 'Game Capture'] using helper (compatibility hook)
16:39:44.677: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
16:39:46.641: [game-capture: 'Game Capture'] attempting to hook process: bfv.exe
16:39:46.653: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
16:39:46.656: [game-capture: 'Game Capture'] shared texture capture successful
16:40:12.990: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
16:40:12.993: [game-capture: 'Game Capture'] capture stopped
16:40:30.140: [game-capture: 'Game Capture'] attempting to hook process: bfv.exe
16:40:30.143: [game-capture: 'Game Capture'] using helper (compatibility hook)
16:40:30.169: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
16:40:33.157: [game-capture: 'Game Capture'] attempting to hook process: bfv.exe
16:40:33.168: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
16:40:33.173: [game-capture: 'Game Capture'] shared texture capture successful
16:41:06.256: [rtmp stream: 'simple_stream'] User stopped the stream
16:41:06.256: Output 'simple_stream': stopping
16:41:06.256: Output 'simple_stream': Total frames output: 5690
16:41:06.256: Output 'simple_stream': Total drawn frames: 5759 (5767 attempted)
16:41:06.256: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 8 (0.1%)
16:41:06.258: Video stopped, number of skipped frames due to encoding lag: 12/5710 (0.2%)
 

zappy1000

New Member
so I ran it without browser sources and it dropped some fps loading BFV but when I loaded league it was fine without browser sources I still had the camera on though.
 

Attachments

  • 2019-01-11 15-20-06.txt
    41.1 KB · Views: 45
  • 2019-01-11 19-41-22.txt
    9.8 KB · Views: 37
Top