Question / Help FPS Problems while steaming League of Legends

FCKYATHUNDER

New Member
Hi,

Days ago I was trying to do some stream on League of Legends, I have quite nice coumputer and still my fps drops and my screen spike laggs (micro laggs)

My config :

CPU: i7 860
Ram : 4 gb ddr3
VGA : Hd4890
Mboard : Gigabyte p55-ud5
OP : Windows 7 64bit

Can you guys gimme an avarage setup for this pc ? and any idea why my game micro laggs while streaming ?

Thanks
 

FerretBomb

Active Member
1: Don't use monitor capture. This is the most common problem for new (LoL) streamers. You need to use a Game Capture for the in-game executable, and a window capture for the pvp.net client (menu). The Scene Switcher plugin is especially helpful for that.

2: 4GB RAM is kind of low. This might be an issue, between OS overhead, running the game, and capturing/encoding video. We'd need to see a log to tell.

3: Video card is pretty (very) dated. It's a top-end card, but it's quite old. We'd need to see a log, but I'd be concerned about this as well.

As noname said, please post a log. There's a sticky at the top of the forum, and a link to it when creating a new thread... they really do help pinpoint problems quickly. :)
 

FCKYATHUNDER

New Member
Code:
13:02:48: Open Broadcaster Software v0.522b - 64bit ( ^ω^)
13:02:48: -------------------------------
13:02:48: CPU Name: Intel(R) Core(TM) i7 CPU         860  @ 2.80GHz
13:02:48: CPU Speed: 2870MHz
13:02:48: Physical Memory:  4091MB Total, 2772MB Free
13:02:48: stepping id: 5, model 14, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
13:02:48: monitor 1: pos={0, 0}, size={1920, 1080}
13:02:48: Windows Version: 6.1 Build 7601 S
13:02:48: Aero is Disabled
13:02:48: -------------------------------
13:02:48: OBS Modules:
13:02:48: Base Address     Module
13:02:48: 000000003F840000 OBS.exe
13:02:48: 00000000E63C0000 OBSApi.dll
13:02:48: 00000000F8340000 DShowPlugin.dll
13:02:48: 00000000F83D0000 GraphicsCapture.dll
13:02:48: 00000000FB440000 NoiseGate.dll
13:02:48: ------------------------------------------
13:02:48: Adapter 1
13:02:48:   Video Adapter: ATI Radeon HD 4800 Series
13:02:48:   Video Adapter Dedicated Video Memory: 1066405888
13:02:48:   Video Adapter Shared System Memory: 1876586496
13:02:48: =====Stream Start: 2013-07-31, 13:02:48===============================================
13:02:48:   Multithreaded optimizations: On
13:02:48:   Base resolution: 1920x1080
13:02:48:   Output resolution: 1920x1080
13:02:48: ------------------------------------------
13:02:48: Loading up D3D10...
13:02:48: Playback device Default
13:02:48: ------------------------------------------
13:02:48: Using desktop audio input: Hangszórók (Realtek High Definition Audio)
13:02:48: ------------------------------------------
13:02:48: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
13:02:48: ------------------------------------------
13:02:48: Audio Encoding: AAC
13:02:48:     bitrate: 128
13:02:48: Using Monitor Capture
13:02:48: ------------------------------------------
13:02:48: Video Encoding: x264
13:02:48:     fps: 40
13:02:48:     width: 1920, height: 1080
13:02:48:     preset: fast
13:02:48:     CBR: yes
13:02:48:     CFR: no
13:02:48:     max bitrate: 2000
13:02:48: ------------------------------------------
13:02:50: Total frames rendered: 90, number of frames that lagged: 3 (3.33%) (it's okay for some frames to lag)
13:02:51: =====Stream End: 2013-07-31, 13:02:51=================================================
13:02:52: =====Stream Start: 2013-07-31, 13:02:52===============================================
13:02:52:   Multithreaded optimizations: On
13:02:52:   Base resolution: 1920x1080
13:02:52:   Output resolution: 1920x1080
13:02:52: ------------------------------------------
13:02:52: Loading up D3D10...
13:02:52: Playback device Default
13:02:52: ------------------------------------------
13:02:52: Using desktop audio input: Hangszórók (Realtek High Definition Audio)
13:02:52: ------------------------------------------
13:02:52: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
13:02:52: ------------------------------------------
13:02:52: Audio Encoding: AAC
13:02:52:     bitrate: 128
13:02:52: Using Monitor Capture
13:02:52: ------------------------------------------
13:02:52: Video Encoding: x264
13:02:52:     fps: 40
13:02:52:     width: 1920, height: 1080
13:02:52:     preset: fast
13:02:52:     CBR: yes
13:02:52:     CFR: no
13:02:52:     max bitrate: 2000
13:02:52: ------------------------------------------
13:02:54: Using RTMP service: Twitch / Justin.tv
13:02:54:   Server selection: rtmp://live.justin.tv/app
13:02:57: SO_SNDBUF was at 8192
13:02:57: SO_SNDBUF is now 65536
13:04:28: Total frames rendered: 3389, number of frames that lagged: 474 (13.99%) (it's okay for some frames to lag)
13:04:28: RTMPPublisher::SocketLoop: Aborting due to bStopping
13:04:28: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
13:04:28: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
13:04:28: Number of times waited to send: 0, Waited for a total of 0 bytes
13:04:28: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
13:04:28: =====Stream End: 2013-07-31, 13:04:28=================================================
13:04:29: 
13:04:29: Profiler results:
13:04:29: 
13:04:29: ==============================================================
13:04:29: frame - [100%] [avg time: 17.108 ms] [avg calls per frame: 1] [children: 90.4%] [unaccounted: 9.62%]
13:04:29: | scene->Preprocess - [55.2%] [avg time: 9.438 ms] [avg calls per frame: 1]
13:04:29: | video encoding and uploading - [35.2%] [avg time: 6.024 ms] [avg calls per frame: 1] [children: 28.2%] [unaccounted: 7.04%]
13:04:29: | | CopyResource - [0.199%] [avg time: 0.034 ms] [avg calls per frame: 0]
13:04:29: | | conversion to 4:2:0 - [0.52%] [avg time: 0.089 ms] [avg calls per frame: 0]
13:04:29: | | call to encoder - [27.3%] [avg time: 4.671 ms] [avg calls per frame: 0]
13:04:29: | | sending stuff out - [0.146%] [avg time: 0.025 ms] [avg calls per frame: 0]
13:04:29: ==============================================================
13:04:29: 
13:04:29: Memory Leaks Were Detected.
13:04:29:
 

ThoNohT

Developer
- Yes, monitor capture is indeed one of the problems, don't use it in windows 7. In fact, there is a video guide linked right here: viewtopic.php?f=18&t=5719 that tells you how to use window/game capture for the launcher and game, and use scene switcher to automatically switch between those.

Other than that, streaming 1080p at 40 fps with preset fast is pretty insane. So:

- Please move that back to veryfast, like the program warned you about changing it.

- 2000 kbps is also rather low for this resolution. But with a downscale of 1.5 to 720p you should be pretty okay for that.

- 40 fps is not too big of an issue, but why not stick with 30? Also gives the encoder a bit extra time to do its work.
 

FCKYATHUNDER

New Member
i've been set up that screen switcher plugin still the pikes are up

new log :

09:48:45: Open Broadcaster Software v0.583b - 64bit ( ^ω^)
09:48:45: -------------------------------
09:48:45: CPU Name: Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz
09:48:45: CPU Speed: 2870MHz
09:48:45: Physical Memory: 4091MB Total, 1978MB Free
09:48:45: stepping id: 5, model 30, family 6, type 0, extmodel 0, extfamily 0, HTT 1, logical cores 8, total cores 4
09:48:45: monitor 1: pos={0, 0}, size={1920, 1080}
09:48:45: Windows Version: 6.1 Build 7601 S
09:48:45: Aero is Disabled
09:48:45: -------------------------------
09:48:45: OBS Modules:
09:48:45: Base Address Module
09:48:45: 000000003F320000 OBS.exe
09:48:45: 00000000E5520000 OBSApi.dll
09:48:45: 00000000F8330000 DShowPlugin.dll
09:48:45: 00000000F8230000 GraphicsCapture.dll
09:48:45: 00000000F8210000 NoiseGate.dll
09:48:45: 00000000F81F0000 PSVPlugin.dll
09:48:45: 00000000F81D0000 scenesw.dll
09:48:45: ------------------------------------------
09:48:45: Adapter 1
09:48:45: Video Adapter: ATI Radeon HD 4800 Series
09:48:45: Video Adapter Dedicated Video Memory: 1066405888
09:48:45: Video Adapter Shared System Memory: 1876586496
09:48:45: Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
09:48:45: =====Stream Start: 2013-11-04, 09:48:45===============================================
09:48:45: Multithreaded optimizations: Off
09:48:45: Base resolution: 1920x1080
09:48:45: Output resolution: 1920x1080
09:48:45: ------------------------------------------
09:48:45: Loading up D3D10 on ATI Radeon HD 4800 Series...
09:48:45: ------------------------------------------
09:48:45: Audio Format: 48000hz
09:48:45: Playback device Default
09:48:45: ------------------------------------------
09:48:45: Using desktop audio input: Hangszórók (Realtek High Definition Audio)
09:48:45: ------------------------------------------
09:48:45: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
09:48:45: ------------------------------------------
09:48:45: Audio Encoding: AAC
09:48:45: bitrate: 128
09:48:45: Using Window Capture
09:48:45: Scene buffering time set to 400
09:48:45: ------------------------------------------
09:48:45: Video Encoding: x264
09:48:45: fps: 30
09:48:45: width: 1920, height: 1080
09:48:45: preset: veryfast
09:48:45: profile: high
09:48:45: keyint: 60
09:48:45: CBR: yes
09:48:45: CFR: no
09:48:45: max bitrate: 2000
09:48:45: buffer size: 2000
09:48:45: ------------------------------------------
09:48:45: MMDeviceAudioSource: Frequency for device 'Hangszórók (Realtek High Definition Audio)' is 384000, samples per sec is 48000
09:48:46: MMDeviceAudioSource: Frequency for device 'Mikrofon (Realtek High Definition Audio)' is 352800, samples per sec is 44100
09:48:47: Using RTMP service: Twitch / Justin.tv
09:48:47: Server selection: rtmp://live.justin.tv/app
09:48:47: Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
09:48:48: Completed handshake with rtmp://live.justin.tv/app in 423 ms.
09:48:49: SO_SNDBUF was at 8192
09:48:49: SO_SNDBUF is now 65536
09:48:51: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 6925 / 272384)
09:48:51: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 89630 / 272384)
09:48:53: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 272384)
09:53:51: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
09:53:51: New Scene
09:53:51: Using graphics capture
09:53:58: SharedTexCapture hooked
10:10:57: GraphicsCaptureSource::NewCapture: eliminating old capture
10:10:57: SharedTexCapture hooked
10:17:13: RTMPPublisher::SocketLoop: Stalled for 2346 ms to write 272346 bytes (buffer: 0 / 272384), unstable connection?
10:17:19: RTMPPublisher::SocketLoop: Stalled for 6002 ms to write 271962 bytes (buffer: 0 / 272384), unstable connection?
10:17:21: RTMPPublisher::SocketLoop: Stalled for 2553 ms to write 270986 bytes (buffer: 0 / 272384), unstable connection?
10:17:23: RTMPPublisher::SocketLoop: Stalled for 1667 ms to write 272214 bytes (buffer: 0 / 272384), unstable connection?
10:17:26: RTMPPublisher::SocketLoop: Stalled for 1568 ms to write 272076 bytes (buffer: 0 / 272384), unstable connection?
10:17:27: RTMPPublisher::SocketLoop: Stalled for 1630 ms to write 268448 bytes (buffer: 0 / 272384), unstable connection?
10:17:34: RTMPPublisher::SocketLoop: Stalled for 4231 ms to write 270030 bytes (buffer: 0 / 272384), unstable connection?
10:17:37: RTMPPublisher::SocketLoop: Stalled for 2543 ms to write 268813 bytes (buffer: 0 / 272384), unstable connection?
10:17:41: RTMPPublisher::SocketLoop: Stalled for 4148 ms to write 268536 bytes (buffer: 0 / 272384), unstable connection?
10:17:43: RTMPPublisher::SocketLoop: Stalled for 1878 ms to write 271283 bytes (buffer: 0 / 272384), unstable connection?
10:18:28: RTMPPublisher::SocketLoop: Stalled for 3849 ms to write 270172 bytes (buffer: 0 / 272384), unstable connection?
10:18:34: RTMPPublisher::SocketLoop: Stalled for 6313 ms to write 270108 bytes (buffer: 0 / 272384), unstable connection?
10:18:42: RTMPPublisher::SocketLoop: Stalled for 7892 ms to write 269752 bytes (buffer: 0 / 272384), unstable connection?
10:18:47: RTMPPublisher::SocketLoop: Stalled for 4452 ms to write 270742 bytes (buffer: 0 / 272384), unstable connection?
10:18:50: RTMPPublisher::SocketLoop: Stalled for 3477 ms to write 269469 bytes (buffer: 0 / 272384), unstable connection?
10:18:53: RTMPPublisher::SocketLoop: Stalled for 2998 ms to write 272290 bytes (buffer: 0 / 272384), unstable connection?
10:18:55: RTMPPublisher::SocketLoop: Stalled for 2182 ms to write 270240 bytes (buffer: 0 / 272384), unstable connection?
10:18:57: RTMPPublisher::SocketLoop: Stalled for 2118 ms to write 272169 bytes (buffer: 0 / 272384), unstable connection?
10:19:01: RTMPPublisher::SocketLoop: Stalled for 2025 ms to write 269463 bytes (buffer: 0 / 272384), unstable connection?
10:19:06: RTMPPublisher::SocketLoop: Stalled for 2403 ms to write 272285 bytes (buffer: 0 / 272384), unstable connection?
10:19:08: RTMPPublisher::SocketLoop: Stalled for 2037 ms to write 269517 bytes (buffer: 0 / 272384), unstable connection?
10:19:10: RTMPPublisher::SocketLoop: Stalled for 2447 ms to write 271985 bytes (buffer: 0 / 272384), unstable connection?
10:19:13: RTMPPublisher::SocketLoop: Stalled for 2629 ms to write 268901 bytes (buffer: 0 / 272384), unstable connection?
10:19:15: RTMPPublisher::SocketLoop: Stalled for 1673 ms to write 271159 bytes (buffer: 0 / 272384), unstable connection?
10:26:45: Exit signal received, terminating capture
10:26:46: ++++++++++++++++++++++++++++++++++++++++++++++++++++++
10:26:46: New Scene
10:26:46: Using Window Capture
10:27:20: RTMPPublisher::SocketLoop: Stalled for 2334 ms to write 272089 bytes (buffer: 0 / 272384), unstable connection?
10:27:21: Total frames encoded: 69456, total frames duplicated: 2332 (3.36%)
10:27:21: Total frames rendered: 69296, number of late frames: 70 (0.10%) (it's okay for some frames to be late)
10:27:24: RTMPPublisher::SocketLoop: Stalled for 4646 ms to write 269821 bytes (buffer: 0 / 272384), unstable connection?
10:27:26: RTMPPublisher::SocketLoop: Stalled for 1656 ms to write 132406 bytes (buffer: 0 / 272384), unstable connection?
10:27:26: RTMPPublisher::SocketLoop: Graceful loop exit
10:27:29: Average send payload: 7253 bytes, average send interval: 27 ms
10:27:29: Number of times waited to send: 43, Waited for a total of 142709 bytes
10:27:29: Number of b-frames dropped: 967 (1.4%), Number of p-frames dropped: 1416 (2%), Total 2383 (3.4%)
10:27:29: Number of bytes sent: 602322209
10:27:29:
10:27:29: Profiler time results:
10:27:29:
10:27:29: ==============================================================
10:27:29: video thread frame - [100%] [avg time: 5.477 ms] [children: 94.8%] [unaccounted: 5.24%]
10:27:29: | scene->Preprocess - [35.7%] [avg time: 1.956 ms]
10:27:29: | GPU download and conversion - [59%] [avg time: 3.234 ms] [children: 58.5%] [unaccounted: 0.584%]
10:27:29: | | flush - [2.25%] [avg time: 0.123 ms]
10:27:29: | | CopyResource - [0.292%] [avg time: 0.016 ms]
10:27:29: | | conversion to 4:2:0 - [55.9%] [avg time: 3.063 ms] [children: 55.6%] [unaccounted: 0.365%]
10:27:29: | | | Convert444toNV12 - [55.6%] [avg time: 3.043 ms]
10:27:29: encoder thread frame - [100%] [avg time: 3.447 ms]
10:27:29: ==============================================================
10:27:29:
10:27:29:
10:27:29: Profiler CPU results:
10:27:29:
10:27:29: ==============================================================
10:27:29: video thread frame - [cpu time: avg 3.401 ms, total 235686 ms] [avg calls per frame: 1]
10:27:29: | scene->Preprocess - [cpu time: avg 0.404 ms, total 28064.6 ms] [avg calls per frame: 1]
10:27:29: | GPU download and conversion - [cpu time: avg 2.928 ms, total 202926 ms] [avg calls per frame: 1]
10:27:29: | | flush - [cpu time: avg 0.113 ms, total 7878.05 ms] [avg calls per frame: 1]
10:27:29: | | CopyResource - [cpu time: avg 0.008 ms, total 561.605 ms] [avg calls per frame: 1]
10:27:29: | | conversion to 4:2:0 - [cpu time: avg 2.797 ms, total 193800 ms] [avg calls per frame: 1]
10:27:29: | | | Convert444toNV12 - [cpu time: avg 2.782 ms, total 192802 ms] [avg calls per frame: 1]
10:27:29: encoder thread frame - [cpu time: avg 2.782 ms, total 193223 ms] [avg calls per frame: 1]
10:27:29: ==============================================================
10:27:29:
10:27:29: =====Stream End: 2013-11-04, 10:27:29=================================================


Last game capture log:
2013-11-04, 09:53:51: we're booting up:
09:53:51: D3D9 Present
09:53:51: DXGI Present
09:53:53: GL Present
09:53:53: (half life scientist) everything.. seems to be in order
09:53:57: D3D9EndScene called
09:53:57: D3DPRESENT_PARAMETERS {
09:53:57: BackBufferWidth: 1920
09:53:57: BackBufferHeight: 1080
09:53:57: BackBufferFormat: D3DFMT_X8R8G8B8
09:53:57: BackBufferCount: 1
09:53:57: MultiSampleType: D3DMULTISAMPLE_NONE
09:53:57: MultiSampleQuality: 0
09:53:57: SwapEffect: D3DSWAPEFFECT_DISCARD
09:53:57: hDeviceWindow: 263050
09:53:57: Windowed: false
09:53:57: EnableAutoDepthStencil: true
09:53:57: AutoDepthStencilFormat: D3DFMT_D24S8
09:53:57: Flags: D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL
09:53:57: FullScreen_RefreshRateInHz: 59
09:53:57: PresentationInterval: 2147483648
09:53:57: };
09:53:57: successfully set up d3d9 hooks
09:53:57: D3D9Present called
09:53:58: DoD3D9GPUHook: success
09:54:05: D3DSURFACE_DESC {
09:54:05: Format: D3DFMT_X8R8G8B8
09:54:05: Type: D3DRTYPE_SURFACE
09:54:05: Usage: D3DUSAGE_RENDERTARGET
09:54:05: Pool: D3DPOOL_DEFAULT
09:54:05: MultiSampleType: D3DMULTISAMPLE_NONE
09:54:05: MultiSampleQuality: 0
09:54:05: Width: 1920
09:54:05: Height: 1080
09:54:05: };
09:54:05: successfully capturing d3d9 frames via GPU
10:10:57: D3D9Reset called
10:10:57: ---------------------- Cleared D3D9 Capture ----------------------
10:10:57: successfully set up d3d9 hooks
10:10:57: D3D9EndScene called
10:10:57: D3D9Present called
10:10:57: DoD3D9GPUHook: success
10:10:57: D3DSURFACE_DESC {
10:10:57: Format: D3DFMT_X8R8G8B8
10:10:57: Type: D3DRTYPE_SURFACE
10:10:57: Usage: D3DUSAGE_RENDERTARGET
10:10:57: Pool: D3DPOOL_DEFAULT
10:10:57: MultiSampleType: D3DMULTISAMPLE_NONE
10:10:57: MultiSampleQuality: 0
10:10:57: Width: 1920
10:10:57: Height: 1080
10:10:57: };
10:10:57: successfully capturing d3d9 frames via GPU
 

ThoNohT

Developer
You are now using window capture, but you still have aero disabled. Window capture without aero performs horribly. Enable aero (it's a checkbox in settings "disable aero on startup").

Your connection isn't coping with the bitrate, you'll probably have to lower your bitrate. That, or try some other twitch servers. You seem to be on the default one. I believe you are in Europe? Select a european server then for the best connection.

Not related to lag:
Streaming full hd when lowering your bitrate might result in poor quality, consider enabling downscale.
 

alpinlol

Active Member
and you are still running at 1080p instead of as suggested 720p downscale it ... 1st gen i7 tend to have a few problems with 1080p in some cases
 

ThoNohT

Developer
Video settings has a downscale dropdown box. You can choose any of the factors there, try 1.5 (which will result in 720p).
 

FerretBomb

Active Member
Yes, that's the best way to do it. Leave the base resolution set at your monitor resolution, then use the dropdown box to downscale from there to 720p (1.5 downscale from 1080p).
 
Top