Bug Report In game lag/slight FPS drops

mcave3121

New Member
Hello everybody, first off I would like to say that I an new to OBS and streaming in general. I am also not the most tech savvy person in the world so if I don't understand something or ask something stupid I apologize. I have been attempting for a while now to provide a good quality stream to twitch tv with no avail. The two games I am mainly looking to stream are League of Legends and World of Warcraft. The only issue im having is with in game Lag/Slight FPS drops. The lag seems to start when program is opened. I don't usually drop below 55FPS while streaming either game, which may not seem like much, but to me the lag and constant studdering is rather annoying and almost unbearable compared to when i'm not streaming. The preview pane and stream itself seem to have no problems atall.

-----------------------------------------------------------------------------------------------------------------------------------------------

Things I have tried to help with lag with no success:
-I usually stream with music (Spotify/Pandora) but have tried without
-Aero disabled (I have set to disable at start up)
-Stream at a lower resolution (Have tried as low as 420p)
-Usually capturing in stream capture but have also tried game source (capture) with no noticeable change
-Removed/ and or made preview pane smaller
-Lowering Quality Balance
-Lowering game resolution to same as stream res (1280x720).. (2x ATI Radeon HD 6850 crossfire enabled in CCC). When NOT streaming can only play WoW @1920x1080 @60FPS on good settings once I go past that my fps start to drop
-Tried 32-bit/64-bit and new test client
-Lowering captured FPS to 25
-Usually play games with V-Sync Enabled and in Windowed (borderless)
-If it helps atall I also have this same issue with X-split which is making me believe that my computer can't handle streaming

-----------------------------------------------------------------------------------------------------------------------------------------------

20+MB DL - 5MB UL

Stream preview:

http://www.twitch.tv/tokemonkey21/b/385840340
*@6:43 I was moving screen back and forth and seeing some kind of what looks like screen tearing or just possibly lag in game
-----------------------------------------------------------------------------------------------------------------------------------------------

Log:

