Question / Help Game lag while running obs. specs seem ok

bloodweiser82

New Member
My situation is strange. While playing arma 3 and streaming I get roughly 50 fps in game. My ping is about 60. CPU usage about 30% memory usage about 20%. But the game runs like crap acting like there is lag even though specs and ping are fine. Shut OBS stream off and it smooths right out. It also does this on preview not just stream. Only thing that comes to mind is maybe OBS cashe is going to my primary hard drive? If this is what is happening where is the cashe/temp files going and how can I change the directory to my secondary drive.
 

Boildown

Active Member
The x264 encoder that OBS uses can be configured to use more CPU than the worst running game on the planet. You should post a log file so we can see some data on what's happening.
 

bloodweiser82

New Member
I am stuck at work right now so I can't get u a log file. I have tried just about everything. I turned game settings all the way down to low. At the same time I also turned obs way down to a 200 bit rate and the lowest possible res setting. It didn't not matter what the settings were. Obs still lagged the game even though my specs were very stable. A ping of 64 and fps around 50. Even higher when on the low settings. My system was not bogged down In the slightest or was my connection. I have seen this kind of lag before when I used shadow play and had it saving to my primary drive. No shadow play was not running during my trouble shooting. This is why I am asking where OBS saves it's temp files before it uploads them. If it does.
 

bloodweiser82

New Member
Peaked at 50 fps with a ping of 36. still had in game lag. here is the log. hope it helps. :)

