Question / Help High CPU usage and stuttering

solomonyo

Member
Hello guys.

I run with an FX-8350 Overclocked to 4.5Ghz(temps and such are fine) but I've noticed when playing BF3 that the cpu usage is up towards 70-85% while I'm on ~70-100FPS ingame. However, I've also noticed stuttering(lagspikes time to time) when playing BF3. It works just fine for any other game.

My speccs:
CPU: AMD FX 8350 @ 4.5GHz
GPU: GeForce GTX 650Ti BOOST 2048MB
Motherboard: Asus SABERTOOTH 990FX R2.0
Memory: Corsair 8GB CL8 1600Mhz VENGEANCE

Settings ingame + stream:
Resolution: 1920x1080(ingame) - 1280x720@60fps(stream)
Everything set to low in BF3
Quality Balance: 10
Bitrate/buffer: 3500(both)
Audio Encoding: AAC / 256bitrate
Server: London, UK(Secondary)
Preset: Veryfast


Would you consider this normal when playing a game like BF3?

Thanks
 

solomonyo

Member
Fine.

23:41:17: Open Broadcaster Software v0.542b - 32bit (´・ω・`)
23:41:17: -------------------------------
23:41:17: CPU Name: AMD FX(tm)-8350 Eight-Core Processor
23:41:17: CPU Speed: 4515MHz
23:41:17: Physical Memory: 4095MB Total, 4095MB Free
23:41:17: stepping id: 0, model 2, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 8, total cores 4
23:41:17: monitor 1: pos={0, 0}, size={1920, 1080}
23:41:17: monitor 2: pos={1920, -32}, size={1280, 1024}
23:41:17: Windows Version: 6.1 Build 7601 S
23:41:17: Aero is Enabled
23:41:17: -------------------------------
23:41:17: OBS Modules:
23:41:17: Base Address Module
23:41:17: 009A0000 OBS.exe
23:41:17: 5D350000 OBSApi.dll
23:41:17: 5D110000 DShowPlugin.dll
23:41:17: 5F7B0000 GraphicsCapture.dll
23:41:17: 5D0F0000 NoiseGate.dll
23:41:17: 5D0D0000 PSVPlugin.dll
23:41:17: ------------------------------------------
23:41:17: Adapter 1
23:41:17: Video Adapter: NVIDIA GeForce GTX 650 Ti BOOST
23:41:17: Video Adapter Dedicated Video Memory: 2086993920
23:41:17: Video Adapter Shared System Memory: 2147807232
23:41:17: =====Stream Start: 2013-07-29, 23:41:17===============================================
23:41:17: Multithreaded optimizations: On
23:41:17: Base resolution: 1280x720
23:41:17: Output resolution: 1280x720
23:41:17: ------------------------------------------
23:41:17: Loading up D3D10...
23:41:17: Playback device Default
23:41:17: ------------------------------------------
23:41:17: Using desktop audio input: Speakers (Realtek High Definition Audio)
23:41:17: ------------------------------------------
23:41:17: Using auxilary audio input: Microphone (Realtek High Definition Audio)
23:41:17: ------------------------------------------
23:41:17: Audio Encoding: AAC
23:41:17: bitrate: 256
23:41:17: Using text output
23:41:17: Using text output
23:41:17: Using text output
23:41:17: Using graphics capture
23:41:17: Using graphics capture
23:41:17: ------------------------------------------
23:41:17: Video Encoding: x264
23:41:17: fps: 60
23:41:17: width: 1280, height: 720
23:41:17: preset: veryfast
23:41:17: CBR: no
23:41:17: CFR: no
23:41:17: max bitrate: 3500
23:41:17: buffer size: 3500
23:41:17: quality: 10
23:41:17: ------------------------------------------
23:41:22: SharedTexCapture hooked
23:43:29: GraphicsCaptureSource::NewCapture: eliminating old capture
23:43:29: SharedTexCapture hooked
23:43:32: GraphicsCaptureSource::NewCapture: eliminating old capture
23:43:32: SharedTexCapture hooked
00:31:44: Exit signal received, terminating capture
00:53:41: Total frames rendered: 260503, number of frames that lagged: 133 (0.05%) (it's okay for some frames to lag)
00:53:41: =====Stream End: 2013-07-30, 00:53:41=================================================
00:53:43:
00:53:43: Profiler results:
00:53:43:
00:53:43: ==============================================================
00:53:43: frame - [100%] [avg time: 2.561 ms (cpu time: avg 1.917 ms, total 499422 ms)] [avg calls per frame: 1] [children: 99.7%] [unaccounted: 0.312%]
00:53:43: | frame preprocessing and rendering - [21.6%] [avg time: 0.554 ms (cpu time: avg 0.385 ms, total 100402 ms)] [avg calls per frame: 1] [children: 0.0781%] [unaccounted: 21.6%]
00:53:43: | | scene->Preprocess - [0.0781%] [avg time: 0.002 ms (cpu time: avg 0.002 ms, total 702.002 ms)] [avg calls per frame: 1]
00:53:43: | video encoding and uploading - [78.1%] [avg time: 1.999 ms (cpu time: avg 1.528 ms, total 398193 ms)] [avg calls per frame: 1] [children: 76.1%] [unaccounted: 1.99%]
00:53:43: | | flush - [11.5%] [avg time: 0.295 ms (cpu time: avg 0.022 ms, total 5756.45 ms)] [avg calls per frame: 1]
00:53:43: | | CopyResource - [1.25%] [avg time: 0.032 ms (cpu time: avg 0.011 ms, total 2948.41 ms)] [avg calls per frame: 0]
00:53:43: | | conversion to 4:2:0 - [0.703%] [avg time: 0.018 ms (cpu time: avg 0.008 ms, total 2152.82 ms)] [avg calls per frame: 0]
00:53:43: | | call to encoder - [62.5%] [avg time: 1.601 ms (cpu time: avg 1.467 ms, total 382358 ms)] [avg calls per frame: 0]
00:53:43: | | sending stuff out - [0.0781%] [avg time: 0.002 ms (cpu time: avg 0.001 ms, total 280.802 ms)] [avg calls per frame: 0]
00:53:43: | Convert444Threads - [1.3e+003%] [avg time: 33.34 ms (cpu time: avg 1.131 ms, total 294639 ms)] [avg calls per frame: 1]
00:53:43: ==============================================================
00:53:43:

In this log I was using the Frankfurt server though.
 

vaesauce

Member
The Usage of the CPU seems to be okay and with your frames you shouldn't be experiencing any lag.

In Broadcast Settings, do you have Minimize Network Impact checked?

As for stuttering, when it wasn't my CPU maxing out and crapping on me, I found out that it was because of my Bitrate/Custom Buffer settings. I'd try turning on CBR and unchecking the Custom Buffer and see if that does any justice.

If anything, drop your Bitrate down to 2800 and leave your Custom Buffer where it is and see if that changes anything. I don't know much but from past experiences, whenever my Bitrate and Buffer were the same, I stuttered like CRAZY.

This is all just my opinion though, I'd wait for someone more experienced to Chime in, however if you have nothing to lose, give it a try. Your log looks fine to me.

(This is ingame lag/stutter right? Not ON the stream?)
 

Kharay

Member
Switching to CBR and disabling Custom Buffer Size... is a good a place to start as any. Given the fact the log seems to be fine. But yeah, give that a try and see if it improves.

If all else fails you could also just walk through my Troubleshooting and Startup Guide, following it step by step and see if that resolves something.
 

solomonyo

Member
vaesauce said:
The Usage of the CPU seems to be okay and with your frames you shouldn't be experiencing any lag.

In Broadcast Settings, do you have Minimize Network Impact checked?

As for stuttering, when it wasn't my CPU maxing out and crapping on me, I found out that it was because of my Bitrate/Custom Buffer settings. I'd try turning on CBR and unchecking the Custom Buffer and see if that does any justice.

If anything, drop your Bitrate down to 2800 and leave your Custom Buffer where it is and see if that changes anything. I don't know much but from past experiences, whenever my Bitrate and Buffer were the same, I stuttered like CRAZY.

This is all just my opinion though, I'd wait for someone more experienced to Chime in, however if you have nothing to lose, give it a try. Your log looks fine to me.

(This is ingame lag/stutter right? Not ON the stream?)

I do not have Minimize Network Impact checked, no. Should I check it? :p
I've checked the CBR + uncheck the custom buffer so I will try it out.

And yes, this is ingame stuttering and not on the stream.
 

Kharay

Member
With his hardware there really is no reason to disable Aero. The only circumstance when one might need to disable Aero is when Monitor Capturing and that is just a last resort method either way.
 

solomonyo

Member
Okay, I've gamed for a little over an hour while having the stream on "preview" and I noticed a difference, but I can't say if it was big or if it was small...

This is when using "Use CBR" and the other settings you told me I should try.
But all I can say, it felt like it made a difference, but I'm not really sure since I had some lagspikes/stuttering in the end(due to more people joined) I get the suttering when dropping fps btw. I drop from XX to -10 of that number pretty much.

The log:
10:17:47: Open Broadcaster Software v0.542b - 64bit ( ^ω^)
10:17:47: -------------------------------
10:17:47: CPU Name: AMD FX(tm)-8350 Eight-Core Processor
10:17:47: CPU Speed: 4515MHz
10:17:47: Physical Memory: 8107MB Total, 6507MB Free
10:17:47: stepping id: 0, model 2, family 15, type 0, extmodel 0, extfamily 3, HTT 1, logical cores 8, total cores 4
10:17:47: monitor 1: pos={0, 0}, size={1920, 1080}
10:17:47: monitor 2: pos={1920, -32}, size={1280, 1024}
10:17:47: Windows Version: 6.1 Build 7601 S
10:17:47: Aero is Enabled
10:17:47: -------------------------------
10:17:47: OBS Modules:
10:17:47: Base Address Module
10:17:47: 000000003F910000 OBS.exe
10:17:47: 00000000EE500000 OBSApi.dll
10:17:47: 00000000F1D10000 DShowPlugin.dll
10:17:47: 00000000F1CA0000 GraphicsCapture.dll
10:17:47: 00000000F5240000 NoiseGate.dll
10:17:47: 00000000F4C60000 PSVPlugin.dll
10:17:47: ------------------------------------------
10:17:47: Adapter 1
10:17:47: Video Adapter: NVIDIA GeForce GTX 650 Ti BOOST
10:17:47: Video Adapter Dedicated Video Memory: 2086993920
10:17:47: Video Adapter Shared System Memory: 2147807232
10:17:47: =====Stream Start: 2013-07-30, 10:17:47===============================================
10:17:47: Multithreaded optimizations: On
10:17:47: Base resolution: 1280x720
10:17:47: Output resolution: 1280x720
10:17:47: ------------------------------------------
10:17:47: Loading up D3D10...
10:17:47: Playback device Default
10:17:47: ------------------------------------------
10:17:47: Using desktop audio input: Speakers (Realtek High Definition Audio)
10:17:47: ------------------------------------------
10:17:47: Using auxilary audio input: Microphone (Realtek High Definition Audio)
10:17:47: ------------------------------------------
10:17:47: Audio Encoding: AAC
10:17:47: bitrate: 256
10:17:47: Using text output
10:17:47: Using text output
10:17:47: Using text output
10:17:47: Using graphics capture
10:17:47: Using graphics capture
10:17:47: ------------------------------------------
10:17:47: Video Encoding: x264
10:17:47: fps: 60
10:17:47: width: 1280, height: 720
10:17:47: preset: veryfast
10:17:47: CBR: yes
10:17:47: CFR: no
10:17:47: max bitrate: 3500
10:17:47: ------------------------------------------
10:17:57: SharedTexCapture hooked
10:17:59: GraphicsCaptureSource::NewCapture: eliminating old capture
10:17:59: SharedTexCapture hooked
10:18:09: GraphicsCaptureSource::NewCapture: eliminating old capture
10:18:09: SharedTexCapture hooked
10:18:17: GraphicsCaptureSource::NewCapture: eliminating old capture
10:18:17: SharedTexCapture hooked
10:18:21: GraphicsCaptureSource::NewCapture: eliminating old capture
10:18:21: SharedTexCapture hooked
10:19:36: GraphicsCaptureSource::NewCapture: eliminating old capture
10:19:36: SharedTexCapture hooked
10:42:50: GraphicsCaptureSource::NewCapture: eliminating old capture
10:42:50: SharedTexCapture hooked
10:42:55: GraphicsCaptureSource::NewCapture: eliminating old capture
10:42:55: SharedTexCapture hooked
11:30:51: Exit signal received, terminating capture
11:31:53: Total frames rendered: 266530, number of frames that lagged: 168 (0.06%) (it's okay for some frames to lag)
11:31:53: =====Stream End: 2013-07-30, 11:31:53=================================================
11:35:31:
11:35:31: Profiler results:
11:35:31:
11:35:31: ==============================================================
11:35:31: frame - [100%] [avg time: 2.637 ms (cpu time: avg 1.87 ms, total 498501 ms)] [avg calls per frame: 1] [children: 99.8%] [unaccounted: 0.152%]
11:35:31: | frame preprocessing and rendering - [23%] [avg time: 0.607 ms (cpu time: avg 0.377 ms, total 100714 ms)] [avg calls per frame: 1] [children: 0.0758%] [unaccounted: 22.9%]
11:35:31: | | scene->Preprocess - [0.0758%] [avg time: 0.002 ms (cpu time: avg 0.001 ms, total 405.602 ms)] [avg calls per frame: 1]
11:35:31: | video encoding and uploading - [76.8%] [avg time: 2.026 ms (cpu time: avg 1.49 ms, total 397257 ms)] [avg calls per frame: 1] [children: 69.6%] [unaccounted: 7.21%]
11:35:31: | | flush - [9.18%] [avg time: 0.242 ms (cpu time: avg 0.024 ms, total 6505.24 ms)] [avg calls per frame: 1]
11:35:31: | | CopyResource - [1.52%] [avg time: 0.04 ms (cpu time: avg 0.014 ms, total 3744.02 ms)] [avg calls per frame: 0]
11:35:31: | | conversion to 4:2:0 - [0.265%] [avg time: 0.007 ms (cpu time: avg 0.005 ms, total 1544.41 ms)] [avg calls per frame: 0]
11:35:31: | | call to encoder - [58.6%] [avg time: 1.546 ms (cpu time: avg 1.428 ms, total 380721 ms)] [avg calls per frame: 0]
11:35:31: | | sending stuff out - [0.0379%] [avg time: 0.001 ms (cpu time: avg 0.001 ms, total 374.401 ms)] [avg calls per frame: 0]
11:35:31: | Convert444Threads - [1.26e+003%] [avg time: 33.355 ms (cpu time: avg 1.303 ms, total 347352 ms)] [avg calls per frame: 1]
11:35:31: ==============================================================
11:35:31:

I was wondering though, with the CBR checked, doesn't that mean the quality will suffer?
 

Kharay

Member
CBR will drop the quality, a bit. But conversely, it will stabilize your stream and prevent any spikes from either causing you to drop frames or your viewers experiencing lag.

Anyhow, that latest log looks just fine. If you still notice some lag spikes, frame drop you could consider dropping the bitrate in steps of 50 Kbps until it's completely smooth.
 

solomonyo

Member
livestreamed for 5h today and I still have SOME stuttering. Not as much as I had yesterday though. So it helped and the quality is just fine with the CBR activated.

So I thank you all for the help I've got.
Another question though: Do anyone of you know anything I can use that lower the musics volume while I talk, but makes it higher(to a surten level ofc) when I don't?
 

solomonyo

Member
Kharay said:
http://superuser.com/questions/74116/windows-7-lowers-applications-volume-automatically

That's when someone else is talking.
Or rather, it reduces the sound completely when I'm in a call on skype etc.

If I didn't explain correctly, I'll try again:
I like to have a bit of higher volume when playing games, but the chances of the music over-voicing me when I'm talking to the stream is quite high, so when I'm talking I want it to reduce the volume of the music.
 

Kharay

Member
I did understand correctly and as far as I know that functionality of Windows actually works both ways; ie -- also when you are talking.
 
Top