Question / Help Issues with PC performance while streaming

240hz

New Member
Hello everyone,
I'm here because I have a problem that I can't solve myself. I've searched on a lot of forums and didn't find anything useful for my problem.
My issue is that when I start streaming (1080p60fps) I get some lag spikes and input lag. The input lag really annoys me because I'm an osu! player and I really feel when I have input lag, it makes me play really bad. I didn't check if it happens while recording as well but, even though I have a very good PC, and I'm running a very low demanding game, I'm surprised that there's some performance issues.
I know it's not a hardware problem, I have an i7 7700k and a GTX 1070, my CPU is at 20% while streaming this game and my graphics card is almost asleep.

My settings:
Video bitrate: 2500
Encoder: Software x264
Audio Bitrate: 160
Canvas Res: 1920x1080 (and also the output res)
Downscale Filter: Bicubic
FPS: 60
Process priority: Normal
Renderer: Direct3D 11
Color Format: NV12
YUV Color Space: 601
YUV Color Range: Partial
And I'm using OBS Studio 20.1.3 64bit

I'm also uploading a log file (I don't know what file to upload I hope that one is right)
 

Attachments

  • 2017-12-05 19-59-48.txt
    6.5 KB · Views: 15

Boildown

Active Member
Turn Game DVR off.

Your log file doesn't show any actual streaming. Do a 5 minute or longer test stream of high action gameplay, and post the log file from that.

Generally you need to set a frame limit, or else OBS won't be able to run properly. Turn V-Sync on and set the games frame limit to 60. If that resolves the problem, then you can experiment with turning V-Sync Off and setting a higher frame limit. But know that you can't just let it run without a frame limit at all without obstructing OBS's ability to work.
 

awolive

Member
How to turn off Xbox DVR through the Registry Editor
If you do not have an Xbox account and are not signed into the Xbox App you can disable Xbox DVR by using the Registry Editor.

Note: This process is more advanced and is not recommended for novice users.

  1. Open Registry Editor (Run > regedit)
  2. Navigate to HKEY_CURRENT_USER\System\GameConfigStore
  3. Set the value of DWORD "GameDVR_Enabled" to 0
  4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\
  5. Create key "GameDVR".
  6. Create DWORD 32bit called "AllowGameDVR" and set to 0
  7. Restart your computer.
 

240hz

New Member
Turn Game DVR off.

Your log file doesn't show any actual streaming. Do a 5 minute or longer test stream of high action gameplay, and post the log file from that.

Generally you need to set a frame limit, or else OBS won't be able to run properly. Turn V-Sync on and set the games frame limit to 60. If that resolves the problem, then you can experiment with turning V-Sync Off and setting a higher frame limit. But know that you can't just let it run without a frame limit at all without obstructing OBS's ability to work.

How to turn off Xbox DVR through the Registry Editor
If you do not have an Xbox account and are not signed into the Xbox App you can disable Xbox DVR by using the Registry Editor.

Note: This process is more advanced and is not recommended for novice users.

  1. Open Registry Editor (Run > regedit)
  2. Navigate to HKEY_CURRENT_USER\System\GameConfigStore
  3. Set the value of DWORD "GameDVR_Enabled" to 0
  4. Go to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\
  5. Create key "GameDVR".
  6. Create DWORD 32bit called "AllowGameDVR" and set to 0
  7. Restart your computer.
Hi! I disabled DVR (thank you awolive)
And these are the results: in the 5min stream test I made after DVR disabled I didn't notice any lag spikes at all, but maybe (maybe it's just me) some input lag.
I will upload the two logs, one before and the other one after disabling DVR.
 

Attachments

  • log stream AFTER disabling DVR.txt
    15.1 KB · Views: 16
  • log stream BEFORE disabling DVR.txt
    15.1 KB · Views: 11

Boildown

Active Member
22:01:43.062: [rtmp stream: 'simple_stream'] Interface: Realtek RTL8192CU Wireless LAN 802.11n USB 2.0 Network Adapter (802.11, 222 mbps)

Can you try a PCIe or motherboard-onboard network adapter instead of this USB network adapter? And use a wire instead of wireless?

The encoding statistics look good (on both), but the network statistics are a little off.
 

240hz

New Member
I know... This is a little embarrasing but yes I'm forced to use this USB even though my setup is pretty ok and I use it everyday... But I can't do anything, the installation of a cable from the router to my PC is almost 200€ and I'm not planning on buying an onboard network adapter, I might buy it but not right now or tomorrow.
Also has the connection anything to do with my performance and input lag? I mean, isn't this a software or (in other cases) hardware issue?

Thanks a lot for everything. I will stream again and see if we fixed it.
 

240hz

New Member
Hi. I have been streaming for more than 25 minutes now and I still feel the mouse input and it's so annoying... :/ The log is here:
 

Attachments

  • 2017-12-06 01-20-25.txt
    10.9 KB · Views: 12

awolive

Member
there will always be some lag when streaming+gaming at the same time its completely normal unless you have a beast CPU
 

240hz

New Member
there will always be some lag when streaming+gaming at the same time its completely normal unless you have a beast CPU
I think I have a good enough CPU, and the best players (top 10 or so) also stream with worse CPU, and they would not be able to play with my lag, I mean it would be impossible, you can watch a video: https://www.youtube.com/watch?v=jtVa1cOSV-Q and you will understand me :(
Also they use tablet instead of mouse, and I just disabled Alt+Z nvidia feature.
 

awolive

Member
Those other players most likely have a dedicated streaming PC and they only list their actual gaming computer in their twitch specs since most people in their chat could care less about their dedicated streaming PC. 7700k is not ideal for streaming+gaming at the same time for high quality streaming as it only has 4 cores 8 threads. You really need 8 cores 16 threads ideally for good quality streams with around 6k bitrate.

Also the game you're trying to stream has very little graphics so streaming it should be fine with 7700k but any high motion/graphics (overwatch, destiny 2, pubg or similar intense game) will be trouble for 7700k to keep up with at any respectable encoding preset
 
Top