Question / Help Bad Lag spike and FPS Drops

BRadmang

New Member
So i just started using OBS hearing all the great things about and im having trouble with lag spiking to about 300ms in games like Dota 2 and CSGO. Ive been using xsplit and im usually around 20-30ms when streaming and i have slight fps lag but nothing noticeable. When i start up OBS the lag spikes as mentioned before and my frams drop down to like 4-8fps average. i have 6.81 mbps down and 1.02 up (Not the perfect rate but i can def stream alright).

Here are the logs from the test stream.

Code:
Open Broadcaster Software v0.51b - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM)2 Quad  CPU   Q8200  @ 2.33GHz
CPU Speed: 2333MHz
Physical Memory:  4094MB Total, 2512MB Free
stepping id: 7, model 7, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 4, total cores 4
monitor 1: pos={0, 0}, size={1920, 1200}
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 260
  Video Adapter Dedicated Video Memory: 919994368
  Video Adapter Shared System Memory: 1878257664
=====Stream Start: 2013-04-30, 19:44:09===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1200
  Output resolution: 1920x1200
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Line In (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using graphics capture
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1200
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 850
    buffer size: 510
    quality: 7
------------------------------------------
Total frames rendered: 150, number of frames that lagged: 139 (92.67%) (it's okay for some frames to lag)
=====Stream End: 2013-04-30, 19:44:16=================================================
=====Stream Start: 2013-04-30, 19:44:49===============================================
  Multithreaded optimizations: On
  Base resolution: 1920x1200
  Output resolution: 1920x1200
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Line In (Realtek High Definition Audio)
------------------------------------------
Audio Encoding: AAC
    bitrate: 96
Using graphics capture
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1200
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 850
    buffer size: 510
    quality: 7
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-jfk.justin.tv/app
SO_SNDBUF was at 8192
SO_SNDBUF is now 65536
SharedTexCapture hooked
Total frames rendered: 2374, number of frames that lagged: 2361 (99.45%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of times waited to send: 0, Waited for a total of 0 bytes
Number of b-frames dropped: 2 (0.089%), Number of p-frames dropped: 0 (0%), Total 2 (0.089%)
=====Stream End: 2013-04-30, 19:47:42=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 70.557 ms] [avg calls per frame: 1] [children: 98.6%] [unaccounted: 1.38%]
| scene->Preprocess - [44.8%] [avg time: 31.602 ms] [avg calls per frame: 1]
| video encoding and uploading - [53.8%] [avg time: 37.983 ms] [avg calls per frame: 1] [children: 53.8%] [unaccounted: 0.0808%]
| | CopyResource - [37.6%] [avg time: 26.515 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.719%] [avg time: 0.507 ms] [avg calls per frame: 0]
| | call to encoder - [15.1%] [avg time: 10.655 ms] [avg calls per frame: 0]
| | sending stuff out - [0.353%] [avg time: 0.249 ms] [avg calls per frame: 0]
==============================================================
 
Thats a pretty low upload but still doable, just the quality wont be great. im not sure about your issue honestly but one thing you should change is put the buffer as more than the bit. not less
 

hilalpro

Member
Downscale to 480p and move game capture to a separate scene and you might also want to lower the game graphics a bit.
 
Top