Question / Help Lagging frames when I never used to

duelle

New Member
I'd like to start streaming regularly, but I keep running into frames lagging resulting in stuttering motion in the video. What doesn't make sense to me is that my CPU never went above 55% and the game (League of Legends) gets a consistent 150+FPS. I've tried window capture and game capture, doesn't make a difference. I have also streamed a few times in the past 1080p@60 with perfectly smooth encoding. My hardware hasn't changed and now I get frames lagging with 720p@60. It's driving me insane because I know my computer can handle it, but I keep seeing my FPS drop from 60 to 55 or so every couple of seconds.

Anyway, here's my log:
Code:
21:23:24: Settings::Video: Enabling Aero
21:23:58: Open Broadcaster Software v0.592b - 64bit ( ^ω^)
21:23:58: -------------------------------
21:23:58: CPU Name: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz
21:23:58: CPU Speed: 3503MHz
21:23:58: Physical Memory:  8013MB Total, 5157MB Free
21:23:58: stepping id: 9, model 58, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 8, total cores 4
21:23:58: monitor 1: pos={1920, 251}, size={1138, 648}
21:23:58: monitor 2: pos={0, 0}, size={1920, 1080}
21:23:58: monitor 3: pos={-1920, 118}, size={1920, 1080}
21:23:58: Windows Version: 6.1 Build 7601 S
21:23:58: Aero is Enabled
21:23:58: -------------------------------
21:23:58: OBS Modules:
21:23:58: Base Address     Module
21:23:58: 000000003F9C0000 OBS.exe
21:23:58: 00000000E9890000 OBSApi.dll
21:23:58: 00000000EFBF0000 DShowPlugin.dll
21:23:58: 00000000FB110000 GraphicsCapture.dll
21:23:58: 00000000F59C0000 NoiseGate.dll
21:23:58: 00000000EFCF0000 PSVPlugin.dll
21:23:58: ------------------------------------------
21:23:58: Adapter 1
21:23:58:   Video Adapter: NVIDIA GeForce GTX 670
21:23:58:   Video Adapter Dedicated Video Memory: 2087387136
21:23:58:   Video Adapter Shared System Memory: 2147807232
21:23:58:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
21:23:58:   Video Adapter Output 2: pos={1920, 251}, size={1138, 648}, attached=true
21:23:58:   Video Adapter Output 3: pos={-1920, 118}, size={1920, 1080}, attached=true
21:23:58: ------------------------------------------
21:23:58: Adapter 2
21:23:58:   Video Adapter: Intel(R) HD Graphics 4000
21:23:58:   Video Adapter Dedicated Video Memory: 134217728
21:23:58:   Video Adapter Shared System Memory: 1711276032
21:23:58: =====Stream Start: 2014-01-31, 21:23:58===============================================
21:23:58:   Multithreaded optimizations: On
21:23:58:   Base resolution: 1920x1080
21:23:58:   Output resolution: 1280x720
21:23:58: ------------------------------------------
21:23:58: Loading up D3D10 on NVIDIA GeForce GTX 670 (Adapter 1)...
21:23:59: ------------------------------------------
21:23:59: Audio Format: 44100hz
21:23:59: Playback device Default
21:23:59: ------------------------------------------
21:23:59: Using desktop audio input: Speakers (High Definition Audio Device)
21:23:59: ------------------------------------------
21:23:59: Using auxilary audio input: Microphone (High Definition Audio Device)
21:23:59: ------------------------------------------
21:23:59: Audio Encoding: AAC
21:23:59:     bitrate: 128
21:23:59: ------------------------------------------
21:23:59:     device: HD Pro Webcam C920,
21:23:59:     device id \\?\usb#vid_046d&pid_082d&mi_00#6&32d4d577&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
21:23:59:     chosen type: MJPG, usingFourCC: false, res: 1920x1080 - 1920x1080, frameIntervals: 333333-2000000
21:23:59:     use buffering: false - 0, fourCC: 'MJPG'
21:23:59:     audio device: Disable,
21:23:59:     audio device id Disabled,
21:23:59: 
21:23:59: Using directshow input
21:23:59: Using text output
21:23:59: Using Window Capture
21:23:59: Using Window Capture
21:23:59: Using Window Capture
21:23:59: Using bitmap image
21:23:59: Scene buffering time set to 700
21:23:59: ------------------------------------------
21:23:59: Video Encoding: x264
21:23:59:     fps: 60
21:23:59:     width: 1280, height: 720
21:23:59:     preset: veryfast
21:23:59:     profile: high
21:23:59:     keyint: 120
21:23:59:     CBR: yes
21:23:59:     CFR: yes
21:23:59:     max bitrate: 3500
21:23:59:     buffer size: 3500
21:23:59: ------------------------------------------
21:23:59: MMDeviceAudioSource: Frequency for device 'Speakers (High Definition Audio Device)' is 352800, samples per sec is 44100
21:23:59: MMDeviceAudioSource: Frequency for device 'Microphone (High Definition Audio Device)' is 352800, samples per sec is 44100
21:25:50: Total frames encoded: 6597, total frames duplicated: 138 (2.09%)
21:25:50: Total frames rendered: 6555, number of late frames: 24 (0.37%) (it's okay for some frames to be late)
21:25:50: 
21:25:50: Profiler time results:
21:25:50: 
21:25:50: ==============================================================
21:25:50: video thread frame - [100%] [avg time: 2.862 ms] [children: 86.7%] [unaccounted: 13.3%]
21:25:50: | scene->Preprocess - [84.1%] [avg time: 2.408 ms]
21:25:50: | GPU download and conversion - [2.55%] [avg time: 0.073 ms] [children: 2.13%] [unaccounted: 0.419%]
21:25:50: | | flush - [1.57%] [avg time: 0.045 ms]
21:25:50: | | CopyResource - [0.524%] [avg time: 0.015 ms]
21:25:50: | | conversion to 4:2:0 - [0.0349%] [avg time: 0.001 ms]
21:25:50: Convert444Threads - [100%] [avg time: 0.338 ms] [children: 99.4%] [unaccounted: 0.592%]
21:25:50: | Convert444toNV12 - [99.4%] [avg time: 0.336 ms]
21:25:50: encoder thread frame - [100%] [avg time: 0.733 ms]
21:25:50: ==============================================================
21:25:50: 
21:25:50: 
21:25:50: Profiler CPU results:
21:25:50: 
21:25:50: ==============================================================
21:25:50: video thread frame - [cpu time: avg 1.032 ms, total 6770.44 ms] [avg calls per frame: 1]
21:25:50: | scene->Preprocess - [cpu time: avg 0.625 ms, total 4102.83 ms] [avg calls per frame: 1]
21:25:50: | GPU download and conversion - [cpu time: avg 0.035 ms, total 234.003 ms] [avg calls per frame: 1]
21:25:50: | | flush - [cpu time: avg 0.016 ms, total 109.202 ms] [avg calls per frame: 1]
21:25:50: | | CopyResource - [cpu time: avg 0.004 ms, total 31.2 ms] [avg calls per frame: 1]
21:25:50: | | conversion to 4:2:0 - [cpu time: avg 0.002 ms, total 15.6 ms] [avg calls per frame: 1]
21:25:50: Convert444Threads - [cpu time: avg 0.236 ms, total 3073.22 ms] [avg calls per frame: 2]
21:25:50: | Convert444toNV12 - [cpu time: avg 0.233 ms, total 3042.02 ms] [avg calls per frame: 2]
21:25:50: encoder thread frame - [cpu time: avg 0.03 ms, total 202.801 ms] [avg calls per frame: 1]
21:25:50: ==============================================================
21:25:50: 
21:25:50: =====Stream End: 2014-01-31, 21:25:50=================================================
 

farezv

New Member
Do you have frame drops without streaming?

1) Did you update your GPU drivers recently? Make sure your video card isn't under clocking while playing games.

Go to Nvidia control panel -> Manage 3D settings and under power management make sure it says "Prefer max performance." Keep an eye on your gpu temps using HWmonitor or something (although the 670 will run cooler than some older cards, like my 570).

2) You could have your CPU cores parked and you might need to unpark them.

That's the best I can think of right now =/
 

duelle

New Member
I checked Resource Monitor and half my cores are parked even when streaming. However, I'm pretty sure those are the hyper-threading cores, so I don't know if it matters. I tried the Nvidia control panel setting and it didn't make a difference. Just for the hell of it I set my stream to 640x360 (3x downscale) and 1000kbps and it still lags frames. I keep seeing it drop to anywhere from 50-59FPS. It rarely stays at 60 for more than a couple of seconds. This is such a pain in the ass.

EDIT: So, apparently Aero was causing the issue. I turned Aero on to get proper window capture working (couldn't get window capture to show the mouse cursor with it off) and as soon as I turned it off I got a rock solid 60FPS at 1080p or even 720 with the "fast" preset. I even tried 120FPS (my monitor's refresh rate) and that worked flawlessly. It's just annoying now that I can't really use window capture, unless someone knows how I can fix my Aero problems.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Window capture on windows 7 is not too efficient. It's unsurprising that you had that issue.
 
Top