Question / Help 100% CPU usage

TxdoHawk

New Member
Hi, when I am running OBS and anything resembling a demanding game, my CPU is slammed to 100% in Task Manager.
Here's my most recent log:

Code:
21:57:18: Open Broadcaster Software v0.542b - 64bit ( ^ω^)
21:57:18: -------------------------------
21:57:18: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
21:57:18: CPU Speed: 3293MHz
21:57:18: Physical Memory:  4007MB Total, 1265MB Free
21:57:18: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
21:57:18: monitor 1: pos={1920, 0}, size={1920, 1080}
21:57:18: monitor 2: pos={0, 0}, size={1920, 1080}
21:57:18: Windows Version: 6.2 Build 9200 
21:57:18: Aero is Enabled
21:57:18: -------------------------------
21:57:18: OBS Modules:
21:57:18: Base Address     Module
21:57:18: 000000006D7C0000 OBS.exe
21:57:18: 00000000A7E00000 OBSApi.dll
21:57:18: 00000000B1060000 DShowPlugin.dll
21:57:18: 00000000AF300000 GraphicsCapture.dll
21:57:18: 00000000B21A0000 NoiseGate.dll
21:57:18: 00000000AC600000 PSVPlugin.dll
21:57:18: ------------------------------------------
21:57:18: Adapter 1
21:57:18:   Video Adapter: AMD Radeon HD 7800 Series
21:57:18:   Video Adapter Dedicated Video Memory: 2131959808
21:57:18:   Video Adapter Shared System Memory: 1832658944
21:57:18: ------------------------------------------
21:57:18: Adapter 2
21:57:18:   Video Adapter: Intel(R) HD Graphics 3000
21:57:18:   Video Adapter Dedicated Video Memory: 33554432
21:57:18:   Video Adapter Shared System Memory: 1711276032
21:57:18: =====Stream Start: 2013-08-12, 21:57:18===============================================
21:57:18:   Multithreaded optimizations: On
21:57:18:   Base resolution: 1920x1080
21:57:18:   Output resolution: 1920x1080
21:57:18: ------------------------------------------
21:57:18: Loading up D3D10...
21:57:18: Playback device Default
21:57:18: ------------------------------------------
21:57:18: Using desktop audio input: Headphones (High Definition Audio Device)
21:57:18: ------------------------------------------
21:57:18: Using auxilary audio input: Desktop Microphone (4- Cinema - Microsoft LifeCam.)
21:57:18: ------------------------------------------
21:57:18: Audio Encoding: AAC
21:57:18:     bitrate: 160
21:57:18: Using graphics capture
21:57:18: ------------------------------------------
21:57:18: Video Encoding: x264
21:57:18:     fps: 30
21:57:18:     width: 1920, height: 1080
21:57:18:     preset: veryfast
21:57:18:     CBR: yes
21:57:18:     CFR: no
21:57:18:     max bitrate: 3000
21:57:18: ------------------------------------------
21:57:18: SharedTexCapture hooked
21:57:19: Using RTMP service: Twitch / Justin.tv
21:57:19:   Server selection: rtmp://live-jfk.justin.tv/app
21:57:21: SO_SNDBUF was at 65536
21:57:21: SO_SNDBUF is now 65536
22:34:47: Capture window 0x00030598 invalid or changing, terminating capture
22:34:52: Total frames rendered: 67611, number of frames that lagged: 4 (0.01%) (it's okay for some frames to lag)
22:34:52: RTMPPublisher::SocketLoop: Aborting due to bStopping
22:34:52: Number of times waited to send: 0, Waited for a total of 0 bytes
22:34:52: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
22:34:52: =====Stream End: 2013-08-12, 22:34:52=================================================
22:35:16: 
22:35:16: Profiler results:
22:35:16: 
22:35:16: ==============================================================
22:35:16: frame - [100%] [avg time: 5.428 ms (cpu time: avg 4.032 ms, total 272625 ms)] [avg calls per frame: 1] [children: 99.9%] [unaccounted: 0.0737%]
22:35:16: | frame preprocessing and rendering - [8.24%] [avg time: 0.447 ms (cpu time: avg 0.283 ms, total 19171.9 ms)] [avg calls per frame: 1] [children: 0.0184%] [unaccounted: 8.22%]
22:35:16: | | scene->Preprocess - [0.0184%] [avg time: 0.001 ms (cpu time: avg 0.002 ms, total 140.625 ms)] [avg calls per frame: 1]
22:35:16: | video encoding and uploading - [91.7%] [avg time: 4.977 ms (cpu time: avg 3.747 ms, total 253375 ms)] [avg calls per frame: 1] [children: 91.2%] [unaccounted: 0.534%]
22:35:16: | | flush - [11%] [avg time: 0.597 ms (cpu time: avg 0.069 ms, total 4687.5 ms)] [avg calls per frame: 1]
22:35:16: | | CopyResource - [0.166%] [avg time: 0.009 ms (cpu time: avg 0.005 ms, total 343.75 ms)] [avg calls per frame: 0]
22:35:16: | | conversion to 4:2:0 - [0.424%] [avg time: 0.023 ms (cpu time: avg 0.003 ms, total 234.375 ms)] [avg calls per frame: 0]
22:35:16: | | call to encoder - [78.5%] [avg time: 4.262 ms (cpu time: avg 3.63 ms, total 245453 ms)] [avg calls per frame: 0]
22:35:16: | | sending stuff out - [1.05%] [avg time: 0.057 ms (cpu time: avg 0.027 ms, total 1890.63 ms)] [avg calls per frame: 0]
22:35:16: | Convert444Threads - [1.23e+003%] [avg time: 66.653 ms (cpu time: avg 4 ms, total 270500 ms)] [avg calls per frame: 1]
22:35:16: ==============================================================
22:35:16:

I'm pretty sure the issue is my hardware, which isn't exactly the freshest (particularly the overclocked 2500k.) My question is, what should I aim for as a CPU upgrade? Would going to quad-core provide any benefit?

Edit: GPU suggestions would be appreciated too. I'm looking to go back to Nvidia next upgrade, specifically a GTX760. Should I get as much VRAM as possible?
 

dodgepong

Administrator
Community Helper
You're on an old version of OBS. Can you update to the latest version and generate a new log?
 

TxdoHawk

New Member
Here's a short snippet with the latest version:

Code:
17:55:23: Open Broadcaster Software v0.584b - 32bit (´・ω・`)
17:55:23: -------------------------------
17:55:23: CPU Name: Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz
17:55:23: CPU Speed: 3293MHz
17:55:23: Physical Memory:  4007MB Total, 1805MB Free
17:55:23: stepping id: 7, model 42, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
17:55:23: monitor 1: pos={1920, 0}, size={1920, 1080}
17:55:23: monitor 2: pos={0, 0}, size={1920, 1080}
17:55:23: Windows Version: 6.2 Build 9200 
17:55:23: Aero is Enabled
17:55:23: -------------------------------
17:55:23: OBS Modules:
17:55:23: Base Address     Module
17:55:23: 00E10000         OBS.exe
17:55:23: 6D4F0000         OBSApi.dll
17:55:23: 71AF0000         DShowPlugin.dll
17:55:23: 71F90000         GraphicsCapture.dll
17:55:23: 71230000         NoiseGate.dll
17:55:23: 71190000         PSVPlugin.dll
17:55:23: ------------------------------------------
17:55:23: Adapter 1
17:55:23:   Video Adapter: AMD Radeon HD 7800 Series
17:55:23:   Video Adapter Dedicated Video Memory: 2132996096
17:55:23:   Video Adapter Shared System Memory: 1879048192
17:55:23:   Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
17:55:23:   Video Adapter Output 2: pos={1920, 0}, size={1920, 1080}, attached=true
17:55:23: =====Stream Start: 2013-12-05, 17:55:23===============================================
17:55:23:   Multithreaded optimizations: On
17:55:23:   Base resolution: 1920x1080
17:55:23:   Output resolution: 1920x1080
17:55:23: ------------------------------------------
17:55:23: Loading up D3D10 on AMD Radeon HD 7800 Series...
17:55:23: ------------------------------------------
17:55:23: Audio Format: 48000hz
17:55:23: Playback device {0.0.0.00000000}.{76687ed8-1691-48bf-adea-d16e2b7720cd}
17:55:23: ------------------------------------------
17:55:23: Using desktop audio input: Realtek Digital Output (Realtek High Definition Audio)
17:55:23: ------------------------------------------
17:55:23: Using auxilary audio input: Desktop Microphone (Cinema - Microsoft LifeCam.)
17:55:23: ------------------------------------------
17:55:23: Audio Encoding: AAC
17:55:23:     bitrate: 128
17:55:23: ------------------------------------------
17:55:23:     device: Microsoft LifeCam Cinema,
17:55:23:     device id \\?\usb#vid_045e&pid_075d&mi_00#7&2f5dc9b3&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global,
17:55:23:     chosen type: YUY2, usingFourCC: false, res: 1280x720 - 1280x720, frameIntervals: 333333-666666
17:55:23:     use buffering: false - 0, fourCC: 'YUY2'
17:55:23:     audio device: Disable,
17:55:23:     audio device id Disabled,
17:55:23: 
17:55:23: Using directshow input
17:55:23: Using graphics capture
17:55:23: Scene buffering time set to 400
17:55:23: ------------------------------------------
17:55:23: Video Encoding: x264
17:55:23:     fps: 30
17:55:23:     width: 1920, height: 1080
17:55:23:     preset: veryfast
17:55:23:     profile: high
17:55:23:     keyint: 60
17:55:23:     CBR: yes
17:55:23:     CFR: no
17:55:23:     max bitrate: 2800
17:55:23:     buffer size: 2700
17:55:23: ------------------------------------------
17:55:23: MMDeviceAudioSource: Frequency for device 'Realtek Digital Output (Realtek High Definition Audio)' is 384000, samples per sec is 48000
17:55:23: MMDeviceAudioSource: Frequency for device 'Desktop Microphone (Cinema - Microsoft LifeCam.)' is 176400, samples per sec is 44100
17:55:25: Using RTMP service: Twitch / Justin.tv
17:55:25:   Server selection: rtmp://live-jfk.justin.tv/app
17:55:25:   Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
17:55:25: Completed handshake with rtmp://live-jfk.justin.tv/app in 292 ms.
17:55:26: SO_SNDBUF was at 65536
17:55:26: SO_SNDBUF is now 65536
17:55:27: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 374784)
17:55:29: SharedTexCapture hooked
17:55:30: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 123779 / 374784)
17:55:54: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 524288 (buffer: 0 / 374784)
17:57:22: Capture window 0x0062033A invalid or changing, terminating capture
17:57:55: Total frames encoded: 4537, total frames duplicated: 27 (0.60%)
17:57:55: Total frames rendered: 4528, number of late frames: 2 (0.04%) (it's okay for some frames to be late)
17:57:55: RTMPPublisher::SocketLoop: Graceful loop exit
17:57:55: Average send payload: 6895 bytes, average send interval: 19 ms
17:57:55: Number of times waited to send: 0, Waited for a total of 0 bytes
17:57:55: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:57:55: Number of bytes sent: 52217727
17:57:56: 
17:57:56: Profiler time results:
17:57:56: 
17:57:56: ==============================================================
17:57:56: video thread frame - [100%] [avg time: 1.476 ms] [children: 64.6%] [unaccounted: 35.4%]
17:57:56: | scene->Preprocess - [43.6%] [avg time: 0.644 ms]
17:57:56: | GPU download and conversion - [20.9%] [avg time: 0.309 ms] [children: 19.3%] [unaccounted: 1.63%]
17:57:56: | | flush - [18.6%] [avg time: 0.274 ms]
17:57:56: | | CopyResource - [0.542%] [avg time: 0.008 ms]
17:57:56: | | conversion to 4:2:0 - [0.203%] [avg time: 0.003 ms]
17:57:56: Convert444Threads - [100%] [avg time: 1.158 ms] [children: 99.2%] [unaccounted: 0.777%]
17:57:56: | Convert444toNV12 - [99.2%] [avg time: 1.149 ms]
17:57:56: encoder thread frame - [100%] [avg time: 1.91 ms]
17:57:56: ==============================================================
17:57:56: 
17:57:56: 
17:57:56: Profiler CPU results:
17:57:56: 
17:57:56: ==============================================================
17:57:56: video thread frame - [cpu time: avg 0.721 ms, total 3265.63 ms] [avg calls per frame: 1]
17:57:56: | scene->Preprocess - [cpu time: avg 0.324 ms, total 1468.75 ms] [avg calls per frame: 1]
17:57:56: | GPU download and conversion - [cpu time: avg 0.034 ms, total 156.25 ms] [avg calls per frame: 1]
17:57:56: | | flush - [cpu time: avg 0.027 ms, total 125 ms] [avg calls per frame: 1]
17:57:56: | | CopyResource - [cpu time: avg 0.003 ms, total 15.625 ms] [avg calls per frame: 1]
17:57:56: | | conversion to 4:2:0 - [cpu time: avg 0.003 ms, total 15.625 ms] [avg calls per frame: 1]
17:57:56: Convert444Threads - [cpu time: avg 0.963 ms, total 8703.13 ms] [avg calls per frame: 2]
17:57:56: | Convert444toNV12 - [cpu time: avg 0.963 ms, total 8703.13 ms] [avg calls per frame: 2]
17:57:56: encoder thread frame - [cpu time: avg 1.108 ms, total 5015.63 ms] [avg calls per frame: 1]
17:57:56: ==============================================================
17:57:56: 
17:57:56: =====Stream End: 2013-12-05, 17:57:56=================================================


Last game capture log:
2013-12-05, 17:55:23: we're booting up: 
17:55:23: D3D9 Present
17:55:23: DXGI Present
17:55:23: (half life scientist) everything..  seems to be in order
17:55:29: D3D9EndScene called
17:55:29: D3DPRESENT_PARAMETERS {
17:55:29: 	BackBufferWidth: 1920
17:55:29: 	BackBufferHeight: 1080
17:55:29: 	BackBufferFormat: D3DFMT_X8R8G8B8
17:55:29: 	BackBufferCount: 1
17:55:29: 	MultiSampleType: D3DMULTISAMPLE_NONE
17:55:29: 	MultiSampleQuality: 0
17:55:29: 	SwapEffect: D3DSWAPEFFECT_DISCARD
17:55:29: 	hDeviceWindow: 6423354
17:55:29: 	Windowed: false
17:55:29: 	EnableAutoDepthStencil: true
17:55:29: 	AutoDepthStencilFormat: D3DFMT_D24S8
17:55:29: 	Flags: None
17:55:29: 	FullScreen_RefreshRateInHz: 60
17:55:29: 	PresentationInterval: 1
17:55:29: };
17:55:29: successfully set up d3d9 hooks
17:55:29: D3D9SwapPresent called
17:55:29: DoD3D9GPUHook: success
17:55:29: D3DSURFACE_DESC {
17:55:29: 	Format: D3DFMT_X8R8G8B8
17:55:29: 	Type: D3DRTYPE_SURFACE
17:55:29: 	Usage: D3DUSAGE_RENDERTARGET 
17:55:29: 	Pool: D3DPOOL_DEFAULT
17:55:29: 	MultiSampleType: D3DMULTISAMPLE_NONE
17:55:29: 	MultiSampleQuality: 0
17:55:29: 	Width: 1920
17:55:29: 	Height: 1080
17:55:29: };
17:55:29: successfully capturing d3d9 frames via GPU

For semi-reasonable games, my CPU usage will only hit 100% when there's a lot of movement on screen (I presume this stresses the encoder). For something even semi-demanding like Smite, I pretty much stay pegged at 100%.
 

dodgepong

Administrator
Community Helper
The log actually shows things to be working alright from the recording's perspective. However, that CPU kind of straddles the line of being able to encode at 1080p and still play with good frame rate. I would recommend downscaling to 720p and see if that helps at all.

If you want to get an upgrade, your best bet would be an i7-3770k, since you likely won't have to change your motherboard.
 

TxdoHawk

New Member
dodgepong said:
The log actually shows things to be working alright from the recording's perspective. However, that CPU kind of straddles the line of being able to encode at 1080p and still play with good frame rate. I would recommend downscaling to 720p and see if that helps at all.

If you want to get an upgrade, your best bet would be an i7-3770k, since you likely won't have to change your motherboard.

Much appreciated, thanks!
 
Top