Question / Help Weird FPS thing

magicfannypack

New Member
I play and stream league of legends. If I start streaming before we get into an actual game I get jumpy fps drops on both the game and OBS, but if I stop streaming and start streaming while in game I get no fps drops on either and their at what they're locked to. Any reason why this happens, and how I can fix it?
 

magicfannypack

New Member
Code:
Open Broadcaster Software v0.47a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5 CPU         650  @ 3.20GHz
CPU Speed: 3200MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 2, model 5, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 2
Windows Version: 6.1 Build 7600 
Aero is Disabled
------------------------------------------
Adapter 1
  Video Adapter: ATI Radeon HD 5700 Series
  Video Adapter Dedicated Video Memory: 1059504128
  Video Adapter Shared System Memory: 3988287488
Using fixed low latency mode, factor 20
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1600x900
  Output resolution: 1600x900
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1600, height: 900
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 1500
    buffer size: 1500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-ord.justin.tv/app
bufferTime: 2205, outputRateWindowTime: 1000, dropThreshold: 2705
Total frames rendered: 3013, number of frames that lagged: 36 (1.19%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================
Using fixed low latency mode, factor 20
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1600x900
  Output resolution: 1600x900
------------------------------------------
Loading up D3D10...
Playback device Default
------------------------------------------
Using desktop audio input: Speakers (Realtek High Definition Audio)
------------------------------------------
Using auxilary audio input: Microphone (USB Audio Device)
------------------------------------------
Audio Encoding: AAC
    bitrate: 128
Using Monitor Capture
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1600, height: 900
    preset: veryfast
    CBR: no
    CFR: no
    max bitrate: 1500
    buffer size: 1500
    quality: 8
------------------------------------------
Using RTMP service: Twitch / Justin.tv
  Server selection: rtmp://live-ord.justin.tv/app
bufferTime: 2874, outputRateWindowTime: 1000, dropThreshold: 3374
Total frames rendered: 1138, number of frames that lagged: 156 (13.71%) (it's okay for some frames to lag)
RTMPPublisher::SocketLoop: Aborting due to loop exit
Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 17.92 ms] [avg calls per frame: 1] [children: 93.4%] [unaccounted: 6.59%]
| scene->Preprocess - [46.5%] [avg time: 8.326 ms] [avg calls per frame: 1]
| video encoding and uploading - [46.9%] [avg time: 8.413 ms] [avg calls per frame: 1] [children: 21.3%] [unaccounted: 25.7%]
| | CopyResource - [0.446%] [avg time: 0.08 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0725%] [avg time: 0.013 ms] [avg calls per frame: 0]
| | call to encoder - [20.6%] [avg time: 3.692 ms] [avg calls per frame: 0]
| | sending stuff out - [0.145%] [avg time: 0.026 ms] [avg calls per frame: 0]
==============================================================


That's on both runs they were both fairly short but it did the same thing as usual. 30 Down 5 Up for speeds.
 

hilalpro

Member
that's a fairly high resolution for your cpu on monitor capture.. you might wanna make another scene that contain just game capture of the game and switch to it every time the actual playing game starts.. make sure to choose the game window when using game capture not lol basic client.
 

magicfannypack

New Member
hilalpro said:
that's a fairly high resolution for your cpu on monitor capture.. you might wanna make another scene that contain just game capture of the game and switch to it every time the actual playing game starts.. make sure to choose the game window when using game capture not lol basic client.


Oh yeah I didn't do that in the log runs but I typically do it, and still get the same results.
 

magicfannypack

New Member
hilalpro said:
yeah your cpu will encode 1280x720 veryfast at 55 fps without the game.. can't imagine it doing 1600x600 30fps stock for game streaming..

http://www.anandtech.com/bench/Product/144?vs=701

obs haven't got affected by it that much but it's really annoying to play with frame lags

But Im still curious as to why I get no frame drops in either when I start streaming while being in-game versus the game being launched while streaming and it jumps around.
 

hilalpro

Member
it's a thread prioritization thing i think maybe the game make it's thread priority higher if it sense no cpu usage first.
 

magicfannypack

New Member
hilalpro said:
it's a thread prioritization thing i think maybe the game make it's thread priority higher if it sense no cpu usage first.

In that case would if I set the game to a higher priority will it give the same results?
 
Top