Question / Help FPS spikes when streaming

Exaltedpenguinz

New Member
Hey, I have had this issue ever since I had OBS. When I stream every other game except Minecraft my FPS goes fine but then spikes every 5 seconds or so. It has gone to the point where I cannot even stream the games I want to stream. I tried lowering the quality in both OBS and my games, no luck. If anyone could help that would be much appreciated. Here is a log of when I tried streaming Black ops II
Code:
Open Broadcaster Software v0.472b - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
CPU Speed: 2195MHz
Physical Memory:  8098MB Total, 3056MB 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={1366, 768}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GT 525M    
  Video Adapter Dedicated Video Memory: 1026097152
  Video Adapter Shared System Memory: 3220779008
------------------------------------------
Adapter 2
  Video Adapter: NVIDIA GeForce GT 525M    
  Video Adapter Dedicated Video Memory: 1026097152
  Video Adapter Shared System Memory: 3220779008
=====Stream Start=====================================================================
  Multithreaded optimizations: Off
  Base resolution: 1366x768
  Output resolution: 1364x768
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers / Headphones (IDT High Definition Audio CODEC)
------------------------------------------
Using auxilary audio input: Microphone / Line In (IDT High Definition Audio CODEC)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics capture
x264: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 AVX
x264: profile High, level 3.2
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1364, height: 768
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 3000
    buffer size: 3000
    quality: 8
