Question / Help Huge spikes and lags while streaming

Crusi

New Member
Hi, i am unable to stream any game using x264 to encode video. Whatever i set (bitrate, preset, resolution, fps, etc) the game i play is unplayable and unstreamable (huge fps drop, spikes, lags). CPU usage while streaming is about 80%. When i change encoding to NVENC everything goes smooth, but i think i have good enough CPU to stream via x264.

My current OBS settings are:

<Output>
encoder - x264
rate control - CBR
bitrate - 2200
cpu usage preset - veryfast
keyframe interval - 2
profile - main

<Video>
base resolution - 1920x1080
output resolution - 1280x720
downscale filter - lanzos
fps - 60

Whatever from these settings i change ha sno impact and game is still unplayable (huge spikes) and stream is lagging.

I setup my OBS while reading official twitch manual for OBS:
https://help.twitch.tv/customer/portal/articles/1262922-open-broadcaster-software

Could someone help me? I tried everything and no impact. Last i can do is to completely format HDD and reinstall windows.
Yesterday i ran stress test and everything was OK, temps were normal.

my PC specs:
  • MB: ASRock Z97 Extreme3
  • CPU: Intel Core i7 4790K
  • GPU: MSI GTX 1070 Gaming X 8G
  • RAM: Kingston HyperX Savage 16GB DDR3 2400Mhz
 

Pixel Perfect

New Member
My suggestion would be to test with a scene with nothing but a game capture. Every item on top of that, or even below that (I used to layer a Desktop Capture and a Game Capture, because it usually worked, but it cut my frames by about 40%)

Your CPU will likely take a performance hit if you do stream with x264 in software. That's a given. Perhaps try stepping down your preset a little to fast or similar
 

Crusi

New Member
i formated disk and reinstalled windows but nothing happened.. as i said before... changing preset has no impact on issue..
 

Fenrir

Forum Admin
From the log, it looks like you're just barely overloading your GPU. Make sure you're capping FPS in the game. h1z1 is notorious for maxing out GPUs, even a 1070, if FPS is left uncapped.
 

Crusi

New Member
thx for suppport. I will try to set max fps to 144 (as i have 144hz monitor) and i hope it will help.. let you know
 
Top