Code:
Open Broadcaster Software v0.472b - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory:  8174MB Total, 5682MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: AMD Radeon HD 6800 Series
  Video Adapter Dedicated Video Memory: 2118565888
  Video Adapter Shared System Memory: 4017438720
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (USB PnP Sound Device)
------------------------------------------
Using auxilary audio input: Microphone (USB PnP Sound Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4500
    buffer size: 4500
    quality: 10
------------------------------------------
Total frames rendered: 166, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
x264: frame I:1     Avg QP:20.47  size: 84465
x264: frame P:31    Avg QP:18.56  size:   206
x264: frame B:90    Avg QP:26.60  size:    50
x264: consecutive B-frames:  0.8%  0.0%  0.0% 99.2%
x264: mb I  I16..4: 37.3% 13.1% 49.7%
x264: mb P  I16..4:  0.2%  0.0%  0.0%  P16..4:  0.9%  0.1%  0.0%  0.0%  0.0%    skip:98.9%
x264: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.0%  0.0%  0.0%  direct: 0.2%  skip:99.8%  L0:61.1% L1:38.3% BI: 0.7%
x264: 8x8 transform intra:12.6% inter:32.8%
x264: coded y,uvDC,uvAC intra: 61.9% 53.3% 38.4% inter: 0.0% 0.3% 0.0%
x264: i16 v,h,dc,p: 58% 33%  7%  2%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 32% 18%  5%  6%  5%  6%  4%  8%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 33% 11%  5%  6%  6%  6%  4%  7%
x264: i8c dc,h,v,p: 44% 35% 17%  4%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:185.34
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (USB PnP Sound Device)
------------------------------------------
Using auxilary audio input: Microphone (USB PnP Sound Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264: profile High, level 3.1
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 4500
    buffer size: 4500
    quality: 10
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-jfk.justin.tv/app
bufferTime: 2074, outputRateWindowTime: 1000, dropThreshold: 2574
Total frames rendered: 14844, number of frames that lagged: 1 (0.01%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
x264: frame I:63    Avg QP:18.10  size:133780
x264: frame P:4723  Avg QP:21.55  size: 11454
x264: frame B:10014 Avg QP:27.38  size:  2621
x264: consecutive B-frames:  9.1%  1.1%  2.5% 87.3%
x264: mb I  I16..4: 14.3% 14.6% 71.1%
x264: mb P  I16..4:  1.5%  1.9%  1.1%  P16..4: 19.6%  5.8%  3.4%  0.0%  0.0%    skip:66.7%
x264: mb B  I16..4:  0.1%  0.0%  0.1%  B16..8:  1.9%  1.2%  0.6%  direct: 1.0%  skip:95.3%  L0:33.7% L1:43.6% BI:22.7%
x264: 8x8 transform intra:34.6% inter:29.8%
x264: coded y,uvDC,uvAC intra: 74.5% 71.5% 42.8% inter: 4.8% 4.3% 1.3%
x264: i16 v,h,dc,p: 28% 29% 35%  9%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 15% 30%  8%  6%  6%  7%  6% 10%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 21% 18%  9%  8%  7%  7%  7%  9%
x264: i8c dc,h,v,p: 52% 25% 16%  7%
x264: Weighted P-Frames: Y:0.0% UV:0.0%
x264: kb/s:1420.64
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 10.835 ms] [avg calls per frame: 1] [children: 97.4%] [unaccounted: 2.57%]
| scene->Preprocess - [58.9%] [avg time: 6.377 ms] [avg calls per frame: 1]
| video encoding and uploading - [38.6%] [avg time: 4.18 ms] [avg calls per frame: 1] [children: 10.3%] [unaccounted: 28.3%]
| | CopyResource - [0.157%] [avg time: 0.017 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0185%] [avg time: 0.002 ms] [avg calls per frame: 0]
| | call to encoder - [9.94%] [avg time: 1.077 ms] [avg calls per frame: 0]
| | sending stuff out - [0.185%] [avg time: 0.02 ms] [avg calls per frame: 0]
==============================================================
 

dodgepong

Administrator
Community Helper
That is much too high a bit rate to be streaming at. Not only is it overkill for 720p on a low-motion game like LoL, but Twitch considers it an abuse of their system to stream at that high of a bit rate. Lower your bit rate to a maximum of 3500. I'm not sure if that will help with performance, but it might.

You might consider overclocking your CPU to get more performance. Streaming is extremely CPU-bound, so better CPU performance will help a lot.

Game capture might help more while in game...I know you said you tried it already, but it is better than Monitor capture, so it might make a little difference.

In the end, you are coming to face the problem that causes many people to get a second computer to stream from. It's just a fact of life that encoding video in real-time is very hard on your CPU.

You can try lowering your preset to superfast or ultrafast, but that will make the stream look a lot worse.
 

mcave3121

New Member
Thank you. I appreciate your speedy response and suggestions :) . I was completely unaware that it was too high. I went ahead and decreased the bitrate to 3500. I didn't really see any performance difference or change in stream. After that I went ahead and overclocked the cpu to 4.4ghz. It seems to be running stable and there is deffinately a difference. There is still a little bit of lag, but its much better. I also tried messing around with game capture but I didnt see much of a difference. And alot of the time I preview stream and just get a black screen. I assume 2 pc's is the best way to go about it but right now I cant afford another rig. If you know of any other things that could help me maximize my experience without having to buy another gaming rig I would appreciate any input atall. Possibly adding a ssd. Or even using a capture card to take some of the load off. Maybe something on the lines of http://www.amazon.com/gp/aw/d/B007UXJ6L ... -7&pi=SL75 .. Im not sure if you or anyone else reading this has had any similar experiences or have heard anything possitive about it or any other capture devices.
 

Krazy

Town drunk
You may want to give the latest test build a try as well. It contains numerous fixes and improvements. I've noticed my streams feel smoother and CPU usage decreased a noticeable amount.
 

mcave3121

New Member
Well. I have no idea what happened but in an attempt to overclock my CPU (with little experience) I messed up windows. I had to do a complete reformat. After getting it back and completely reinstalling everything the lag has seemed to magically disappear? or atleast got better



-----------------------------------------------------------------------------------------------------------------------------------------------
New Log :

Open Broadcaster Software v0.48.014b (test build) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory: 8174MB Total, 5966MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: AMD Radeon HD 6800 Series
Video Adapter Dedicated Video Memory: 2118565888
Video Adapter Shared System Memory: 4017446912
=====Stream Start: 2013-04-14, 02:41:12===============================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (USB PnP Sound Device)
------------------------------------------
Using auxilary audio input: Microphone (USB PnP Sound Device)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
------------------------------------------
device: Logitech HD Pro Webcam C920,
device id \\?\usb#vid_046d&pid_082d&mi_00#7&384dfe9f&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
audio device: Microphone (USB PnP Sound Devic,
audio device id (null),

Using directshow input
Using graphics capture
Using graphics capture
Using Monitor Capture
------------------------------------------
Video Encoding: x264
fps: 60
width: 1280, height: 720
preset: veryfast
CBR: no
CFR: no
max bitrate: 3000
buffer size: 3000
quality: 8
------------------------------------------
Total frames rendered: 34634, number of frames that lagged: 7 (0.02%) (it's okay for some frames to lag)
Total duplicated frames: 19 (0.05%)
=====Stream End: 2013-04-14, 02:50:49=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 1.946 ms] [avg calls per frame: 1] [children: 93.8%] [unaccounted: 6.17%]
| scene->Preprocess - [32.1%] [avg time: 0.625 ms] [avg calls per frame: 1]
| video encoding and uploading - [61.7%] [avg time: 1.201 ms] [avg calls per frame: 1] [children: 60.2%] [unaccounted: 1.54%]
| | CopyResource - [1.23%] [avg time: 0.024 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.154%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [58.7%] [avg time: 1.143 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0514%] [avg time: 0.001 ms] [avg calls per frame: 0]
==============================================================
 

FancySocks

New Member
Well. I have no idea what happened but in an attempt to overclock my CPU (with little experience) I messed up windows. I had to do a complete reformat. After getting it back and completely reinstalling everything the lag has seemed to magically disappear? or atleast got better



-----------------------------------------------------------------------------------------------------------------------------------------------
New Log :

Open Broadcaster Software v0.48.014b (test build) - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
CPU Speed: 3392MHz
Physical Memory: 8174MB Total, 5966MB Free
stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
monitor 1: pos={0, 0}, size={1920, 1080}
monitor 2: pos={1920, 0}, size={1920, 1080}
Windows Version: 6.1 Build 7601 S
Aero is Disabled
------------------------------------------
Adapter 1
Video Adapter: AMD Radeon HD 6800 Series
Video Adapter Dedicated Video Memory: 2118565888
Video Adapter Shared System Memory: 4017446912
=====Stream Start: 2013-04-14, 02:41:12===============================================
Multithreaded optimizations: On
Base resolution: 1920x1080
Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (USB PnP Sound Device)
------------------------------------------
Using auxilary audio input: Microphone (USB PnP Sound Device)
------------------------------------------
Audio Encoding: AAC
bitrate: 128
------------------------------------------
device: Logitech HD Pro Webcam C920,
device id \\?\usb#vid_046d&pid_082d&mi_00#7&384dfe9f&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083},
chosen type: I420, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000, fourCC: 'I420'
audio device: Microphone (USB PnP Sound Devic,
audio device id (null),

Using directshow input
Using graphics capture
Using graphics capture
Using Monitor Capture
------------------------------------------
Video Encoding: x264
fps: 60
width: 1280, height: 720
preset: veryfast
CBR: no
CFR: no
max bitrate: 3000
buffer size: 3000
quality: 8
------------------------------------------
Total frames rendered: 34634, number of frames that lagged: 7 (0.02%) (it's okay for some frames to lag)
Total duplicated frames: 19 (0.05%)
=====Stream End: 2013-04-14, 02:50:49=================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 1.946 ms] [avg calls per frame: 1] [children: 93.8%] [unaccounted: 6.17%]
| scene->Preprocess - [32.1%] [avg time: 0.625 ms] [avg calls per frame: 1]
| video encoding and uploading - [61.7%] [avg time: 1.201 ms] [avg calls per frame: 1] [children: 60.2%] [unaccounted: 1.54%]
| | CopyResource - [1.23%] [avg time: 0.024 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.154%] [avg time: 0.003 ms] [avg calls per frame: 0]
| | call to encoder - [58.7%] [avg time: 1.143 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0514%] [avg time: 0.001 ms] [avg calls per frame: 0]
==============================================================
Do you know why its fixed? I got the same problem
 
Top