------------------------------------------
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
SharedTexCapture hooked
Total frames rendered: 5620, number of frames that lagged: 81 (1.44%) (it's okay for some frames to lag)
x264: frame I:35    Avg QP:19.78  size: 55223
x264: frame P:1669  Avg QP:23.51  size:  6558
x264: frame B:3879  Avg QP:25.41  size:   472
x264: consecutive B-frames:  6.0%  3.6%  1.1% 89.3%
x264: mb I  I16..4: 38.3% 30.0% 31.6%
x264: mb P  I16..4:  3.8%  3.0%  0.5%  P16..4: 13.2%  4.9%  1.8%  0.0%  0.0%    skip:72.9%
x264: mb B  I16..4:  0.1%  0.1%  0.0%  B16..8:  2.4%  0.5%  0.0%  direct: 0.4%  skip:96.5%  L0:35.9% L1:53.3% BI:10.8%
x264: 8x8 transform intra:38.6% inter:29.8%
x264: coded y,uvDC,uvAC intra: 41.8% 15.9% 3.3% inter: 1.9% 1.3% 0.1%
x264: i16 v,h,dc,p: 44% 31% 19%  6%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 23% 32%  4%  5%  5%  5%  3%  6%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 27% 15%  5%  7%  6%  7%  4%  6%
x264: i8c dc,h,v,p: 77% 13%  9%  1%
x264: Weighted P-Frames: Y:5.8% UV:3.4%
x264: kb/s:588.57
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 9.639 ms] [avg calls per frame: 1] [children: 65.8%] [unaccounted: 34.2%]
| scene->Preprocess - [0.0622%] [avg time: 0.006 ms] [avg calls per frame: 1]
| video encoding and uploading - [65.7%] [avg time: 6.332 ms] [avg calls per frame: 1] [children: 46.6%] [unaccounted: 19.1%]
| | CopyResource - [0.0519%] [avg time: 0.005 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [20.7%] [avg time: 1.991 ms] [avg calls per frame: 0]
| | call to encoder - [25.8%] [avg time: 2.489 ms] [avg calls per frame: 0]
| | sending stuff out - [0.0311%] [avg time: 0.003 ms] [avg calls per frame: 0]
==============================================================
 

hilalpro

Member
post a log from a streaming session, whats your upload speed btw ?

renable "Multithreaded optimizations" if that cause more strain on your game's fps try downscaling or at least lower the fps to 25.
 

Exaltedpenguinz

New Member
Hey, I just did a session of 3 different games. Black Ops 2, Chivalry Medieval Warfare, and Mass Effect. All of them had FPS spikes. The FPS spikes are in the game not just the stream. My upload speed right before streaming was 4.04Mb/s. I only dropped 1 frame while streaming all of these games in this session. Here is the log:
Code:
Open Broadcaster Software v0.472b - 64bit ( ^ω^)
-------------------------------
CPU Name: Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz
CPU Speed: 2195MHz
Physical Memory:  8098MB Total, 4245MB 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={1366, 768}
Windows Version: 6.1 Build 7601 S
Aero is Enabled
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GT 525M    
  Video Adapter Dedicated Video Memory: 1026097152
  Video Adapter Shared System Memory: 3220779008
------------------------------------------
Adapter 2
  Video Adapter: NVIDIA GeForce GT 525M    
  Video Adapter Dedicated Video Memory: 1026097152
  Video Adapter Shared System Memory: 3220779008
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers / Headphones (IDT High Definition Audio CODEC)
------------------------------------------
Using auxilary audio input: Microphone / Line In (IDT High Definition Audio CODEC)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using graphics 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: 3000
    buffer size: 3000
    quality: 10
------------------------------------------
SharedTexCapture hooked
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-3c.justin.tv/app
bufferTime: 1454, outputRateWindowTime: 1000, dropThreshold: 1954
RTMPPublisher::BufferedSend: Socket buffer is full (399446 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (399446 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (399207 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Increasing socket send buffer to ISB 131072
RTMPPublisher::BufferedSend: Socket buffer is full (399207 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (400125 / 400384 bytes), waiting to send 376 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (400125 / 400384 bytes), waiting to send 376 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (400169 / 400384 bytes), waiting to send 433 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (400169 / 400384 bytes), waiting to send 433 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (397174 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (397174 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (397984 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (397984 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (400296 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (400296 / 400384 bytes), waiting to send 4104 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (397788 / 400384 bytes), waiting to send 4097 bytes
RTMPPublisher::BufferedSend: Socket buffer is full (397788 / 400384 bytes), waiting to send 4097 bytes
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
SharedTexCapture hooked
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using bitmap image
++++++++++++++++++++++++++++++++++++++++++++++++++++++
  New Scene
Using graphics capture
SharedTexCapture hooked
Total frames rendered: 67786, number of frames that lagged: 1566 (2.31%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to bStopping
Number of b-frames dropped: 1 (0.0015%), Number of p-frames dropped: 0 (0%), Total 1 (0.0015%)
x264: frame I:874   Avg QP:24.85  size: 49269
x264: frame P:40962 Avg QP:26.53  size: 12238
x264: frame B:25907 Avg QP:25.67  size:  2084
x264: consecutive B-frames: 42.4% 18.4%  4.1% 35.1%
x264: mb I  I16..4: 19.3% 53.6% 27.1%
x264: mb P  I16..4:  7.0% 11.3%  1.0%  P16..4: 22.7% 10.2%  3.6%  0.0%  0.0%    skip:44.2%
x264: mb B  I16..4:  1.0%  1.3%  0.0%  B16..8:  8.8%  2.6%  0.2%  direct: 1.6%  skip:84.5%  L0:40.0% L1:51.0% BI: 9.0%
x264: 8x8 transform intra:57.9% inter:38.7%
x264: coded y,uvDC,uvAC intra: 47.4% 27.3% 5.3% inter: 8.8% 5.6% 0.3%
x264: i16 v,h,dc,p: 34% 32% 23% 10%
x264: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 26% 26%  5%  5%  4%  7%  4%  7%
x264: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 26% 17%  6%  6%  6%  8%  5%  7%
x264: i8c dc,h,v,p: 64% 19% 14%  2%
x264: Weighted P-Frames: Y:4.0% UV:2.3%
x264: kb/s:2070.56
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 11.391 ms] [avg calls per frame: 1] [children: 90.8%] [unaccounted: 9.17%]
| scene->Preprocess - [0.0439%] [avg time: 0.005 ms] [avg calls per frame: 1]
| video encoding and uploading - [90.8%] [avg time: 10.341 ms] [avg calls per frame: 1] [children: 20.6%] [unaccounted: 70.2%]
| | CopyResource - [0.307%] [avg time: 0.035 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0439%] [avg time: 0.005 ms] [avg calls per frame: 0]
| | call to encoder - [20%] [avg time: 2.274 ms] [avg calls per frame: 0]
| | sending stuff out - [0.255%] [avg time: 0.029 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
From your logs this appears to be some GPU strain.. hmm, I may have to put in an option for triple buffering if it's what I think it is
 
Top