Question / Help Stream as well as Game lagging - wrong settings?

Traq

New Member
Hey guys,

I was always able to stream perfectly fine Guild Wars 2 (MMORPG) - until I upgarded my monitor and went to the Windows resolution 2560x1440. Since then I have been trying everything to get the stream running - but I have a constant cpu usage of 100% and everything is stuttering.
Without stream I'm usually around 80-140fps.
(Formerly I was running 1080p as windows resolution and also streamed in 1080p/30fps perfectly fine)

I even deleted all settings and went with this:
"My OBS Troubleshooting and Startup Guide" by Kharay

Still no improvement

Pls find my log here:
21:18:21: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
21:18:21: -------------------------------
21:18:21: CPU Name: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
21:18:21: CPU Speed: 3093MHz
21:18:21: Physical Memory: 4095MB Total, 3470MB Free
21:18:21: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
21:18:21: monitor 1: pos={0, 0}, size={2560, 1440}
21:18:21: Windows Version: 6.1 Build 7601 S
21:18:21: Aero is Enabled
21:18:21: -------------------------------
21:18:21: OBS Modules:
21:18:21: Base Address Module
21:18:21: 00150000 OBS.exe
21:18:21: 5B580000 OBSApi.dll
21:18:21: 66DF0000 DShowPlugin.dll
21:18:21: 65910000 GraphicsCapture.dll
21:18:21: 6A7C0000 NoiseGate.dll
21:18:21: 5B850000 PSVPlugin.dll
21:18:21: ------------------------------------------
21:18:21: Adapter 1
21:18:21: Video Adapter: AMD Radeon HD 7800 Series
21:18:21: Video Adapter Dedicated Video Memory: 2127765504
21:18:21: Video Adapter Shared System Memory: 2167136256
21:18:21: ------------------------------------------
21:18:21: Adapter 2
21:18:21: Video Adapter: Intel(R) HD Graphics
21:18:21: Video Adapter Dedicated Video Memory: 67108864
21:18:21: Video Adapter Shared System Memory: 1711276032
21:18:21: =====Stream Start: 2013-07-31, 21:18:21===============================================
21:18:21: Multithreaded optimizations: On
21:18:21: Base resolution: 2560x1440
21:18:21: Output resolution: 2560x1440
21:18:21: ------------------------------------------
21:18:21: Loading up D3D10...
21:18:21: Playback device Default
21:18:21: ------------------------------------------
21:18:21: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
21:18:21: ------------------------------------------
21:18:21: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
21:18:21: ------------------------------------------
21:18:21: Audio Encoding: AAC
21:18:21: bitrate: 128
21:18:21: ------------------------------------------
21:18:21: Video Encoding: x264
21:18:21: fps: 30
21:18:21: width: 2560, height: 1440
21:18:21: preset: veryfast
21:18:21: CBR: yes
21:18:21: CFR: no
21:18:21: max bitrate: 1000
21:18:21: ------------------------------------------
21:18:23: Total frames rendered: 70, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
21:18:23: =====Stream End: 2013-07-31, 21:18:23=================================================
21:19:05: =====Stream Start: 2013-07-31, 21:19:05===============================================
21:19:05: Multithreaded optimizations: On
21:19:05: Base resolution: 2560x1440
21:19:05: Output resolution: 2560x1440
21:19:05: ------------------------------------------
21:19:05: Loading up D3D10...
21:19:05: Playback device Default
21:19:05: ------------------------------------------
21:19:05: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
21:19:05: ------------------------------------------
21:19:05: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
21:19:05: ------------------------------------------
21:19:05: Audio Encoding: AAC
21:19:05: bitrate: 128
21:19:05: Using graphics capture
21:19:05: ------------------------------------------
21:19:05: Video Encoding: x264
21:19:05: fps: 30
21:19:05: width: 2560, height: 1440
21:19:05: preset: veryfast
21:19:05: CBR: yes
21:19:05: CFR: no
21:19:05: max bitrate: 1000
21:19:05: ------------------------------------------
21:19:11: Total frames rendered: 181, number of frames that lagged: 0 (0.00%) (it's okay for some frames to lag)
21:19:11: =====Stream End: 2013-07-31, 21:19:11=================================================
21:19:59: =====Stream Start: 2013-07-31, 21:19:59===============================================
21:19:59: Multithreaded optimizations: On
21:19:59: Base resolution: 2560x1440
21:19:59: Output resolution: 2560x1440
21:19:59: ------------------------------------------
21:19:59: Loading up D3D10...
21:19:59: Playback device Default
21:19:59: ------------------------------------------
21:19:59: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
21:19:59: ------------------------------------------
21:19:59: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
21:19:59: ------------------------------------------
21:19:59: Audio Encoding: AAC
21:19:59: bitrate: 128
21:19:59: Using bitmap image
21:19:59: Using graphics capture
21:19:59: ------------------------------------------
21:19:59: Video Encoding: x264
21:19:59: fps: 30
21:19:59: width: 2560, height: 1440
21:19:59: preset: veryfast
21:19:59: CBR: yes
21:19:59: CFR: no
21:19:59: max bitrate: 1000
21:19:59: ------------------------------------------
21:20:07: SharedTexCapture hooked
21:20:18: Total frames rendered: 553, number of frames that lagged: 16 (2.89%) (it's okay for some frames to lag)
21:20:18: =====Stream End: 2013-07-31, 21:20:18=================================================
21:22:34: =====Stream Start: 2013-07-31, 21:22:34===============================================
21:22:34: Multithreaded optimizations: On
21:22:34: Base resolution: 2560x1440
21:22:34: Output resolution: 1280x720
21:22:34: ------------------------------------------
21:22:34: Loading up D3D10...
21:22:34: Playback device Default
21:22:34: ------------------------------------------
21:22:34: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
21:22:34: ------------------------------------------
21:22:34: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
21:22:34: ------------------------------------------
21:22:34: Audio Encoding: AAC
21:22:34: bitrate: 128
21:22:34: Using bitmap image
21:22:34: Using graphics capture
21:22:34: ------------------------------------------
21:22:34: Video Encoding: x264
21:22:34: fps: 48
21:22:34: width: 1280, height: 720
21:22:34: preset: veryfast
21:22:34: CBR: yes
21:22:34: CFR: no
21:22:34: max bitrate: 3000
21:22:34: ------------------------------------------
21:22:37: SharedTexCapture hooked
21:22:46: Using RTMP service: Twitch / Justin.tv
21:22:46: Server selection: rtmp://live-ams.justin.tv/app
21:22:48: SO_SNDBUF was at 8192
21:22:48: SO_SNDBUF is now 65536
21:23:32: GraphicsCaptureSource::NewCapture: eliminating old capture
21:23:32: SharedTexCapture hooked
21:23:52: Total frames rendered: 2540, number of frames that lagged: 572 (22.52%) (it's okay for some frames to lag)
21:24:04: RTMPPublisher::SocketLoop: Aborting due to bStopping
21:24:04: Number of times waited to send: 0, Waited for a total of 0 bytes
21:24:04: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
21:24:04: =====Stream End: 2013-07-31, 21:24:04=================================================
21:25:39:
21:25:39: Profiler results:
21:25:39:
21:25:39: ==============================================================
21:25:39: frame - [100%] [avg time: 16.143 ms (cpu time: avg 1.987 ms, total 6645.64 ms)] [avg calls per frame: 1] [children: 99.9%] [unaccounted: 0.105%]
21:25:39: | frame preprocessing and rendering - [13.8%] [avg time: 2.225 ms (cpu time: avg 0.209 ms, total 702.005 ms)] [avg calls per frame: 1] [children: 0.0186%] [unaccounted: 13.8%]
21:25:39: | | scene->Preprocess - [0.0186%] [avg time: 0.003 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
21:25:39: | video encoding and uploading - [86.1%] [avg time: 13.901 ms (cpu time: avg 1.777 ms, total 5943.64 ms)] [avg calls per frame: 1] [children: 80.8%] [unaccounted: 5.32%]
21:25:39: | | flush - [12.6%] [avg time: 2.031 ms (cpu time: avg 0.06 ms, total 202.8 ms)] [avg calls per frame: 1]
21:25:39: | | CopyResource - [0.229%] [avg time: 0.037 ms (cpu time: avg 0.004 ms, total 15.6 ms)] [avg calls per frame: 0]
21:25:39: | | conversion to 4:2:0 - [0.39%] [avg time: 0.063 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
21:25:39: | | call to encoder - [67.1%] [avg time: 10.835 ms (cpu time: avg 1.651 ms, total 5522.43 ms)] [avg calls per frame: 0]
21:25:39: | | sending stuff out - [0.471%] [avg time: 0.076 ms (cpu time: avg 0.037 ms, total 124.8 ms)] [avg calls per frame: 0]
21:25:39: | Convert444Threads - [382%] [avg time: 61.634 ms (cpu time: avg 1.352 ms, total 4524.03 ms)] [avg calls per frame: 1]
21:25:39: ==============================================================
21:25:39:

And my bandwith tested on testmy.net was 20.2 Mbps tested with Amsterdam (with being ingame and having a twitch stream on)
So my internet shouldn't be a problem afterall.
BTW: Amsterdam is also the location I set for twitch, although Frankfurt would be closer - Frankfurt doesn't behave better.

Now I am looking for the best settings to run for my internet bandwith without comprimising too much cpu power - because I'm kinda sure that's my bottleneck. Although I cannot believe that changing the windows resolution/ingame resolution would change my overall performance that drastically.

Any suggestions? Or do I need to buy a new CPU? :)

Br
Traq
 

Kharay

Member
Have you considered yet toning down on GW2's settings hard? GW2 is fairly poorly optimized; I can't even stream it properly in 720p with a base resolution of 1080p. Then again, my hardware is older than yours. But still, it's a fairly CPU/GPU heavy title and may simply need to be slapped on the wrist some.

Also, did you enable OpenCL? If not, may want to give that a try, just to take some additional load off the CPU.
 

Traq

New Member
Yes I considered - I already toned down a bit - I set pretty much everything to medium - I was afraid that I had to tone down even more :(

What do you mean by enabling OpenCL - in the catalist center???
 

alpinlol

Active Member
1440p is pretty heavy it need a lot of performance ingame on cpu and gpu even gtx titans drop around 30-40% of their fps from 1080p to 1440p but thats actually just due to the game engine being specialized for 1080p so if you drop ingame down to 1080p again and keep streamin on a downscale of 1280x720 instead of 2560x1440 it might fix your problem probably be even able to stream at 1080@30 with not probs.
 

Kharay

Member
No, in OBS. Advanced > Custom x264 Settings -> opencl=true. It will have the GPU assist a bit more on the encoding process. However, this obviously does mean your GPU needs to have the time to spare to do so. So, only consider it when the GPU is not near peaking. ;)
 

Traq

New Member
@Kharay: Ah thanks - I will give it a try! Will post the results
@alpinlol: actually it felt like 1080p was running more smoothly anyway (maybe due to no downprocessing to 720p)?
 

Traq

New Member
22:08:30: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
22:08:30: -------------------------------
22:08:30: CPU Name: Intel(R) Core(TM) i5-3450 CPU @ 3.10GHz
22:08:30: CPU Speed: 3093MHz
22:08:30: Physical Memory: 4095MB Total, 4035MB Free
22:08:30: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
22:08:30: monitor 1: pos={0, 0}, size={2560, 1440}
22:08:30: Windows Version: 6.1 Build 7601 S
22:08:30: Aero is Enabled
22:08:30: -------------------------------
22:08:30: OBS Modules:
22:08:30: Base Address Module
22:08:30: 01210000 OBS.exe
22:08:30: 5B580000 OBSApi.dll
22:08:30: 66DF0000 DShowPlugin.dll
22:08:30: 65910000 GraphicsCapture.dll
22:08:30: 6A7C0000 NoiseGate.dll
22:08:30: 5B850000 PSVPlugin.dll
22:08:30: ------------------------------------------
22:08:30: Adapter 1
22:08:30: Video Adapter: AMD Radeon HD 7800 Series
22:08:30: Video Adapter Dedicated Video Memory: 2127765504
22:08:30: Video Adapter Shared System Memory: 2167136256
22:08:30: ------------------------------------------
22:08:30: Adapter 2
22:08:30: Video Adapter: Intel(R) HD Graphics
22:08:30: Video Adapter Dedicated Video Memory: 67108864
22:08:30: Video Adapter Shared System Memory: 1711276032
22:08:30: =====Stream Start: 2013-07-31, 22:08:30===============================================
22:08:30: Multithreaded optimizations: On
22:08:30: Base resolution: 2560x1440
22:08:30: Output resolution: 1280x720
22:08:30: ------------------------------------------
22:08:30: Loading up D3D10...
22:08:30: Playback device Default
22:08:30: ------------------------------------------
22:08:30: Using desktop audio input: Lautsprecher (Realtek High Definition Audio)
22:08:30: ------------------------------------------
22:08:30: Using auxilary audio input: Mikrofon (Realtek High Definition Audio)
22:08:30: ------------------------------------------
22:08:30: Audio Encoding: AAC
22:08:30: bitrate: 128
22:08:30: Using bitmap image
22:08:30: Using graphics capture
22:08:30: Using custom x264 settings: "opencl=true"
22:08:35: ------------------------------------------
22:08:35: Video Encoding: x264
22:08:35: fps: 48
22:08:35: width: 1280, height: 720
22:08:35: preset: veryfast
22:08:35: CBR: yes
22:08:35: CFR: no
22:08:35: max bitrate: 3500
22:08:35: ------------------------------------------
22:08:35: SharedTexCapture hooked
22:08:38: GraphicsCaptureSource::NewCapture: eliminating old capture
22:08:38: SharedTexCapture hooked
22:08:46: Using RTMP service: Twitch / Justin.tv
22:08:46: Server selection: rtmp://live-ams.justin.tv/app
22:08:48: SO_SNDBUF was at 8192
22:08:48: SO_SNDBUF is now 65536
22:09:24: Total frames rendered: 1879, number of frames that lagged: 377 (20.06%) (it's okay for some frames to lag)
22:09:36: RTMPPublisher::SocketLoop: Aborting due to bStopping
22:09:36: Number of times waited to send: 0, Waited for a total of 0 bytes
22:09:36: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:09:36: =====Stream End: 2013-07-31, 22:09:36=================================================
22:11:35:
22:11:35: Profiler results:
22:11:35:
22:11:35: ==============================================================
22:11:35: frame - [100%] [avg time: 13.198 ms (cpu time: avg 1.295 ms, total 2433.62 ms)] [avg calls per frame: 1] [children: 99.8%] [unaccounted: 0.167%]
22:11:35: | frame preprocessing and rendering - [6.17%] [avg time: 0.814 ms (cpu time: avg 0.199 ms, total 374.402 ms)] [avg calls per frame: 1] [children: 0.0152%] [unaccounted: 6.15%]
22:11:35: | | scene->Preprocess - [0.0152%] [avg time: 0.002 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
22:11:35: | video encoding and uploading - [93.7%] [avg time: 12.362 ms (cpu time: avg 1.087 ms, total 2043.61 ms)] [avg calls per frame: 1] [children: 85.6%] [unaccounted: 8.03%]
22:11:35: | | flush - [3.11%] [avg time: 0.41 ms (cpu time: avg 0.058 ms, total 109.2 ms)] [avg calls per frame: 1]
22:11:35: | | CopyResource - [2.14%] [avg time: 0.283 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
22:11:35: | | conversion to 4:2:0 - [0.144%] [avg time: 0.019 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
22:11:35: | | call to encoder - [79.8%] [avg time: 10.528 ms (cpu time: avg 0.987 ms, total 1856.41 ms)] [avg calls per frame: 0]
22:11:35: | | sending stuff out - [0.47%] [avg time: 0.062 ms (cpu time: avg 0.041 ms, total 78 ms)] [avg calls per frame: 0]
22:11:35: | Convert444Threads - [395%] [avg time: 52.167 ms (cpu time: avg 0.896 ms, total 1684.81 ms)] [avg calls per frame: 1]
22:11:35: ==============================================================
22:11:35:
^

New log file - it already looked a lot better with OpenCL activated ingame - the stream is still a bit staggering from time to time.

Probably when playing serious I need to tone down to 1080p :(

Edit: they loss in frames could be when swapping from windows to ingame - the video was rather short (30s)
 
Top