Question / Help Frame drops ingame. Windowed and Fullscreen

BBunny

New Member
Windows 7
i5-2550K 3.40GHz
GTX 560

Whenever I try streaming on my PC, I get automatic framerate drop. It's enough to bother me while playing. I'd say from 30FPS it drops to around 18. Hard to accurately say.

Here's a video preview of footage ingame (be sure to mute it, forgot I had loud music playing) http://www.twitch.tv/b_bunny/b/498299648

So not only does the stream online look laggy, but Im also experiencing framerate drop ingame. That's with Game Capture. Monitor and Window were worse.

Also, I notice whenever I hit the 'preview stream' button, I get the same effect. I don't even need to be streaming LIVE to get the famerate drop ingame.

3259556830.png


Code:
:01: Open Broadcaster Software v0.592b - 64bit ( ^ω^)
02:31:01: -------------------------------
02:31:01: CPU Name: Intel(R) Core(TM) i5-2550K CPU @ 3.40GHz
02:31:01: CPU Speed: 3411MHz
02:31:01: Physical Memory:  8159MB Total, 3592MB Free
02:31:01: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
02:31:01: monitor 1: pos={0, 0}, size={1920, 1200}
02:31:01: Windows Version: 6.1 Build 7601 S
02:31:01: Aero is Disabled
02:31:01: -------------------------------
02:31:01: OBS Modules:
02:31:01: Base Address     Module
02:31:01: 000000003F990000 OBS.exe
02:31:01: 00000000EB0F0000 OBSApi.dll
02:31:01: 00000000F6880000 DShowPlugin.dll
02:31:01: 00000000F64E0000 GraphicsCapture.dll
02:31:01: 00000000F6B40000 NoiseGate.dll
02:31:01: 00000000F6AB0000 PSVPlugin.dll
02:31:01: ------------------------------------------
02:31:01: Adapter 1
02:31:01:   Video Adapter: NVIDIA GeForce GTX 560 
02:31:01:   Video Adapter Dedicated Video Memory: 1025966080
02:31:01:   Video Adapter Shared System Memory: 3221106688
02:31:01:   Video Adapter Output 1: pos={0, 0}, size={1920, 1200}, attached=true
02:31:01: =====Stream Start: 2014-01-26, 02:31:01===============================================
02:31:01:   Multithreaded optimizations: On
02:31:01:   Base resolution: 1920x1200
02:31:01:   Output resolution: 1280x800
02:31:01: ------------------------------------------
02:31:01: Loading up D3D10 on NVIDIA GeForce GTX 560 (Adapter 1)...
02:31:01: ------------------------------------------
02:31:01: Audio Format: 44100hz
02:31:01: Playback device {0.0.0.00000000}.{1c5c8c0f-a0a6-4922-a5e5-1618800ee05b}
02:31:01: ------------------------------------------
02:31:01: Using desktop audio input: Headset Earphone (2- ASTRO MixAmp Pro           )
02:31:01: ------------------------------------------
02:31:01: Using auxilary audio input: Headset Microphone (2- ASTRO MixAmp Pro           )
02:31:01: ------------------------------------------
02:31:01: Audio Encoding: MP3
02:31:01:     bitrate: 128
02:31:01: Using graphics capture
02:31:01: Scene buffering time set to 400
02:31:01: ------------------------------------------
02:31:01: Video Encoding: x264
02:31:01:     fps: 30
02:31:01:     width: 1280, height: 800
02:31:01:     preset: medium
02:31:01:     profile: main
02:31:01:     keyint: 60
02:31:01:     CBR: yes
02:31:01:     CFR: yes
02:31:01:     max bitrate: 3500
02:31:01:     buffer size: 3500
02:31:01: ------------------------------------------
02:31:01: MMDeviceAudioSource: Frequency for device 'Headset Earphone (2- ASTRO MixAmp Pro           )' is 384000, samples per sec is 48000
02:31:01: MMDeviceAudioSource: Frequency for device 'Headset Microphone (2- ASTRO MixAmp Pro           )' is 192000, samples per sec is 48000
02:31:04: SharedTexCapture hooked
02:31:20: Total frames encoded: 544, total frames duplicated: 33 (6.07%)
02:31:20: Number of frames skipped due to encoder lag: 10 (1.84%)
02:31:20: Total frames rendered: 522, number of late frames: 5 (0.96%) (it's okay for some frames to be late)
02:31:20: 
02:31:20: Profiler time results:
02:31:20: 
02:31:20: ==============================================================
02:31:20: video thread frame - [100%] [avg time: 1.953 ms] [children: 28.3%] [unaccounted: 71.7%]
02:31:20: | scene->Preprocess - [0.0512%] [avg time: 0.001 ms]
02:31:20: | GPU download and conversion - [28.2%] [avg time: 0.551 ms] [children: 14.1%] [unaccounted: 14.1%]
02:31:20: | | flush - [13.1%] [avg time: 0.256 ms]
02:31:20: | | CopyResource - [0.87%] [avg time: 0.017 ms]
02:31:20: | | conversion to 4:2:0 - [0.154%] [avg time: 0.003 ms]
02:31:20: Convert444Threads - [100%] [avg time: 0.452 ms] [children: 99.1%] [unaccounted: 0.885%]
02:31:20: | Convert444toNV12 - [99.1%] [avg time: 0.448 ms]
02:31:20: encoder thread frame - [100%] [avg time: 2.79 ms]
02:31:20: ==============================================================
02:31:20: 
02:31:20: 
02:31:20: Profiler CPU results:
02:31:20: 
02:31:20: ==============================================================
02:31:20: video thread frame - [cpu time: avg 0.209 ms, total 109.2 ms] [avg calls per frame: 1]
02:31:20: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:31:20: | GPU download and conversion - [cpu time: avg 0.059 ms, total 31.2 ms] [avg calls per frame: 1]
02:31:20: | | flush - [cpu time: avg 0.029 ms, total 15.6 ms] [avg calls per frame: 1]
02:31:20: | | CopyResource - [cpu time: avg 0.03 ms, total 15.6 ms] [avg calls per frame: 1]
02:31:20: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:31:20: Convert444Threads - [cpu time: avg 0.199 ms, total 202.8 ms] [avg calls per frame: 2]
02:31:20: | Convert444toNV12 - [cpu time: avg 0.199 ms, total 202.8 ms] [avg calls per frame: 2]
02:31:20: encoder thread frame - [cpu time: avg 0.527 ms, total 280.801 ms] [avg calls per frame: 1]
02:31:20: ==============================================================
02:31:20: 
02:31:20: =====Stream End: 2014-01-26, 02:31:20=================================================
02:31:26: =====Stream Start: 2014-01-26, 02:31:26===============================================
02:31:26:   Multithreaded optimizations: On
02:31:26:   Base resolution: 1920x1200
02:31:26:   Output resolution: 1280x800
02:31:26: ------------------------------------------
02:31:26: Loading up D3D10 on NVIDIA GeForce GTX 560 (Adapter 1)...
02:31:26: ------------------------------------------
02:31:26: Audio Format: 44100hz
02:31:26: Playback device {0.0.0.00000000}.{1c5c8c0f-a0a6-4922-a5e5-1618800ee05b}
02:31:26: ------------------------------------------
02:31:26: Using desktop audio input: Headset Earphone (2- ASTRO MixAmp Pro           )
02:31:26: ------------------------------------------
02:31:26: Using auxilary audio input: Headset Microphone (2- ASTRO MixAmp Pro           )
02:31:26: ------------------------------------------
02:31:26: Audio Encoding: MP3
02:31:26:     bitrate: 128
02:31:26: Using Monitor Capture
02:31:26: Scene buffering time set to 400
02:31:26: ------------------------------------------
02:31:26: Video Encoding: x264
02:31:26:     fps: 30
02:31:26:     width: 1280, height: 800
02:31:26:     preset: medium
02:31:26:     profile: main
02:31:26:     keyint: 60
02:31:26:     CBR: yes
02:31:26:     CFR: yes
02:31:26:     max bitrate: 3500
02:31:26:     buffer size: 3500
02:31:26: ------------------------------------------
02:31:26: MMDeviceAudioSource: Frequency for device 'Headset Earphone (2- ASTRO MixAmp Pro           )' is 384000, samples per sec is 48000
02:31:26: MMDeviceAudioSource: Frequency for device 'Headset Microphone (2- ASTRO MixAmp Pro           )' is 192000, samples per sec is 48000
02:31:52: Total frames encoded: 766, total frames duplicated: 41 (5.35%)
02:31:52: Total frames rendered: 738, number of late frames: 10 (1.36%) (it's okay for some frames to be late)
02:31:52: 
02:31:52: Profiler time results:
02:31:52: 
02:31:52: ==============================================================
02:31:52: video thread frame - [100%] [avg time: 4.488 ms] [children: 87.3%] [unaccounted: 12.7%]
02:31:52: | scene->Preprocess - [71.4%] [avg time: 3.205 ms]
02:31:52: | GPU download and conversion - [15.9%] [avg time: 0.715 ms] [children: 1.92%] [unaccounted: 14%]
02:31:52: | | flush - [1.45%] [avg time: 0.065 ms]
02:31:52: | | CopyResource - [0.379%] [avg time: 0.017 ms]
02:31:52: | | conversion to 4:2:0 - [0.0891%] [avg time: 0.004 ms]
02:31:52: Convert444Threads - [100%] [avg time: 0.474 ms] [children: 99.2%] [unaccounted: 0.844%]
02:31:52: | Convert444toNV12 - [99.2%] [avg time: 0.47 ms]
02:31:52: encoder thread frame - [100%] [avg time: 1.151 ms]
02:31:52: ==============================================================
02:31:52: 
02:31:52: 
02:31:52: Profiler CPU results:
02:31:52: 
02:31:52: ==============================================================
02:31:52: video thread frame - [cpu time: avg 1.183 ms, total 873.605 ms] [avg calls per frame: 1]
02:31:52: | scene->Preprocess - [cpu time: avg 0.951 ms, total 702.005 ms] [avg calls per frame: 1]
02:31:52: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:31:52: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:31:52: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:31:52: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:31:52: Convert444Threads - [cpu time: avg 0.549 ms, total 795.604 ms] [avg calls per frame: 2]
02:31:52: | Convert444toNV12 - [cpu time: avg 0.549 ms, total 795.604 ms] [avg calls per frame: 2]
02:31:52: encoder thread frame - [cpu time: avg 0.517 ms, total 390.002 ms] [avg calls per frame: 1]
02:31:52: ==============================================================
02:31:52: 
02:31:52: =====Stream End: 2014-01-26, 02:31:52=================================================
02:31:59: =====Stream Start: 2014-01-26, 02:31:59===============================================
02:31:59:   Multithreaded optimizations: On
02:31:59:   Base resolution: 1920x1200
02:31:59:   Output resolution: 1280x800
02:31:59: ------------------------------------------
02:31:59: Loading up D3D10 on NVIDIA GeForce GTX 560 (Adapter 1)...
02:31:59: ------------------------------------------
02:31:59: Audio Format: 44100hz
02:31:59: Playback device {0.0.0.00000000}.{1c5c8c0f-a0a6-4922-a5e5-1618800ee05b}
02:31:59: ------------------------------------------
02:31:59: Using desktop audio input: Headset Earphone (2- ASTRO MixAmp Pro           )
02:31:59: ------------------------------------------
02:31:59: Using auxilary audio input: Headset Microphone (2- ASTRO MixAmp Pro           )
02:31:59: ------------------------------------------
02:31:59: Audio Encoding: MP3
02:31:59:     bitrate: 128
02:31:59: Using graphics capture
02:31:59: Scene buffering time set to 400
02:31:59: ------------------------------------------
02:31:59: Video Encoding: x264
02:31:59:     fps: 30
02:31:59:     width: 1280, height: 800
02:31:59:     preset: medium
02:31:59:     profile: main
02:31:59:     keyint: 60
02:31:59:     CBR: yes
02:31:59:     CFR: yes
02:31:59:     max bitrate: 3500
02:31:59:     buffer size: 3500
02:31:59: ------------------------------------------
02:31:59: MMDeviceAudioSource: Frequency for device 'Headset Earphone (2- ASTRO MixAmp Pro           )' is 384000, samples per sec is 48000
02:31:59: MMDeviceAudioSource: Frequency for device 'Headset Microphone (2- ASTRO MixAmp Pro           )' is 192000, samples per sec is 48000
02:31:59: SharedTexCapture hooked
02:32:14: Total frames encoded: 451, total frames duplicated: 50 (11.09%)
02:32:14: Number of frames skipped due to encoder lag: 9 (2.00%)
02:32:14: Total frames rendered: 430, number of late frames: 9 (2.09%) (it's okay for some frames to be late)
02:32:15: 
02:32:15: Profiler time results:
02:32:15: 
02:32:15: ==============================================================
02:32:15: video thread frame - [100%] [avg time: 3.36 ms] [children: 26.9%] [unaccounted: 73.1%]
02:32:15: | scene->Preprocess - [0.0298%] [avg time: 0.001 ms]
02:32:15: | GPU download and conversion - [26.9%] [avg time: 0.903 ms] [children: 5.6%] [unaccounted: 21.3%]
02:32:15: | | flush - [2.56%] [avg time: 0.086 ms]
02:32:15: | | CopyResource - [2.92%] [avg time: 0.098 ms]
02:32:15: | | conversion to 4:2:0 - [0.119%] [avg time: 0.004 ms]
02:32:15: Convert444Threads - [100%] [avg time: 0.431 ms] [children: 98.6%] [unaccounted: 1.39%]
02:32:15: | Convert444toNV12 - [98.6%] [avg time: 0.425 ms]
02:32:15: encoder thread frame - [100%] [avg time: 7.422 ms]
02:32:15: ==============================================================
02:32:15: 
02:32:15: 
02:32:15: Profiler CPU results:
02:32:15: 
02:32:15: ==============================================================
02:32:15: video thread frame - [cpu time: avg 0.29 ms, total 124.8 ms] [avg calls per frame: 1]
02:32:15: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:32:15: | GPU download and conversion - [cpu time: avg 0.072 ms, total 31.2 ms] [avg calls per frame: 1]
02:32:15: | | flush - [cpu time: avg 0.036 ms, total 15.6 ms] [avg calls per frame: 1]
02:32:15: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:32:15: | | conversion to 4:2:0 - [cpu time: avg 0.037 ms, total 15.6 ms] [avg calls per frame: 1]
02:32:15: Convert444Threads - [cpu time: avg 0.15 ms, total 124.8 ms] [avg calls per frame: 2]
02:32:15: | Convert444toNV12 - [cpu time: avg 0.15 ms, total 124.8 ms] [avg calls per frame: 2]
02:32:15: encoder thread frame - [cpu time: avg 0.355 ms, total 156.001 ms] [avg calls per frame: 1]
02:32:15: ==============================================================
02:32:15: 
02:32:15: =====Stream End: 2014-01-26, 02:32:15=================================================
02:32:15: =====Stream Start: 2014-01-26, 02:32:15===============================================
02:32:15:   Multithreaded optimizations: On
02:32:15:   Base resolution: 1920x1200
02:32:15:   Output resolution: 1280x800
02:32:15: ------------------------------------------
02:32:15: Loading up D3D10 on NVIDIA GeForce GTX 560 (Adapter 1)...
02:32:15: ------------------------------------------
02:32:15: Audio Format: 44100hz
02:32:15: Playback device {0.0.0.00000000}.{1c5c8c0f-a0a6-4922-a5e5-1618800ee05b}
02:32:15: ------------------------------------------
02:32:15: Using desktop audio input: Headset Earphone (2- ASTRO MixAmp Pro           )
02:32:15: ------------------------------------------
02:32:15: Using auxilary audio input: Headset Microphone (2- ASTRO MixAmp Pro           )
02:32:15: ------------------------------------------
02:32:15: Audio Encoding: MP3
02:32:15:     bitrate: 128
02:32:15: Using graphics capture
02:32:15: Scene buffering time set to 400
02:32:15: ------------------------------------------
02:32:15: Video Encoding: x264
02:32:15:     fps: 30
02:32:15:     width: 1280, height: 800
02:32:15:     preset: medium
02:32:15:     profile: main
02:32:15:     keyint: 60
02:32:15:     CBR: yes
02:32:15:     CFR: yes
02:32:15:     max bitrate: 3500
02:32:15:     buffer size: 3500
02:32:15: ------------------------------------------
02:32:15: MMDeviceAudioSource: Frequency for device 'Headset Earphone (2- ASTRO MixAmp Pro           )' is 384000, samples per sec is 48000
02:32:15: MMDeviceAudioSource: Frequency for device 'Headset Microphone (2- ASTRO MixAmp Pro           )' is 192000, samples per sec is 48000
02:32:18: Using RTMP service: Twitch / Justin.tv
02:32:18:   Server selection: rtmp://live-iad.justin.tv/app
02:32:18:   Interface: Realtek PCIe GBE Family Controller (ethernet, 1000 mbps)
02:32:18: SharedTexCapture hooked
02:32:18: Completed handshake with rtmp://live-iad.justin.tv/app in 204 ms.
02:32:19: SO_SNDBUF was at 8192
02:32:19: SO_SNDBUF is now 65536
02:32:50: Total frames encoded: 1038, total frames duplicated: 201 (19.36%)
02:32:50: Number of frames skipped due to encoder lag: 131 (12.62%)
02:32:50: Total frames rendered: 890, number of late frames: 12 (1.35%) (it's okay for some frames to be late)
02:32:50: RTMPPublisher::SocketLoop: Aborting due to WSAEnumNetworkEvents failure, 10038
02:32:50: Average send payload: 9391 bytes, average send interval: 20 ms
02:32:50: Number of times waited to send: 0, Waited for a total of 0 bytes
02:32:50: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
02:32:50: Number of bytes sent: 14022050
02:32:51: 
02:32:51: Profiler time results:
02:32:51: 
02:32:51: ==============================================================
02:32:51: video thread frame - [100%] [avg time: 2.422 ms] [children: 34.2%] [unaccounted: 65.8%]
02:32:51: | scene->Preprocess - [0.0413%] [avg time: 0.001 ms]
02:32:51: | GPU download and conversion - [34.2%] [avg time: 0.828 ms] [children: 8.63%] [unaccounted: 25.6%]
02:32:51: | | flush - [1.69%] [avg time: 0.041 ms]
02:32:51: | | CopyResource - [6.85%] [avg time: 0.166 ms]
02:32:51: | | conversion to 4:2:0 - [0.0826%] [avg time: 0.002 ms]
02:32:51: Convert444Threads - [100%] [avg time: 0.414 ms] [children: 98.8%] [unaccounted: 1.21%]
02:32:51: | Convert444toNV12 - [98.8%] [avg time: 0.409 ms]
02:32:51: encoder thread frame - [100%] [avg time: 9.767 ms]
02:32:51: ==============================================================
02:32:51: 
02:32:51: 
02:32:51: Profiler CPU results:
02:32:51: 
02:32:51: ==============================================================
02:32:51: video thread frame - [cpu time: avg 0.385 ms, total 343.201 ms] [avg calls per frame: 1]
02:32:51: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:32:51: | GPU download and conversion - [cpu time: avg 0.035 ms, total 31.2 ms] [avg calls per frame: 1]
02:32:51: | | flush - [cpu time: avg 0.017 ms, total 15.6 ms] [avg calls per frame: 1]
02:32:51: | | CopyResource - [cpu time: avg 0.017 ms, total 15.6 ms] [avg calls per frame: 1]
02:32:51: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
02:32:51: Convert444Threads - [cpu time: avg 0.178 ms, total 312.001 ms] [avg calls per frame: 2]
02:32:51: | Convert444toNV12 - [cpu time: avg 0.178 ms, total 312.001 ms] [avg calls per frame: 2]
02:32:51: encoder thread frame - [cpu time: avg 0.349 ms, total 358.802 ms] [avg calls per frame: 1]
02:32:51: ==============================================================
02:32:51: 
02:32:51: =====Stream End: 2014-01-26, 02:32:51=================================================
 

hilalpro

Member
Encoding 800p at the x264 Medium CPU preset should be the cause of your poor Ingame performance. Change it back to "veryfast" and see if that solve your problem.
 

BBunny

New Member
hilalpro said:
Encoding 800p at the x264 Medium CPU preset should be the cause of your poor Ingame performance. Change it back to "veryfast" and see if that solve your problem.
Nope, still not as smooth as it is when Im not streaming or have 'preview stream' not checked.
 

hilalpro

Member
In that case you could sacrifice some quality and use hardware encoder "quicksync" to eliminate the encoding impact on your CPU or before that try experimenting with the x264 custom encoder setting threads=2 and post a log file here with the results.
 

FerretBomb

Active Member
Uh, yeah. Livestreaming (aka: real time video encoding) is exceptionally stressful on a machine. It's never going to be identical to when you're not streaming, unless you run a two-system setup. You're also running an i5, which are notorious for running out of gas while gaming and streaming after around 720@30 at Veryfast, and you're trying to run 800p at Medium.

You're also using Monitor Capture under Win7 in that logfile, which is THE slowest, worst capture method; Aero off just makes it slightly LESS bad, doesn't in any way make it good or a really viable option.
 
Top