00:35:37: No Intel graphics adapter visible in QSVHelper.exe, Optimus problem?
00:35:37: CUDA loaded successfully
00:35:37: 1 CUDA capable devices found
00:35:37: [ GPU #0 - < GeForce GTX 780 Ti > has Compute SM 3.5, NVENC Available ]
00:42:35: Open Broadcaster Software v0.635b - 32bit (´・ω・`)
00:42:35: -------------------------------
00:42:35: CPU Name: Intel(R) Core(TM) i7 CPU X 980 @ 3.33GHz
00:42:35: CPU Speed: 3337MHz
00:42:35: Physical Memory: 4095MB Total, 4095MB Free
00:42:35: stepping id: 2, model 44, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 12, total cores 6
00:42:35: monitor 1: pos={0, 0}, size={1920, 1080}
00:42:35: monitor 2: pos={1920, 0}, size={1280, 1024}
00:42:35: Windows Version: 6.1 Build 7601 S
00:42:35: Aero is Enabled
00:42:35: -------------------------------
00:42:35: OBS Modules:
00:42:35: Base Address Module
00:42:35: 00290000 OBS.exe
00:42:35: 6F790000 OBSApi.dll
00:42:35: 73650000 DShowPlugin.dll
00:42:35: 71030000 GraphicsCapture.dll
00:42:35: 71060000 NoiseGate.dll
00:42:35: 713E0000 PSVPlugin.dll
00:42:35: ------------------------------------------
00:42:35: Adapter 1
00:42:35: Video Adapter: NVIDIA GeForce GTX 780 Ti
00:42:35: Video Adapter Dedicated Video Memory: 3140157440
00:42:35: Video Adapter Shared System Memory: 1154744320
00:42:35: Video Adapter Output 1: pos={0, 0}, size={1920, 1080}, attached=true
00:42:35: Video Adapter Output 2: pos={1920, 0}, size={1280, 1024}, attached=true
00:42:35: =====Stream Start: 2014-09-24, 00:42:35===============================================
00:42:35: Multithreaded optimizations: On
00:42:35: Base resolution: 1920x1080
00:42:35: Output resolution: 1920x1080
00:42:35: ------------------------------------------
00:42:35: Loading up D3D10 on NVIDIA GeForce GTX 780 Ti (Adapter 1)...
00:42:35: ------------------------------------------
00:42:35: Audio Format: 48000 Hz
00:42:35: ------------------------------------------
00:42:35: Audio Channels: 2 Ch
00:42:35: Playback device Default
00:42:35: ------------------------------------------
00:42:35: Using desktop audio input: Digital Audio (S/PDIF) (High Definition Audio Device)
00:42:35: Global Audio time adjust: 0
00:42:35: ------------------------------------------
00:42:35: Using auxilary audio input: Headset Microphone (ASTRO Wireless Transmitter )
00:42:35: Mic time offset: 0
00:42:35: ------------------------------------------
00:42:35: Audio Encoding: AAC
00:42:35: bitrate: 128
00:42:35: Using graphics capture
00:42:35: Trying to hook process: arma3.exe
00:42:35: Scene buffering time set to 700
00:42:35: ------------------------------------------
00:42:35: Video Encoding: x264
00:42:35: fps: 30
00:42:35: width: 1920, height: 1080
00:42:35: preset: veryfast
00:42:35: profile: main
00:42:35: keyint: 60
00:42:35: CBR: yes
00:42:35: CFR: yes
00:42:35: max bitrate: 2000
00:42:35: buffer size: 2000
00:42:35: ------------------------------------------
00:42:36: SharedTexCapture hooked
00:42:37: Using RTMP service: Twitch
00:42:37: Server selection: rtmp://live-jfk.twitch.tv/app
00:42:37: Interface: Intel(R) 82567V-2 Gigabit Network Connection (ethernet, 1000 mbps)
00:42:38: Completed handshake with rtmp://live-jfk.twitch.tv/app in 560 ms.
00:42:38: SO_SNDBUF was at 8192
00:42:38: SO_SNDBUF is now 65536
00:48:46: Total frames encoded: 11091, total frames duplicated: 26 (0.23%)
00:48:46: Total frames rendered: 11114, number of late frames: 2 (0.02%) (it's okay for some frames to be late)
00:48:46: ~RTMPPublisher: Packet flush completed in 128 ms
00:48:46: ~RTMPPublisher: Send thread terminated in 0 ms
00:48:46: RTMPPublisher::SocketLoop: Graceful loop exit
00:48:46: ~RTMPPublisher: Socket thread terminated in 0 ms
00:48:56: ~RTMPPublisher: Final socket shutdown completed in 10121 ms
00:48:56: Average send payload: 6488 bytes, average send interval: 25 ms
00:48:56: Number of times waited to send: 0, Waited for a total of 0 bytes
00:48:56: Number of b-frames dropped: 0 (0%), Number of p-frames dropped: 0 (0%), Total 0 (0%)
00:48:56: Number of bytes sent: 92078452
00:48:56:
00:48:56: Profiler time results:
00:48:56:
00:48:56: ==============================================================
00:48:56: video thread frame - [100%] [avg time: 1.259 ms] [children: 37.2%] [unaccounted: 62.8%]
00:48:56: | scene->Preprocess - [0.0794%] [avg time: 0.001 ms]
00:48:56: | GPU download and conversion - [37.1%] [avg time: 0.467 ms] [children: 23.2%] [unaccounted: 13.9%]
00:48:56: | | flush - [20%] [avg time: 0.252 ms]
00:48:56: | | CopyResource - [2.86%] [avg time: 0.036 ms]
00:48:56: | | conversion to 4:2:0 - [0.318%] [avg time: 0.004 ms]
00:48:56: Convert444Threads - [100%] [avg time: 1.2 ms] [children: 99.3%] [unaccounted: 0.667%]
00:48:56: | Convert444toNV12 - [99.3%] [avg time: 1.192 ms]
00:48:56: encoder thread frame - [100%] [avg time: 2.364 ms] [children: 1.02%] [unaccounted: 99%]
00:48:56: | sending stuff out - [1.02%] [avg time: 0.024 ms]
00:48:56: ==============================================================
00:48:56:
00:48:56:
00:48:56: Profiler CPU results:
00:48:56:
00:48:56: ==============================================================
00:48:56: video thread frame - [cpu time: avg 0.31 ms, total 3447.62 ms] [avg calls per frame: 1]
00:48:56: | scene->Preprocess - [cpu time: avg 0 ms, total 0 ms] [avg calls per frame: 1]
00:48:56: | GPU download and conversion - [cpu time: avg 0.08 ms, total 889.205 ms] [avg calls per frame: 1]
00:48:56: | | flush - [cpu time: avg 0.06 ms, total 670.804 ms] [avg calls per frame: 1]
00:48:56: | | CopyResource - [cpu time: avg 0.002 ms, total 31.2 ms] [avg calls per frame: 1]
00:48:56: | | conversion to 4:2:0 - [cpu time: avg 0.004 ms, total 46.801 ms] [avg calls per frame: 1]
00:48:56: Convert444Threads - [cpu time: avg 1.184 ms, total 52541.1 ms] [avg calls per frame: 4]
00:48:56: | Convert444toNV12 - [cpu time: avg 1.18 ms, total 52353.9 ms] [avg calls per frame: 4]
00:48:56: encoder thread frame - [cpu time: avg 1.758 ms, total 19500.1 ms] [avg calls per frame: 1]
00:48:56: | sending stuff out - [cpu time: avg 0.025 ms, total 280.8 ms] [avg calls per frame: 1]
00:48:56: ==============================================================
00:48:56:
00:48:56: =====Stream End: 2014-09-24, 00:48:56=================================================


Last game capture log:
2014-09-24, 00:42:35: we're booting up:
00:42:35: CaptureThread: attached to process arma3.exe
00:42:36: D3D9 Present
00:42:36: DXGI Present
00:42:36: (half life scientist) everything.. seems to be in order
00:42:36: DXGI: Found D3D 11
00:42:36: setting up d3d11 data
00:42:36: ---------------------- Cleared D3D11 Capture ----------------------
00:42:36: found dxgi format (dx11) of: 28, size: {1920, 1080}, multisampled: false
00:42:36: DoD3D11Hook: success
00:42:36: successfully capturing d3d11 frames via GPU
00:48:47: stop requested, terminating d3d11 capture
 

bloodweiser82

New Member
ok. Well again. ill post it in case it was missed. i only was using about 30%cpu, 20% memory 40-50 FPS and getting 60 ping. internet is 50 down and 5 up. in addition to that i lowered all game settings down to the lowest and IN OBS lowered both my bit rate and my resolution down to as low as they can go and got the same result. It also happen is preview mode not just stream. Unless someone can point out where i may be mistaken then this is not a hardware or a connection issue. My only weak point is probably my hard drive being only 5500 rpm. but if OBS doesn't write to the hard drive and stream directly to twitch then i shouldn't have an issue. Thx for the responses but i still have an issue. any more suggestions would be appreciated thx.
 
Last edited:

flavored

Member
Have you tried using differnt capture methods? If you do a window capture with aero enabled does it perform the same?
 

bloodweiser82

New Member
Problem solved! Thank you flavored for your suggestion. I am not sure why but OBS and Arma 3 do not get along in windowed mode. i tried both full screen windowed (what i was using) and just windowed with no change. Then i just did normal full screen and ran nice and smooth. Also Aero was already on i didnt have to change anything with that. Thank you for your help. you can imagine how frustrating that was lol. Any way we can get that patched or fixed so OBS will work with windowed? makes things easier for tabbing to multitask while running twitch. thanks again. either way i am super happy we got this resolved.
 

alpinlol

Active Member
They don't, where in the world you got that from?

where i got that from? from 3 workstations i have an i5 i7 and an old i7 extreme the i7 get for whatever reason horrible ingame performance @ 1080p but arent even using that much of the cpu

if it would be only one of the workstations i would have ignored it but 3 + the same happened to a friend of mine

they are also running all on different boards ram hdd and gpu's the worst gpu i had was a 660ti so this shouldnt be a problem :/
 

bloodweiser82

New Member
@alpinlol Other than this issue i have had no problems with performance. Even in arma 3 which is really resource heavy. In full screen mode while streaming i was still getting 60 FPS.
 

bloodweiser82

New Member
I have also had no problems with my stream. But will see how it goes. If anything pops up I'll post about it. Only time I had stream issues was when I first started. My Internet upload was only 1 Mb up. Soon as I upgraded all stream and vid quality issues went away.
 

bloodweiser82

New Member
Ok problem not solved unfortunately. seems to be a problem with my dual monitor setup. Any time anything is running in second monitor like flash vid obs whatever doesn't matter what it is. It will lag both monitors. Reason is they are not running at the same resolution. unfortunatly my second monitor is a bit older and is not capable of 1920x1080. max res for second monitor is 1280x1024. If i drop primary down to that res it works perfect. but who the hell can play like that lol. Not this guy. if there is a work around anyone knows of short of buying a new secondary plz let me know.
 
Top