Question / Help Streaming Help

LtSmokin

New Member
I would like to stream some Dota2 games, but I'm having trouble with FPS on the stream. My in-game FPS is fine but when I tab into the game while streaming the stream only gets a frame or two a second. I have tried many combinations of Quality/BitRate and I always get the extremely low FPS on the stream.

PC Specs:

MOBO: Gigabyte GA-Z68xp-ud3
CPU: i5 3450
GPU: Nvidia GTX 285
RAM: 8GB 1600
Playing in 1920x1080
Windows 7
U: 3.63mbit D: 25.3mbit

What is causing the FPS issues with the stream?
What settings should I be using?
 

R1CH

Forum Admin
Developer
Try enabling vsync or capping your FPS in Dota2, it's possible it's using too much GPU and not leaving enough for OBS.
 

twwwwwaan

New Member
Quoted from reddit
"An important point to add to your guide: The game slowing down when you're alt-tabbed out is actually a feature of the Source engine, not a limitation. The console variable "engine_no_focus_sleep" determines how many milliseconds to sleep between each frame when you're not focused on the game. Setting it to 0 will remove the slowdown when you're alt tabbed on a different window. (I am not sure if this convar exists in TF2, but I would think it should.)"
 

zGrozemaG

New Member
twwwwwaan, i think LtSmokin is referring to tabbing into the game not out of it, and it's the stream that slows down, not the game. So R1CH's solution (decreasing the CPU usage of the game. so the streaming software could get more cycles) should be the right one in my opinion, but there can be many other bottlenecks here.
 

twwwwwaan

New Member
zGrozemaG said:
twwwwwaan, i think LtSmokin is referring to tabbing into the game not out of it, and it's the stream that slows down, not the game. So R1CH's solution (decreasing the CPU usage of the game. so the streaming software could get more cycles) should be the right one in my opinion, but there can be many other bottlenecks here.

Oh, yeah you're right. Oh well my bad.
 

LtSmokin

New Member
Here is the log without changing anything.
I have Vsync enabled in the dota2 client.

EDIT: "without changing anything" I did test at various resolutions but had issues with all of them.

Code:
Open Broadcaster Software v0.432a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
CPU Speed: 3109MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 285
  Video Adapeter Dedicated Video Memory: 1048248320
  Video Adapeter Shared System Memory: 3221114880
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 640x480
  Output resolution: 640x480
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
Using custom x264 settings: "vbvmaxrate=1400"
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 640, height: 480
    quality: 2
    preset: veryfast
    i444: no
    max bitrate: 1400
    buffer size: 1400
