Question / Help Diablo 3, Doesn't lag my PC but output is extremely choppy

JKingDS

New Member
I've tried tweaking settings plenty of times. No matter what I do it seems to be really choppy. One thing I noticed, is that I'm only running D3 at 1440 x 900, however my stream output is the size of my desktop. I tried sizing the stream same as my D3 size but it cut off the window.

Here's my log

Code:
01:12:54: =====Stream Start: 2013-07-14, 01:12:54===============================================
01:12:54:   Multithreaded optimizations: On
01:12:54:   Base resolution: 1920x1080
01:12:54:   Output resolution: 1920x1080
01:12:54: ------------------------------------------
01:12:54: Loading up D3D10...
01:12:54: Playback device Default
01:12:54: ------------------------------------------
01:12:54: Using desktop audio input: Speakers (Realtek High Definition Audio)
01:12:54: ------------------------------------------
01:12:54: Using auxilary audio input: Microphone (Realtek High Definition Audio)
01:12:54: ------------------------------------------
01:12:54: Audio Encoding: AAC
01:12:54:     bitrate: 128
01:12:54: Using graphics capture
01:12:54: ------------------------------------------
01:12:54: Video Encoding: x264
01:12:54:     fps: 30
01:12:54:     width: 1920, height: 1080
01:12:54:     preset: veryfast
01:12:54:     CBR: yes
01:12:54:     CFR: yes
01:12:54:     max bitrate: 1000
01:12:54: ------------------------------------------
01:12:54: SharedTexCapture hooked
01:12:56: Using RTMP service: Twitch / Justin.tv
01:12:56:   Server selection: rtmp://live-jfk.justin.tv/app
01:12:57: SO_SNDBUF was at 8192
01:12:57: SO_SNDBUF is now 65536
01:13:03: GraphicsCaptureSource::NewCapture:  eliminating old capture
01:13:03: SharedTexCapture hooked
01:16:55: Total frames rendered: 994, number of frames that lagged: 728 (73.24%) (it's okay for some frames to lag)
01:16:55: Total duplicated frames: 6251 (628.87%)
01:16:55: RTMPPublisher::SocketLoop: Aborting due to bStopping
01:16:55: Number of times waited to send: 0, Waited for a total of 0 bytes
01:16:55: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
01:16:55: =====Stream End: 2013-07-14, 01:16:55=================================================
01:21:01: 
01:21:01: Profiler results:
01:21:01: 
01:21:01: ==============================================================
01:21:01: frame - [100%] [avg time: 63.345 ms (cpu time: avg 6.03 ms, total 118904 ms)] [avg calls per frame: 1] [children: 90.4%] [unaccounted: 9.59%]
01:21:01: | scene->Preprocess - [0.00789%] [avg time: 0.005 ms (cpu time: avg 0.001 ms, total 31.2 ms)] [avg calls per frame: 1]
01:21:01: | video encoding and uploading - [90.4%] [avg time: 57.267 ms (cpu time: avg 5.529 ms, total 109029 ms)] [avg calls per frame: 1] [children: 57.7%] [unaccounted: 32.7%]
01:21:01: | | CopyResource - [1.64%] [avg time: 1.042 ms (cpu time: avg 0.088 ms, total 1747.21 ms)] [avg calls per frame: 0]
01:21:01: | | conversion to 4:2:0 - [0.668%] [avg time: 0.423 ms (cpu time: avg 0.011 ms, total 218.403 ms)] [avg calls per frame: 0]
01:21:01: | | call to encoder - [55.3%] [avg time: 35.003 ms (cpu time: avg 5.349 ms, total 105472 ms)] [avg calls per frame: 1]
01:21:01: | | sending stuff out - [0.148%] [avg time: 0.094 ms (cpu time: avg 0.033 ms, total 655.205 ms)] [avg calls per frame: 1]
01:21:01: | Convert444Threads - [122%] [avg time: 77.368 ms (cpu time: avg 3.319 ms, total 65458 ms)] [avg calls per frame: 0]
01:21:01: ==============================================================
01:21:01:
 

JKingDS

New Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

Okay, I used the estimator to get it set up. Still having HUGE choppy issues.

Here's an example of how horrible the video footage comes out: http://www.twitch.tv/jkingds/b/430449216

And here is my COMPLETE newest log file

Code:
13:47:59: Open Broadcaster Software v0.541b - 32bit (´・ω・`)
13:47:59: -------------------------------
13:47:59: CPU Name: Intel(R) Pentium(R) CPU G620 @ 2.60GHz
13:47:59: CPU Speed: 2594MHz
13:47:59: Physical Memory:  4095MB Total, 4095MB Free
13:47:59: stepping id: 7, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 2, total cores 2
13:47:59: monitor 1: pos={0, 0}, size={1600, 900}
13:47:59: Windows Version: 6.1 Build 7601 S
13:47:59: Aero is Disabled
13:47:59: -------------------------------
13:47:59: OBS Modules:
13:47:59: Base Address     Module
13:47:59: 01030000         OBS.exe
13:47:59: 72000000         OBSApi.dll
13:47:59: 73040000         DShowPlugin.dll
13:47:59: 72390000         GraphicsCapture.dll
13:47:59: 72370000         NoiseGate.dll
13:47:59: 72350000         PSVPlugin.dll
13:47:59: ------------------------------------------
13:47:59: Adapter 1
13:47:59:   Video Adapter: Intel(R) HD Graphics
13:47:59:   Video Adapter Dedicated Video Memory: 134217728
13:47:59:   Video Adapter Shared System Memory: 1711276032
13:47:59: =====Stream Start: 2013-07-14, 13:47:59===============================================
13:47:59:   Multithreaded optimizations: On
13:47:59:   Base resolution: 1920x1080
13:47:59:   Output resolution: 1920x1080
13:47:59: ------------------------------------------
13:47:59: Loading up D3D10...
13:47:59: Playback device Default
13:47:59: ------------------------------------------
13:47:59: Using desktop audio input: Speakers (Realtek High Definition Audio)
13:47:59: ------------------------------------------
13:47:59: Using auxilary audio input: Microphone (Realtek High Definition Audio)
13:47:59: ------------------------------------------
13:47:59: Audio Encoding: AAC
13:47:59:     bitrate: 128
13:47:59: Using graphics capture
13:47:59: ------------------------------------------
13:47:59: Video Encoding: x264
13:47:59:     fps: 30
13:47:59:     width: 1920, height: 1080
13:47:59:     preset: veryfast
13:47:59:     CBR: yes
13:47:59:     CFR: yes
13:47:59:     max bitrate: 3600
13:47:59: ------------------------------------------
13:48:01: Using RTMP service: Twitch / Justin.tv
13:48:01:   Server selection: rtmp://live-jfk.justin.tv/app
13:48:02: SO_SNDBUF was at 8192
13:48:02: SO_SNDBUF is now 65536
13:48:04: SharedTexCapture hooked
13:50:08: Total frames rendered: 394, number of frames that lagged: 263 (66.75%) (it's okay for some frames to lag)
13:50:08: Total duplicated frames: 3471 (880.96%)
13:50:08: RTMPPublisher::SocketLoop: Aborting due to loop exit
13:50:08: librtmp error: WriteN, RTMP send error 10035 (79 bytes)
13:50:08: librtmp error: WriteN, RTMP send error 10038 (42 bytes)
13:50:08: Number of times waited to send: 2, Waited for a total of 856 bytes
13:50:08: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
13:50:08: =====Stream End: 2013-07-14, 13:50:08=================================================
13:51:20: 
13:51:20: Profiler results:
13:51:20: 
13:51:20: ==============================================================
13:51:20: frame - [100%] [avg time: 317.398 ms (cpu time: avg 35.436 ms, total 13962.1 ms)] [avg calls per frame: 1] [children: 90.8%] [unaccounted: 9.16%]
13:51:20: | scene->Preprocess - [0.000315%] [avg time: 0.001 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 1]
13:51:20: | video encoding and uploading - [90.8%] [avg time: 288.318 ms (cpu time: avg 34.922 ms, total 13759.3 ms)] [avg calls per frame: 1] [children: 78.1%] [unaccounted: 12.8%]
13:51:20: | | CopyResource - [0.0476%] [avg time: 0.151 ms (cpu time: avg 0.118 ms, total 46.8 ms)] [avg calls per frame: 0]
13:51:20: | | conversion to 4:2:0 - [0.128%] [avg time: 0.407 ms (cpu time: avg 0 ms, total 0 ms)] [avg calls per frame: 0]
13:51:20: | | call to encoder - [77.8%] [avg time: 246.782 ms (cpu time: avg 34.248 ms, total 13494.1 ms)] [avg calls per frame: 9]
13:51:20: | | sending stuff out - [0.157%] [avg time: 0.499 ms (cpu time: avg 0.395 ms, total 156.003 ms)] [avg calls per frame: 9]
13:51:20: | Convert444Threads - [103%] [avg time: 325.54 ms (cpu time: avg 3.286 ms, total 1294.81 ms)] [avg calls per frame: 0]
13:51:20: ==============================================================
13:51:20:
 

Kharay

Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

logfile said:
Total frames rendered: 394, number of frames that lagged: 263 (66.75%) (it's okay for some frames to lag)

It is not your Internet connection or your OBS settings that are the issue; it's your PC. Frames can either lag or drop in the log file's definition of things anyhow. Dropped frames are a result of connection issues. Lagged frames are a local issue.

What I would suggest is heavily toning down D3's graphics. Disabling shadows, particle effects, possibly considering a lower resolution, etc, etc, etc.
 

ThoNohT

Developer
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

Um well, it definitely is OBS settings. Encoding one frame on average takes 250 milliseconds in the last log. That allows a total fps of 4. The graphics card and pc really aren't strong enough to handle streaming like this,

While tuning down Diablo III settings is definitely required, tuning down settings in OBS is also essential. You won't be able to stream at 1080p quality. Judging from this quality I suggest you downscale at least by a factor of 1.5 to 720p, but it might need to be more. In addition, you might consider a faster x264 preset.

Also, are you recording locally? If not, there's no real need to have CFR enabled. That might not really improve performance a lot, but it's more of a side remark.

Also, you can set the stream to the size of the d3 window. Then you'll have to hit ctrl + f on the game capture source and it'll fit into the window again. Even then, downscaling is required for the stream to work smoothly.
 

Kharay

Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

Maybe it took 250 milliseconds a frame because D3 was taking up most of the cycles? I would start by working on one thing at a time. And not do multiple things at once. Seems like the more cautious approach to me, to always keep track of the steps it took and all.

His CPU is almost a year younger than mine and still it takes OBS only a couple of ms at the most to stream, even in 1080p. My point being -- His CPU should be able to handle the streaming without toning OBS down too much. Since there is very little speed improvement to be had in OBS anyhow. ultrafast is not at all that much faster than veryfast (the default).
 

JKingDS

New Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

Thanks for the advice guys. I have nearly every setting disabled as far as D3 graphics are concerned but I play at 1440x900. Playing at a smaller resolution is hard to justify... even for the sake of streaming.

Seems the largest issue is graphics card... what's the cost to upgrade to something viable?

Again, thanks much for your advice. I'd rather stream/record 1440x900 in low quality than actually downsize the resolution.
 

Kharay

Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

JKingDS said:
Seems the largest issue is graphics card... what's the cost to upgrade to something viable?
Not at all much really. Given the fact you're most likely going to be streaming in 1080p at the most you could be done for anywhere between $75 and $100. All it takes is a dedicated DX11 GPU. Personally I'm using an AMD HD 6870 and it serves me fine, even in modern titles.

Not sure you can still pick one up though, as it's not exactly supermodern anymore. But, well, you could go with the modern variation of it. Or pick up a mid-range nVidia. Just investigate the matter first though. See what you can actually get away with as far as your motherboard and PSU (Power Supply Unit) are concerned. Take the time to investigate the matter.
 

ThoNohT

Developer
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

You know the encoder runs on the CPU right? (unless he uses quicksync, which offloads parts of it to the GPU, which he isn't doing.) So apparently, according to you, the CPU is being burdened too much by Diablo III for it to work any faster than 250 ms per frame. Then upgrading the GPU isn't going to change that much.

Please, JKingDS, check what altering video settings does before buying anything. Even if it's for the sake of testing.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

Both your CPU and your lack of proper GPU makes your system sub-optimal for any sort of HD streaming. Two cores is probably insufficient even for a 720p downscaled stream. As others have stated, either downscale to reduce encoding CPU load, or change the x264 preset to superfast/ultrafast (however doing so will reduce encoding quality), otherwise your system will be choppy. You can still stream, with it but just do a standard definition stream.

Alternatively if you're just recording to file you could probably get away with an 720p stream by turning the bitrate very high and turning the preset in advanced to ultrafast. Still probably going to have issues even then though.
 

Kharay

Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

ThoNohT said:
Then upgrading the GPU isn't going to change that much.
He asked me what the cost would be of upgrading his GPU. Not vice versa. I did not offer said advice without being asked first. Please, cause and effect. Keep things in perspective. Thanks, have a nice day.
 

ThoNohT

Developer
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

You are correct, and I don't question the device he gave you. But he was under the impression that simply upgrading his cpu would fix this problem, which is the reason why he asked. When helping someone fix a problem, it's worth something to do more than just answering their questions directly.

Giving the info is no problem, but it would of course be nice to also tell them that their proposed solution might not be the right one. Especially when it comes to spending money on something that probably won't fix the problem.

That said, I really don't want to be having this type of discussions here. Most of the people who help people out also hang out in the webchat. I'd like to invite you to stay there too, it really helps in the communication between everyone who's helping out on the forums, and it prevents misunderstandings like these.
 

Kharay

Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

Well, from personal experience I have found that OBS is not nearly as resource heavy as people would think it is. His CPU is like half a year younger than mine so should be all that more potent than mine is and I have no issues whatsoever streaming in 1080p@30 FPS. You can push quite a bit of performance out of OBS and out of your PC in general if you know what to look for.

I have even streamed D3 in 1080p@30 FPS without lagging or dropping frames. Again, on an older CPU than his. It's more about synergy than it is about a single component. And whereas OpenCL may not do 100% of the encode, it does typically free up 5% of the CPU for me. 5% may not seem like a lot but in slower CPUs it just might be enough. In fact, one could argue that OpenCL starts to lose its edge in more modern and faster CPUs, since those have more than enough punch to do the work by themselves.
 

paibox

heros in an halfshel
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

A CPU with the performance equal or close to a Pentium G620 can not encode 1080p at 30 frames per second on veryfast. If you are overclocking or using a different preset or settings that ease up the CPU load, please specify that you are doing so, as your current post looks very misleading.

Edit: Some clarification. It can indeed encode 1080p30, if it's a completely black screen and nothing else impacting CPU usage was running on the computer. Anything with a decent amount of motion, and it would be impossible to maintain a frame rate of 30.
 

Kharay

Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

If I had been, I would have specified that. I do not believe in OC-ing. Never have, never will. I'd rather settle for maybe a little less performance and enjoy the PC for a longer lifetime than settle for maybe 5% - 10% more performance and reduce its lifetime by 50%. ;) I have been unemployed for 4 years now, I am technically a poor man. I can't take such risks.

And I don't see how it could be construed as misleading. Sorry, I just don't.

Neither do I use any of the faster presets as they drop the quality substantially without really gaining all that much speed. I have tried them on a different modern title, Guild Wars 2. As I have been having major issues to get it to stream without lagging frames but for that one, my hardware really is too old. Even at Ultrafast. Which really looks horrendous.
 

paibox

heros in an halfshel
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

Which brings me back to the fact that if you are indeed able to stream anything at 1080p30, your processor would most likely not be similar in performance to the original CPU in question.

On a 3770K, 1080p on veryfast preset, no custom x264 settings to alleviate CPU usage, no overclocking, at the moment streaming Dead Rising 1, the encoder is using anything between 30-50% to encode the video stream, a load a mid end processor such as the one you claim to have would not be able to handle, especially not with a game running on the computer on top of that. You may have gotten an output of around 15-20 frames per second, but not 30.
 

Kharay

Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

I did say I was using OpenCL and never denied that fact. Anyhow, re-installing D3 as we speak to demonstrate. I have an i5-760. Q3 2k10. So, close to 3 years old now.
 

paibox

heros in an halfshel
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

With an i5 760, I have absolutely no doubt that you can stream Diablo 3 at 1080p30. However, that processor's performance is nowhere near equal to the Pentium G620, which was the entire point. I don't need a demonstration of you streaming Diablo 3 at 1080p30 on a computer which I'm certain can handle it.
 

alpinlol

Active Member
Re: Diablo 3, Doesn't lag my PC but output is extremely chop

you try to stream 1080p on a dual core... thats not going to work
 
Top