Question / Help OBS CPU Spikes

Derkyy

New Member
I know there have been a 1000 of these threads but I really cannot figure out for the life of me why im getting these spikes.
Code:
17:34:27: Open Broadcaster Software v0.612b - 32bit (´・ω・`)
17:34:27: -------------------------------
17:34:27: CPU Name: AMD FX(tm)-8350 Eight-Core Processor
17:34:27: CPU Speed: 4018MHz
17:34:27: Physical Memory: 4095MB Total, 4095MB Free
17:34:27: stepping id: 0, model 2, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 8, total cores 4
17:34:27: monitor 1: pos={-1440, 0}, size={1440, 900}
17:34:27: monitor 2: pos={0, 0}, size={1360, 768}
17:34:27: Windows Version: 6.1 Build 7601 S
17:34:27: Aero is Disabled
17:34:27: -------------------------------
17:34:27: OBS Modules:
17:34:27: Base Address Module
17:34:27: 01120000 OBS.exe
17:34:27: 625E0000 OBSApi.dll
17:34:27: 73200000 DShowPlugin.dll
17:34:27: 74910000 GraphicsCapture.dll
17:34:27: 74A70000 NoiseGate.dll
17:34:27: 73270000 PSVPlugin.dll
17:34:27: ------------------------------------------
17:34:27: Adapter 1
17:34:27: Video Adapter: AMD Radeon HD 7900 Series
17:34:27: Video Adapter Dedicated Video Memory: 3202392064
17:34:27: Video Adapter Shared System Memory: 4017156096
17:34:27: Video Adapter Output 1: pos={0, 0}, size={1360, 768}, attached=true
17:34:27: Video Adapter Output 2: pos={-1440, 0}, size={1440, 900}, attached=true
17:34:27: =====Stream Start: 2014-02-21, 17:34:27===============================================
17:34:27: Multithreaded optimizations: On
17:34:27: Base resolution: 1440x900
17:34:27: Output resolution: 1440x900
17:34:27: ------------------------------------------
17:34:27: Loading up D3D10 on AMD Radeon HD 7900 Series (Adapter 1)...
17:34:27: ------------------------------------------
17:34:27: Audio Format: 48000hz
17:34:27: Playback device Default
17:34:27: ------------------------------------------
17:34:27: Using desktop audio input: Speakers (Logitech G930 Headset)
17:34:27: Using 7.1 surround speaker setup
17:34:27: ------------------------------------------
17:34:27: Using auxilary audio input: Microphone (Logitech G930 Headset)
17:34:27: ------------------------------------------
17:34:27: Audio Encoding: AAC
17:34:27: bitrate: 128
17:34:27: Using graphics capture
17:34:27: Using graphics capture
17:34:27: Using graphics capture
17:34:27: Scene buffering time set to 700
17:34:27: ------------------------------------------
17:34:27: Video Encoding: x264
17:34:27: fps: 25
17:34:27: width: 1440, height: 900
17:34:27: preset: veryfast
17:34:27: profile: main
17:34:27: keyint: 50
17:34:27: CBR: yes
17:34:27: CFR: no
17:34:27: max bitrate: 3500
17:34:27: buffer size: 3500
17:34:27: ------------------------------------------
17:34:30: Using RTMP service: Twitch / Justin.tv
17:34:30: Server selection: rtmp://live-ord.justin.tv/app
17:34:30: Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
17:34:30: Completed handshake with rtmp://live-ord.justin.tv/app in 156 ms.
17:34:30: SharedTexCapture hooked
17:34:30: SO_SNDBUF was at 8192
17:34:30: SO_SNDBUF is now 65536
17:34:33: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 463872)
17:34:33: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 15436 / 463872)
17:34:44: Total frames encoded: 412, total frames duplicated: 21 (5.10%)
17:34:44: Total frames rendered: 403, number of late frames: 3 (0.74%) (it's okay for some frames to be late)
17:34:44: RTMPPublisher::SocketLoop: Graceful loop exit
17:34:44: Average send payload: 7523 bytes, average send interval: 16 ms
17:34:44: Number of times waited to send: 0, Waited for a total of 0 bytes
17:34:44: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
17:34:44: Number of bytes sent: 5822923
17:34:45:
17:34:45: Profiler time results:
17:34:45:
17:34:45: ==============================================================
17:34:45: video thread frame - [100%] [avg time: 2.942 ms] [children: 6.53%] [unaccounted: 93.5%]
17:34:45: | scene->Preprocess - [0.034%] [avg time: 0.001 ms]
17:34:45: | GPU download and conversion - [6.49%] [avg time: 0.191 ms] [children: 5.1%] [unaccounted: 1.39%]
17:34:45: | | flush - [3.94%] [avg time: 0.116 ms]
17:34:45: | | CopyResource - [0.918%] [avg time: 0.027 ms]
17:34:45: | | conversion to 4:2:0 - [0.238%] [avg time: 0.007 ms]
17:34:45: Convert444Threads - [100%] [avg time: 1.567 ms] [children: 99.4%] [unaccounted: 0.574%]
17:34:45: | Convert444toNV12 - [99.4%] [avg time: 1.558 ms]
17:34:45: encoder thread frame - [100%] [avg time: 2.158 ms] [children: 3.01%] [unaccounted: 97%]
17:34:45: | sending stuff out - [3.01%] [avg time: 0.065 ms]
17:34:45: ==============================================================
17:34:45:
17:34:45:
17:34:45: Profiler CPU results:
17:34:45:
17:34:45: ==============================================================
17:34:45: video thread frame - [cpu time: avg 0.232 ms, total 93.6 ms] [avg calls per frame: 1]
17:34:45: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
17:34:45: | GPU download and conversion - [cpu time: avg 0.154 ms, total 62.4 ms] [avg calls per frame: 1]
17:34:45: | | flush - [cpu time: avg 0.077 ms, total 31.2 ms] [avg calls per frame: 1]
17:34:45: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
17:34:45: | | conversion to 4:2:0 - [cpu time: avg 0.04 ms, total 15.6 ms] [avg calls per frame: 1]
17:34:45: Convert444Threads - [cpu time: avg 1.384 ms, total 1060.81 ms] [avg calls per frame: 2]
17:34:45: | Convert444toNV12 - [cpu time: avg 1.364 ms, total 1045.21 ms] [avg calls per frame: 2]
17:34:45: encoder thread frame - [cpu time: avg 1.662 ms, total 655.204 ms] [avg calls per frame: 1]
17:34:45: | sending stuff out - [cpu time: avg 0.158 ms, total 62.4 ms] [avg calls per frame: 1]
17:34:45: ==============================================================
17:34:45:
17:34:45: =====Stream End: 2014-02-21, 17:34:45=================================================https://gist.github.com/anonymous/e832f982306956880c2c

My OBS Cpu usage normally floats around 15-18 which from what i've read is normal, but every few minutes it skyrockets to 25-40 and it kills my framerate. I've tried everything that I can think of and read online. Thanks in advance.
 

hilalpro

Member
Try using the 64bit version of OBS for more encoding performance and lower it's priority so the game threads don't get stalled by OBS's threads.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
You're streaming at kind of a high resolution. Perhaps just try a tiny bit more downscale?
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Downscaling didn't help? Very strange, seeing as that's the most direct way to reduce CPU usage. Do you have a new log from that session?
 

Derkyy

New Member
Code:
20:38:09: Open Broadcaster Software v0.612b - 64bit ( ^ω^)
20:38:09: -------------------------------
20:38:09: CPU Name: AMD FX(tm)-8350 Eight-Core Processor
20:38:09: CPU Speed: 4018MHz
20:38:09: Physical Memory: 8174MB Total, 6158MB Free
20:38:09: stepping id: 0, model 2, family 21, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 8, total cores 4
20:38:09: monitor 1: pos={-1440, 0}, size={1440, 900}
20:38:09: monitor 2: pos={0, 0}, size={1360, 768}
20:38:09: Windows Version: 6.1 Build 7601 S
20:38:09: Aero is Enabled
20:38:09: -------------------------------
20:38:09: OBS Modules:
20:38:09: Base Address Module
20:38:09: 000000003F470000 OBS.exe
20:38:09: 00000000E0670000 OBSApi.dll
20:38:09: 00000000F7470000 DShowPlugin.dll
20:38:09: 00000000F7380000 GraphicsCapture.dll
20:38:09: 00000000F7450000 NoiseGate.dll
20:38:09: 00000000F0890000 PSVPlugin.dll
20:38:09: ------------------------------------------
20:38:09: Adapter 1
20:38:09: Video Adapter: AMD Radeon HD 7900 Series
20:38:09: Video Adapter Dedicated Video Memory: 3202392064
20:38:09: Video Adapter Shared System Memory: 4017156096
20:38:09: Video Adapter Output 1: pos={0, 0}, size={1360, 768}, attached=true
20:38:09: Video Adapter Output 2: pos={-1440, 0}, size={1440, 900}, attached=true
20:38:09: =====Stream Start: 2014-02-22, 20:38:09===============================================
20:38:09: Multithreaded optimizations: On
20:38:09: Base resolution: 1440x900
20:38:09: Output resolution: 1440x900
20:38:09: ------------------------------------------
20:38:09: Loading up D3D10 on AMD Radeon HD 7900 Series (Adapter 1)...
20:38:09: ------------------------------------------
20:38:09: Audio Format: 48000hz
20:38:09: Playback device Default
20:38:09: ------------------------------------------
20:38:09: Using desktop audio input: Speakers (2- Logitech G930 Headset)
20:38:09: Using 7.1 surround speaker setup
20:38:09: ------------------------------------------
20:38:09: Using auxilary audio input: Microphone (2- Logitech G930 Headset)
20:38:09: ------------------------------------------
20:38:09: Audio Encoding: AAC
20:38:09: bitrate: 128
20:38:09: Using graphics capture
20:38:09: Using graphics capture
20:38:09: Using graphics capture
20:38:09: Scene buffering time set to 700
20:38:09: ------------------------------------------
20:38:09: Video Encoding: x264
20:38:09: fps: 30
20:38:09: width: 1440, height: 900
20:38:09: preset: veryfast
20:38:09: profile: main
20:38:09: keyint: 60
20:38:09: CBR: yes
20:38:09: CFR: no
20:38:09: max bitrate: 3100
20:38:09: buffer size: 3100
20:38:09: ------------------------------------------
20:38:12: Using RTMP service: Twitch / Justin.tv
20:38:12: Server selection: rtmp://live-ord.justin.tv/app
20:38:12: Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
20:38:12: Completed handshake with rtmp://live-ord.justin.tv/app in 176 ms.
20:38:14: SO_SNDBUF was at 8192
20:38:14: SO_SNDBUF is now 65536
20:38:14: SharedTexCapture hooked
20:38:15: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 412672)
20:39:00: GraphicsCaptureSource::NewCapture: eliminating old capture
20:39:00: SharedTexCapture hooked
20:41:18: RTMPPublisher::SocketLoop: Stalled for 1567 ms to write 228398 bytes (buffer: 0 / 412672), unstable connection?
20:41:23: RTMPPublisher::SocketLoop: Stalled for 1850 ms to write 411096 bytes (buffer: 0 / 412672), unstable connection?
20:41:26: RTMPPublisher::SocketLoop: Stalled for 2357 ms to write 409172 bytes (buffer: 0 / 412672), unstable connection?
20:42:33: Total frames encoded: 7887, total frames duplicated: 80 (1.01%)
20:42:33: Total frames rendered: 7838, number of late frames: 12 (0.15%) (it's okay for some frames to be late)
20:42:33: RTMPPublisher::SocketLoop: Graceful loop exit
20:42:34: Average send payload: 9822 bytes, average send interval: 24 ms
20:42:34: Number of times waited to send: 15, Waited for a total of 59637 bytes
20:42:34: Number of b-frames dropped: 78 (1%), Number of p-frames dropped: 102 (1.3%), Total 180 (2.3%)
20:42:34: Number of bytes sent: 103012282
20:42:34:
20:42:34: Profiler time results:
20:42:34:
20:42:34: ==============================================================
20:42:34: video thread frame - [100%] [avg time: 1.283 ms] [children: 33%] [unaccounted: 67%]
20:42:34: | scene->Preprocess - [0.156%] [avg time: 0.002 ms]
20:42:34: | GPU download and conversion - [32.8%] [avg time: 0.421 ms] [children: 28.2%] [unaccounted: 4.6%]
20:42:34: | | flush - [26.5%] [avg time: 0.34 ms]
20:42:34: | | CopyResource - [1.33%] [avg time: 0.017 ms]
20:42:34: | | conversion to 4:2:0 - [0.39%] [avg time: 0.005 ms]
20:42:34: Convert444Threads - [100%] [avg time: 1.797 ms] [children: 99.6%] [unaccounted: 0.445%]
20:42:34: | Convert444toNV12 - [99.6%] [avg time: 1.789 ms]
20:42:34: encoder thread frame - [100%] [avg time: 2.611 ms] [children: 2.41%] [unaccounted: 97.6%]
20:42:34: | sending stuff out - [2.41%] [avg time: 0.063 ms]
20:42:34: ==============================================================
20:42:34:
20:42:34:
20:42:34: Profiler CPU results:
20:42:34:
20:42:34: ==============================================================
20:42:34: video thread frame - [cpu time: avg 0.107 ms, total 842.405 ms] [avg calls per frame: 1]
20:42:34: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:42:34: | GPU download and conversion - [cpu time: avg 0.063 ms, total 499.203 ms] [avg calls per frame: 1]
20:42:34: | | flush - [cpu time: avg 0.051 ms, total 405.603 ms] [avg calls per frame: 1]
20:42:34: | | CopyResource - [cpu time: avg 0.003 ms, total 31.2 ms] [avg calls per frame: 1]
20:42:34: | | conversion to 4:2:0 - [cpu time: avg 0.001 ms, total 15.6 ms] [avg calls per frame: 1]
20:42:34: Convert444Threads - [cpu time: avg 1.661 ms, total 25958.6 ms] [avg calls per frame: 2]
20:42:34: | Convert444toNV12 - [cpu time: avg 1.66 ms, total 25943 ms] [avg calls per frame: 2]
20:42:34: encoder thread frame - [cpu time: avg 2.058 ms, total 16192.9 ms] [avg calls per frame: 1]
20:42:34: | sending stuff out - [cpu time: avg 0.047 ms, total 374.403 ms] [avg calls per frame: 1]
20:42:34: ==============================================================
20:42:34:
20:42:34: =====Stream End: 2014-02-22, 20:42:34=================================================
20:46:57: Settings::Video: Enabling Aero
20:47:34: =====Stream Start: 2014-02-22, 20:47:34===============================================
20:47:34: Multithreaded optimizations: On
20:47:34: Base resolution: 1280x720
20:47:34: Output resolution: 1280x720
20:47:34: ------------------------------------------
20:47:34: Loading up D3D10 on AMD Radeon HD 7900 Series (Adapter 1)...
20:47:34: ------------------------------------------
20:47:34: Audio Format: 48000hz
20:47:34: Playback device Default
20:47:34: ------------------------------------------
20:47:34: Using desktop audio input: Speakers (2- Logitech G930 Headset)
20:47:34: Using 7.1 surround speaker setup
20:47:34: ------------------------------------------
20:47:34: Using auxilary audio input: Microphone (2- Logitech G930 Headset)
20:47:34: ------------------------------------------
20:47:34: Audio Encoding: AAC
20:47:34: bitrate: 128
20:47:34: Using graphics capture
20:47:34: Using graphics capture
20:47:34: Using graphics capture
20:47:34: Scene buffering time set to 700
20:47:34: ------------------------------------------
20:47:34: Video Encoding: x264
20:47:34: fps: 30
20:47:34: width: 1280, height: 720
20:47:34: preset: veryfast
20:47:34: profile: main
20:47:34: keyint: 60
20:47:34: CBR: yes
20:47:34: CFR: no
20:47:34: max bitrate: 3100
20:47:34: buffer size: 3100
20:47:34: ------------------------------------------
20:47:37: Using RTMP service: Twitch / Justin.tv
20:47:37: Server selection: rtmp://live-ord.justin.tv/app
20:47:37: Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
20:47:37: Completed handshake with rtmp://live-ord.justin.tv/app in 183 ms.
Warning -- SharedTexCapture::Init: Could not open file mapping: 2
20:47:38: SO_SNDBUF was at 8192
20:47:38: SO_SNDBUF is now 65536
20:47:39: SharedTexCapture hooked
20:47:39: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 412672)
20:48:15: Failed loading CUDA dll
20:48:48: Total frames encoded: 2199, total frames duplicated: 31 (1.41%)
20:48:48: Total frames rendered: 2179, number of late frames: 7 (0.32%) (it's okay for some frames to be late)
20:48:49: RTMPPublisher::SocketLoop: Graceful loop exit
20:48:49: Average send payload: 9204 bytes, average send interval: 22 ms
20:48:49: Number of times waited to send: 0, Waited for a total of 0 bytes
20:48:49: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
20:48:49: Number of bytes sent: 28201609
20:48:49:
20:48:49: Profiler time results:
20:48:49:
20:48:49: ==============================================================
20:48:49: video thread frame - [100%] [avg time: 1.082 ms] [children: 16%] [unaccounted: 84%]
20:48:49: | scene->Preprocess - [0.185%] [avg time: 0.002 ms]
20:48:49: | GPU download and conversion - [15.8%] [avg time: 0.171 ms] [children: 11.7%] [unaccounted: 4.07%]
20:48:49: | | flush - [10.7%] [avg time: 0.116 ms]
20:48:49: | | CopyResource - [0.739%] [avg time: 0.008 ms]
20:48:49: | | conversion to 4:2:0 - [0.277%] [avg time: 0.003 ms]
20:48:49: Convert444Threads - [100%] [avg time: 0.772 ms] [children: 99.4%] [unaccounted: 0.648%]
20:48:49: | Convert444toNV12 - [99.4%] [avg time: 0.767 ms]
20:48:49: encoder thread frame - [100%] [avg time: 1.235 ms] [children: 3.48%] [unaccounted: 96.5%]
20:48:49: | sending stuff out - [3.48%] [avg time: 0.043 ms]
20:48:49: ==============================================================
20:48:49:
20:48:49:
20:48:49: Profiler CPU results:
20:48:49:
20:48:49: ==============================================================
20:48:49: video thread frame - [cpu time: avg 0.007 ms, total 15.6 ms] [avg calls per frame: 1]
20:48:49: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:48:49: | GPU download and conversion - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:48:49: | | flush - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:48:49: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:48:49: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:48:49: Convert444Threads - [cpu time: avg 0.879 ms, total 3790.82 ms] [avg calls per frame: 2]
20:48:49: | Convert444toNV12 - [cpu time: avg 0.879 ms, total 3790.82 ms] [avg calls per frame: 2]
20:48:49: encoder thread frame - [cpu time: avg 1.009 ms, total 2199.61 ms] [avg calls per frame: 1]
20:48:49: | sending stuff out - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:48:49: ==============================================================
20:48:49:
20:48:49: =====Stream End: 2014-02-22, 20:48:49=================================================
20:49:10: Settings::Video: Enabling Aero
20:49:11: =====Stream Start: 2014-02-22, 20:49:11===============================================
20:49:11: Multithreaded optimizations: On
20:49:11: Base resolution: 1440x900
20:49:11: Output resolution: 1152x720
20:49:11: ------------------------------------------
20:49:11: Loading up D3D10 on AMD Radeon HD 7900 Series (Adapter 1)...
20:49:11: ------------------------------------------
20:49:11: Audio Format: 48000hz
20:49:11: Playback device Default
20:49:11: ------------------------------------------
20:49:11: Using desktop audio input: Speakers (2- Logitech G930 Headset)
20:49:11: Using 7.1 surround speaker setup
20:49:11: ------------------------------------------
20:49:11: Using auxilary audio input: Microphone (2- Logitech G930 Headset)
20:49:11: ------------------------------------------
20:49:11: Audio Encoding: AAC
20:49:11: bitrate: 128
20:49:11: Using graphics capture
20:49:11: Using graphics capture
20:49:11: Using graphics capture
20:49:11: Scene buffering time set to 700
20:49:11: ------------------------------------------
20:49:11: Video Encoding: x264
20:49:11: fps: 30
20:49:11: width: 1152, height: 720
20:49:11: preset: faster
20:49:11: profile: main
20:49:11: keyint: 60
20:49:11: CBR: yes
20:49:11: CFR: no
20:49:11: max bitrate: 3100
20:49:11: buffer size: 3100
20:49:11: ------------------------------------------
20:49:14: Using RTMP service: Twitch / Justin.tv
20:49:14: Server selection: rtmp://live-ord.justin.tv/app
20:49:14: Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
20:49:14: Completed handshake with rtmp://live-ord.justin.tv/app in 284 ms.
20:49:15: SO_SNDBUF was at 8192
20:49:15: SO_SNDBUF is now 65536
20:49:17: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 412672)
Warning -- SharedTexCapture::Init: Could not open file mapping: 2
20:49:19: SharedTexCapture hooked
20:50:48: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 0 / 412672)
20:52:01: Total frames encoded: 5065, total frames duplicated: 37 (0.73%)
20:52:01: Total frames rendered: 5046, number of late frames: 5 (0.10%) (it's okay for some frames to be late)
20:52:01: RTMPPublisher::SocketLoop: Graceful loop exit
20:52:01: Average send payload: 7540 bytes, average send interval: 18 ms
20:52:01: Number of times waited to send: 0, Waited for a total of 0 bytes
20:52:01: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
20:52:01: Number of bytes sent: 66701496
20:52:01:
20:52:01: Profiler time results:
20:52:01:
20:52:01: ==============================================================
20:52:01: video thread frame - [100%] [avg time: 0.985 ms] [children: 26.4%] [unaccounted: 73.6%]
20:52:01: | scene->Preprocess - [0.203%] [avg time: 0.002 ms]
20:52:01: | GPU download and conversion - [26.2%] [avg time: 0.258 ms] [children: 22.5%] [unaccounted: 3.65%]
20:52:01: | | flush - [21%] [avg time: 0.207 ms]
20:52:01: | | CopyResource - [1.12%] [avg time: 0.011 ms]
20:52:01: | | conversion to 4:2:0 - [0.406%] [avg time: 0.004 ms]
20:52:01: Convert444Threads - [100%] [avg time: 0.989 ms] [children: 99.4%] [unaccounted: 0.607%]
20:52:01: | Convert444toNV12 - [99.4%] [avg time: 0.983 ms]
20:52:01: encoder thread frame - [100%] [avg time: 1.409 ms] [children: 3.12%] [unaccounted: 96.9%]
20:52:01: | sending stuff out - [3.12%] [avg time: 0.044 ms]
20:52:01: ==============================================================
20:52:01:
20:52:01:
20:52:01: Profiler CPU results:
20:52:01:
20:52:01: ==============================================================
20:52:01: video thread frame - [cpu time: avg 0.068 ms, total 343.202 ms] [avg calls per frame: 1]
20:52:01: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:52:01: | GPU download and conversion - [cpu time: avg 0.04 ms, total 202.8 ms] [avg calls per frame: 1]
20:52:01: | | flush - [cpu time: avg 0.034 ms, total 171.6 ms] [avg calls per frame: 1]
20:52:01: | | CopyResource - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:52:01: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
20:52:01: Convert444Threads - [cpu time: avg 0.93 ms, total 9344.46 ms] [avg calls per frame: 2]
20:52:01: | Convert444toNV12 - [cpu time: avg 0.93 ms, total 9344.46 ms] [avg calls per frame: 2]
20:52:01: encoder thread frame - [cpu time: avg 1.014 ms, total 5116.83 ms] [avg calls per frame: 1]
20:52:01: | sending stuff out - [cpu time: avg 0.043 ms, total 218.403 ms] [avg calls per frame: 1]
20:52:01: ==============================================================
20:52:01:
20:52:01: =====Stream End: 2014-02-22, 20:52:01=================================================
20:52:11: =====Stream Start: 2014-02-22, 20:52:11===============================================
20:52:11: Multithreaded optimizations: On
20:52:11: Base resolution: 1440x900
20:52:11: Output resolution: 1152x720
20:52:11: ------------------------------------------
20:52:11: Loading up D3D10 on AMD Radeon HD 7900 Series (Adapter 1)...
20:52:11: ------------------------------------------
20:52:11: Audio Format: 48000hz
20:52:11: Playback device Default
20:52:11: ------------------------------------------
20:52:11: Using desktop audio input: Speakers (2- Logitech G930 Headset)
20:52:11: Using 7.1 surround speaker setup
20:52:11: ------------------------------------------
20:52:11: Using auxilary audio input: Microphone (2- Logitech G930 Headset)
20:52:11: ------------------------------------------
20:52:11: Audio Encoding: AAC
20:52:11: bitrate: 128
20:52:11: Using graphics capture
20:52:11: Using graphics capture
20:52:11: Using graphics capture
20:52:11: Scene buffering time set to 700
20:52:11: ------------------------------------------
20:52:11: Video Encoding: x264
20:52:11: fps: 30
20:52:11: width: 1152, height: 720
20:52:11: preset: ultrafast
20:52:11: profile: main
20:52:11: keyint: 60
20:52:11: CBR: yes
20:52:11: CFR: no
20:52:11: max bitrate: 3100
20:52:11: buffer size: 3100
20:52:11: ------------------------------------------
20:52:14: Using RTMP service: Twitch / Justin.tv
20:52:14: Server selection: rtmp://live-ord.justin.tv/app
20:52:14: Interface: Realtek PCIe GBE Family Controller (ethernet, 100 mbps)
20:52:14: SharedTexCapture hooked
20:52:14: Completed handshake with rtmp://live-ord.justin.tv/app in 208 ms.
20:52:15: SO_SNDBUF was at 8192
20:52:15: SO_SNDBUF is now 65536
20:52:16: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 131072 (buffer: 0 / 412672)
20:52:21: GraphicsCaptureSource::NewCapture: eliminating old capture
20:52:21: SharedTexCapture hooked
20:55:18: RTMPPublisher::SocketLoop: Increasing send buffer to ISB 262144 (buffer: 441 / 412672)
21:05:33: GraphicsCaptureSource::NewCapture: eliminating old capture
21:05:33: SharedTexCapture hooked
21:25:27: Capture window 0x000203C6 invalid or changing, terminating capture
21:25:35: Total frames encoded: 60073, total frames duplicated: 93 (0.15%)
21:25:35: Total frames rendered: 60016, number of late frames: 18 (0.03%) (it's okay for some frames to be late)
21:25:35: RTMPPublisher::SocketLoop: Graceful loop exit
21:25:35: Average send payload: 8337 bytes, average send interval: 20 ms
21:25:35: Number of times waited to send: 0, Waited for a total of 0 bytes
21:25:35: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
21:25:35: Number of bytes sent: 808527414
21:25:35:
21:25:35: Profiler time results:
21:25:35:
21:25:35: ==============================================================
21:25:35: video thread frame - [100%] [avg time: 0.882 ms] [children: 68.5%] [unaccounted: 31.5%]
21:25:35: | scene->Preprocess - [0.227%] [avg time: 0.002 ms]
21:25:35: | GPU download and conversion - [68.3%] [avg time: 0.602 ms] [children: 66%] [unaccounted: 2.27%]
21:25:35: | | flush - [63.8%] [avg time: 0.563 ms]
21:25:35: | | CopyResource - [1.7%] [avg time: 0.015 ms]
21:25:35: | | conversion to 4:2:0 - [0.454%] [avg time: 0.004 ms]
21:25:35: Convert444Threads - [100%] [avg time: 0.849 ms] [children: 99.3%] [unaccounted: 0.707%]
21:25:35: | Convert444toNV12 - [99.3%] [avg time: 0.843 ms]
21:25:35: encoder thread frame - [100%] [avg time: 1.11 ms] [children: 5.41%] [unaccounted: 94.6%]
21:25:35: | sending stuff out - [5.41%] [avg time: 0.06 ms]
21:25:35: ==============================================================
21:25:35:
21:25:35:
21:25:35: Profiler CPU results:
21:25:35:
21:25:35: ==============================================================
21:25:35: video thread frame - [cpu time: avg 0.084 ms, total 5054.43 ms] [avg calls per frame: 1]
21:25:35: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:25:35: | GPU download and conversion - [cpu time: avg 0.068 ms, total 4102.83 ms] [avg calls per frame: 1]
21:25:35: | | flush - [cpu time: avg 0.066 ms, total 3962.43 ms] [avg calls per frame: 1]
21:25:35: | | CopyResource - [cpu time: avg 0.001 ms, total 93.601 ms] [avg calls per frame: 1]
21:25:35: | | conversion to 4:2:0 - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
21:25:35: Convert444Threads - [cpu time: avg 0.575 ms, total 69030.4 ms] [avg calls per frame: 2]
21:25:35: | Convert444toNV12 - [cpu time: avg 0.572 ms, total 68687.2 ms] [avg calls per frame: 2]
21:25:35: encoder thread frame - [cpu time: avg 0.507 ms, total 30451.4 ms] [avg calls per frame: 1]
21:25:35: | sending stuff out - [cpu time: avg 0.081 ms, total 4882.83 ms] [avg calls per frame: 1]
21:25:35: ==============================================================
21:25:35:
21:25:35: =====Stream End: 2014-02-22, 21:25:35=================================================
 
 
Last Game Capture Log:
2014-02-22, 20:38:13: we're booting up:
20:38:13: CaptureThread: attached to process csgo.exe
20:38:13: D3D9 Present
20:38:13: NV Capture available
20:38:13: FBO available
20:38:13: GL Present
20:38:13: (half life scientist) everything.. seems to be in order
20:38:14: D3D9EndScene called
20:38:14: D3DPRESENT_PARAMETERS {
20:38:14: BackBufferWidth: 1360
20:38:14: BackBufferHeight: 768
20:38:14: BackBufferFormat: D3DFMT_A8R8G8B8
20:38:14: BackBufferCount: 1
20:38:14: MultiSampleType: D3DMULTISAMPLE_NONE
20:38:14: MultiSampleQuality: 0
20:38:14: SwapEffect: D3DSWAPEFFECT_DISCARD
20:38:14: hDeviceWindow: 132038
20:38:14: Windowed: false
20:38:14: EnableAutoDepthStencil: true
20:38:14: AutoDepthStencilFormat: D3DFMT_D24S8
20:38:14: Flags: None
20:38:14: FullScreen_RefreshRateInHz: 60
20:38:14: PresentationInterval: 2147483648
20:38:14: };
20:38:14: successfully set up d3d9 hooks
20:38:14: D3D9Present called
20:38:14: DoD3D9GPUHook: success
20:38:19: D3DSURFACE_DESC {
20:38:19: Format: D3DFMT_A8R8G8B8
20:38:19: Type: D3DRTYPE_SURFACE
20:38:19: Usage: D3DUSAGE_RENDERTARGET
20:38:19: Pool: D3DPOOL_DEFAULT
20:38:19: MultiSampleType: D3DMULTISAMPLE_NONE
20:38:19: MultiSampleQuality: 0
20:38:19: Width: 1360
20:38:19: Height: 768
20:38:19: };
20:38:19: successfully capturing d3d9 frames via GPU
20:38:58: D3D9Reset called
20:38:58: ---------------------- Cleared D3D9 Capture ----------------------
20:38:58: successfully set up d3d9 hooks
20:39:00: D3D9EndScene called
20:39:00: D3D9Present called
20:39:00: DoD3D9GPUHook: success
20:39:00: D3DSURFACE_DESC {
20:39:00: Format: D3DFMT_A8R8G8B8
20:39:00: Type: D3DRTYPE_SURFACE
20:39:00: Usage: D3DUSAGE_RENDERTARGET
20:39:00: Pool: D3DPOOL_DEFAULT
20:39:00: MultiSampleType: D3DMULTISAMPLE_NONE
20:39:00: MultiSampleQuality: 0
20:39:00: Width: 1360
20:39:00: Height: 768
20:39:00: };
20:39:00: successfully capturing d3d9 frames via GPU
20:47:37: ---------------------- Cleared D3D9 Capture ----------------------
20:47:37: received restart event, capturing
20:47:38: DoD3D9GPUHook: success
20:47:38: D3D9Reset called
20:47:38: ---------------------- Cleared D3D9 Capture ----------------------
20:47:38: successfully set up d3d9 hooks
20:47:39: D3D9EndScene called
20:47:39: D3D9Present called
20:47:39: DoD3D9GPUHook: success
20:47:39: D3DSURFACE_DESC {
20:47:39: Format: D3DFMT_A8R8G8B8
20:47:39: Type: D3DRTYPE_SURFACE
20:47:39: Usage: D3DUSAGE_RENDERTARGET
20:47:39: Pool: D3DPOOL_DEFAULT
20:47:39: MultiSampleType: D3DMULTISAMPLE_NONE
20:47:39: MultiSampleQuality: 0
20:47:39: Width: 1360
20:47:39: Height: 768
20:47:39: };
20:47:39: successfully capturing d3d9 frames via GPU
20:49:18: ---------------------- Cleared D3D9 Capture ----------------------
20:49:18: received restart event, capturing
20:49:18: DoD3D9GPUHook: success
20:49:18: D3D9Reset called
20:49:18: ---------------------- Cleared D3D9 Capture ----------------------
20:49:18: successfully set up d3d9 hooks
20:49:19: D3D9EndScene called
20:49:19: D3D9Present called
20:49:19: DoD3D9GPUHook: success
20:49:19: D3DSURFACE_DESC {
20:49:19: Format: D3DFMT_A8R8G8B8
20:49:19: Type: D3DRTYPE_SURFACE
20:49:19: Usage: D3DUSAGE_RENDERTARGET
20:49:19: Pool: D3DPOOL_DEFAULT
20:49:19: MultiSampleType: D3DMULTISAMPLE_NONE
20:49:19: MultiSampleQuality: 0
20:49:19: Width: 1360
20:49:19: Height: 768
20:49:19: };
20:49:19: successfully capturing d3d9 frames via GPU
20:52:13: ---------------------- Cleared D3D9 Capture ----------------------
20:52:13: received restart event, capturing
20:52:14: DoD3D9GPUHook: success
20:52:14: D3D9Reset called
20:52:14: ---------------------- Cleared D3D9 Capture ----------------------
20:52:14: successfully set up d3d9 hooks
20:52:21: D3D9EndScene called
20:52:21: D3D9Present called
20:52:21: DoD3D9GPUHook: success
20:52:21: D3DSURFACE_DESC {
20:52:21: Format: D3DFMT_A8R8G8B8
20:52:21: Type: D3DRTYPE_SURFACE
20:52:21: Usage: D3DUSAGE_RENDERTARGET
20:52:21: Pool: D3DPOOL_DEFAULT
20:52:21: MultiSampleType: D3DMULTISAMPLE_NONE
20:52:21: MultiSampleQuality: 0
20:52:21: Width: 1360
20:52:21: Height: 768
20:52:21: };
20:52:21: successfully capturing d3d9 frames via GPU
21:05:30: D3D9Reset called
21:05:31: ---------------------- Cleared D3D9 Capture ----------------------
21:05:31: successfully set up d3d9 hooks
21:05:33: D3D9EndScene called
21:05:33: D3D9Present called
21:05:33: DoD3D9GPUHook: success
21:05:33: D3DSURFACE_DESC {
21:05:33: Format: D3DFMT_A8R8G8B8
21:05:33: Type: D3DRTYPE_SURFACE
21:05:33: Usage: D3DUSAGE_RENDERTARGET
21:05:33: Pool: D3DPOOL_DEFAULT
21:05:33: MultiSampleType: D3DMULTISAMPLE_NONE
21:05:33: MultiSampleQuality: 0
21:05:33: Width: 1360
21:05:33: Height: 768
21:05:33: };
21:05:33: successfully capturing d3d9 frames via GPUhttps://gist.github.com/f4fe8299a574629b22a5

There was some dropped frames and I know what the cause of that was and there also some changed settings (x264 cpu preset) I was merely trying to get different results... which I did. My OBS Cpu usage was around 5-8 constantly and when I'd get the fps drop it'd only shoot up to 11-15% CPU usage, but my CS:GO FPS would drop from 200 to 40 during said spikes.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
I've seen some sort of CPU throttling happen with CS:GO specifically in some rare cases, though I have no idea what causes it when it does happen. I've seen a similar case at least once or twice before where CS:GO's FPS would just drop for no reason even when OBS wasn't even really encoding all that much. I would recommend trying more downscale again just as a test.

I'm not entirely sure what to suggest at this point because I'm just as baffled as you are. Maybe there's something else causing this? The only thing that OBS spends CPU cycles on is encoding, and OBS uses the most common h264 encoder known to man, so I really don't think it would be caused by that, though who knows for sure at this point.
 

Derkyy

New Member
Well first off I appericate you taking the time to try to figure this out. But CS:GO isn't the only thing thats giving me these CPU spikes tomorrow I should have access to another CPU and i'm going to swap it out and see if thats my issue mainly because I've seen other issues when it comes to streaming and the FX series AMD CPUs... So who knows. And as for trying more scaling i've gotten all the way down to 480 and it still gives me the same issues.
 

Bensam123

Member
Derky try disabling core parking, it can help with stuttering and spiky CPU usage. It definitely helps with Bulldozer and newer AMD processors.

http://bitsum.com/about_cpu_core_parking.php

That aside I've had problem with .612b, try using .60b as well and see if that fixes things. I didn't look at CPU utilization, but I was getting hard locks.
 

Derkyy

New Member
Bensam123 said:
Derky try disabling core parking, it can help with stuttering and spiky CPU usage. It definitely helps with Bulldozer and newer AMD processors.

http://bitsum.com/about_cpu_core_parking.php

That aside I've had problem with .612b, try using .60b as well and see if that fixes things. I didn't look at CPU utilization, but I was getting hard locks.

Not sure which one worked but I tried both and its working FAMOUSLY! Thank you for your help and thank you Jim

**I tried on cs and it worked great along with Dota 2 but , I loaded up rust and I got the high CPU usage stutters again.
*** Played cs again few hours later... getting the same stutter.
 

Derkyy

New Member
Though no related to OBS I do get spikes while playing BF4, it normally sits around 50% CPU usage and when I get FPS drops it goes up to around 60% so possibly i'm not getting enough power to my CPU?
 

Bensam123

Member
Could it be your CPU is throttling itself and the spikes are due to a reduction in CPU frequency? I'd keep something like CPUZ open on another screen so you can watch the frequency of your CPU while playing.

I stream 720p@30 with a 8350 and it sits around 16% CPU utilization. Sometimes a bit higher, sometimes lower...
 

Derkyy

New Member
Well after a lot of troubleshooting I figured it out ( kinda ) after monitoring my CPU status I was noticing my CPU would drop from 4.1ghz to 1.7ghz and my volt would drop to .9 volts almost as if the AMD Cool n quiet feature was on ( which it wasn't ) so I set my CPU to a static frequency and voila it is working like a charm, I appreciate everyone investing some time in helping me figure this issue out.
 

Bensam123

Member
Yup... something to consider is updating the bios. You may have a older motherboard which doesn't fully support a 8350 without a flash. Otherwise it could be temperature throttling.
 
Top