------------------------------------------
Total frames rendered: 1210, number of frames that lagged: 50 (4.13%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
Using custom x264 settings: "vbvmaxrate=1400"
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    quality: 2
    preset: veryfast
    i444: no
    max bitrate: 1400
    buffer size: 1400
------------------------------------------
Total frames rendered: 1148, number of frames that lagged: 746 (64.98%) (it's okay for some frames to lag)
=====Stream End=======================================================================
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
Using custom x264 settings: "vbvmaxrate=1400"
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    quality: 2
    preset: veryfast
    i444: no
    max bitrate: 1400
    buffer size: 1400
------------------------------------------
Total frames rendered: 467, number of frames that lagged: 463 (99.14%) (it's okay for some frames to lag)
=====Stream End=======================================================================
Send Buffer Size: 4096
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1280x720
  Output resolution: 1280x720
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
Using custom x264 settings: "vbvmaxrate=1400"
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1280, height: 720
    quality: 2
    preset: veryfast
    i444: no
    max bitrate: 1400
    buffer size: 1400
------------------------------------------
Total frames rendered: 2077, number of frames that lagged: 1115 (53.68%) (it's okay for some frames to lag)
Number of b-frames dropped: 0, Number of p-frames dropped: 0
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 43 ms] [avg calls per frame: 1] [children: 99.4%] [unaccounted: 0.647%]
| scene->Preprocess - [77.2%] [avg time: 33.195 ms] [avg calls per frame: 1]
| video encoding and uploading - [22.2%] [avg time: 9.527 ms] [avg calls per frame: 1] [children: 22.1%] [unaccounted: 0.0302%]
| | CopyResource - [19.3%] [avg time: 8.297 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.0116%] [avg time: 0.005 ms] [avg calls per frame: 0]
| | call to encoder - [2.82%] [avg time: 1.212 ms] [avg calls per frame: 0]
==============================================================
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Sorry it took me so long to respond -- hm, your frame time is way too high. Wow, I don't know how some of these threads slip by me. 43ms average means that you can only get around 23fps max. I'm not sure if it's caused by the GPU or what -- I would recommend trying the new game capture that came out as well in the more recent versions.
 

LtSmokin

New Member
Attempting to use the game capture on the latest version; when I hit Start Stream or Preview Stream it causes dota.exe to crash. Anybody have solutions? Is it because I have the client installed on a separate drive?

EDIT: Actually tested with chrome.exe and that crashed aswell...
 

LtSmokin

New Member
That fixed the crashing issues. Thanks.

Here's the latest logs. FPS was good in main menu / switching menus but once I spectated a game the frames dropped to single digits again.

Code:
Open Broadcaster Software v0.448a - 32bit (´・ω・`)
-------------------------------
CPU Name: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
CPU Speed: 3109MHz
Physical Memory:  4095MB Total, 4095MB Free
stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
------------------------------------------
Adapter 1
  Video Adapter: NVIDIA GeForce GTX 285
  Video Adapeter Dedicated Video Memory: 1048248320
  Video Adapeter Shared System Memory: 3221114880
------------------------------------------
Adapter 2
  Video Adapter: Intel(R) HD Graphics
  Video Adapeter Dedicated Video Memory: 134217728
  Video Adapeter Shared System Memory: 1711276032
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
Using custom x264 settings: "vbvmaxrate=1400"
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    quality: 6
    preset: veryfast
    i444: no
    max bitrate: 1400
    buffer size: 1400
------------------------------------------
using shared texture capture
Total frames rendered: 62, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
=====Stream End=======================================================================
Send Buffer Size: 4096
=====Stream Start=====================================================================
  Multithreaded optimizations: On
  Base resolution: 1920x1080
  Output resolution: 1920x1080
------------------------------------------
Loading up D3D10...
------------------------------------------
Audio Encoding: AAC
    bitrate: 64
Using custom x264 settings: "vbvmaxrate=1400"
------------------------------------------
Video Encoding: x264
    fps: 30
    width: 1920, height: 1080
    quality: 6
    preset: veryfast
    i444: no
    max bitrate: 1400
    buffer size: 1400
------------------------------------------
using shared texture capture
Total frames rendered: 892, number of frames that lagged: 268 (30.04%) (it's okay for some frames to lag)
Number of b-frames dropped: 5, Number of p-frames dropped: 0
=====Stream End=======================================================================

Profiler results:

==============================================================
frame - [100%] [avg time: 39.054 ms] [avg calls per frame: 1] [children: 98.1%] [unaccounted: 1.94%]
| scene->Preprocess - [0.00256%] [avg time: 0.001 ms] [avg calls per frame: 1]
| video encoding and uploading - [98.1%] [avg time: 38.297 ms] [avg calls per frame: 1] [children: 97.7%] [unaccounted: 0.364%]
| | CopyResource - [91%] [avg time: 35.555 ms] [avg calls per frame: 0]
| | conversion to 4:2:0 - [0.125%] [avg time: 0.049 ms] [avg calls per frame: 0]
| | call to encoder - [6.53%] [avg time: 2.551 ms] [avg calls per frame: 0]
==============================================================

Is it my ping thats the issue?
 
Top