Question / Help Ryzen 2700x | Overloading Encoder but only 20% Usage ?

zampanotv

New Member
Hello Guys,
im trying to stream Leauge of Legends with my Ryzen 2700x on twitch.
OBS Settings -> 720p60FPS (16 Bicubic) x264 medium

Always overloading Encoder, but OBS only uses 20% of my CPU ? Why isnt it possible to use 100% of my Ryzen ? With LoL i only have 30% usage ..
WIndows Game DVR and Bar are off, also im starting OBS 64-bit as admin ...

Can somebody help me ?
 

Attachments

  • 2019-01-07 23-19-39.txt
    13.2 KB · Views: 90

DEDRICK

Member
Shouldn't be struggling, I do 720p60 Slow on my 2700x while play way more intense games.

I've seen this exact issue before(not my system), opening LoL would force the CPU to only use 4 threads. I think it was Game Mode doing it? Yes, it's pretty much cancer.

Game Mode does stupid shit, especially with OBS. You don't have the toggle for it in your version of W10 but you can disable it in the registry

https://www.addictivetips.com/windows-tips/disable-game-mode-in-fall-creators-update-windows-10/

Check your CPU utilization graph when you have League open and OBS recording, check that you are getting CPU usage across all 16 threads
1546903749179.png
 
Last edited:

zampanotv

New Member
obs.PNG


First 4 Cores working well but the other Cores .. Why they cant use the power ?

I also disabled Game Bar in the registry
1111.PNG


Also strange on Core is always 100 % while not streaming only LEauge
 
Last edited:

DEDRICK

Member
Yup, it's the same issue. Not Game Bar though, Game Mode, same place though

HKEY_CURRENT_USER\Software\Microsoft\GameBar\

AllowAutoGameMode 0

If the key doesn't exist you have to create it. New>DWORD (32-bit)

Did you reboot?
 

DEDRICK

Member
As you have noticed it only occurs when you are in League, then stops when you are not in League or tabbed out

This LoL forum post goes over these steps and what occurs, Game Mode reduces your cores when League is open. (Not just League, World of Tanks as well)

https://boards.na.leagueoflegends.c...Rl-client-the-fix-weve-all-been-searching-for

So Option 3.

ENABLE Game Bar(for now), while in League of Legends hit Windows + G, click the gear icon on the right. Disable "Use Game Mode for this game".
Once done, you can disable Game Bar again


Option 4. Update to the newest version of Windows 10 so you get the toggle to completely shut it off for all games

1546908333288.png
 
Last edited:

zampanotv

New Member
2.PNG

ok looks good actually
720p60 @ slow worked fine for Leauge
What Games do u Stream with this settings ?

But anyway CPU usage @ 30% why can i not hit 70% for example ? When I try more than slow ->instant overload
Also a new problem my game is now locked to 60fps when OBS is open

How old is the update ?
 

DEDRICK

Member
I can do PUBG, Squad, Insurgency Sandstorm, etc.. I typically only do it for testing, I settled on 6000Kbps 720p60 Medium to give myself back some FPS. Yeah above Slow, no chance, that will cause your CPU to puke.

60 FPS lock. Delete your Game Capture, then add a new one, don't touch any of the options. If you have a Display Capture in your scene, delete it.

The newest Windows 10 update is 1809(October 2018, not September Kappa), you can force an upgrade by using the Media creation tool or Clicking "Update Now" on this page.

https://www.microsoft.com/en-ca/software-download/windows10

Microsoft will push it to you eventually, there's no escaping
 
Last edited:

zampanotv

New Member
OK works fine, thank you :)
Hope that it also work with other Games like Pubg or Rust.

But i dont unterstand why there is not more possible
 

DEDRICK

Member
CPU usage @ Medium is 30-35% on a 2700x, easy peesy. Slow is 50-60%, practically double, Slower is exponentially harder, you will overload immediately. There's not enough cores
 

zampanotv

New Member
720 60 @ Slow was 35% CPU usage for me .
Now I can also stream @ 1080 60 fast (maybe medium is also possible)

But when I use Slower -> Overload but anyway 35% Usage+
I think its not possible to hit more, i dont know
 

DEDRICK

Member
720 60 @ Slow was 35% CPU usage for me .
Now I can also stream @ 1080 60 fast (maybe medium is also possible)

But when I use Slower -> Overload but anyway 35% Usage+
I think its not possible to hit more, i dont know

I should have said CPU usage depends on the source you are encoding. League is lower motion that FPS games, so it is easier to encode.

Beyond Medium 720p60 you will be hard pressed to find any noticable improvement in quality. It is there, if you look really hard, frame by frame, but it is pointless. If you don't skip at Slow, perfect, you've pushed quality as high as possible on the CPU

You could probably do 720p30 Slower, it's a encoding latency issue. Theres not enough threads to finish in time, but if you increase the time available, you can do it.

I just tested it in Sandstorm, it works, looks great @ 6000Kbps. Not a single compression artifact, but it's 30FPS so it isn't great to watch

Code:
17:49:53.232: video settings reset:
17:49:53.232:     base resolution:   2560x1440
17:49:53.232:     output resolution: 1280x720
17:49:53.232:     downscale filter:  Lanczos
17:49:53.232:     fps:               30/1
17:49:53.232:     format:            NV12
17:49:53.232:     YUV mode:          709/Full
17:49:53.242: Settings changed (outputs, video)
17:49:53.242: ------------------------------------------------
17:51:04.571: ---------------------------------
17:51:04.572: [x264 encoder: 'streaming_h264'] preset: slower
17:51:04.572: [x264 encoder: 'streaming_h264'] profile: high
17:51:04.574: [x264 encoder: 'streaming_h264'] settings:
17:51:04.574:     rate_control: CBR
17:51:04.574:     bitrate:      6000
17:51:04.574:     buffer size:  6000
17:51:04.574:     crf:          0
17:51:04.574:     fps_num:      30
17:51:04.574:     fps_den:      1
17:51:04.574:     width:        1280
17:51:04.574:     height:       720
17:51:04.574:     keyint:       60
17:51:04.574:
17:51:04.584: [CoreAudio AAC: 'Track1']: settings:
17:51:04.584:     mode:          AAC
17:51:04.584:     bitrate:       192
17:51:04.584:     sample rate:   48000
17:51:04.584:     cbr:           on
17:51:04.584:     output buffer: 1536
17:51:04.692: ==== Recording Start ===============================================
17:51:04.692: [ffmpeg muxer: 'adv_file_output'] Writing file 'D:/Videos/2019-01-07 17-51-04.mkv'...
17:51:17.270: [game-capture: 'Game Capture'] attempting to hook fullscreen process: InsurgencyClient-Win64-Shipping.exe
17:51:17.273: [game-capture: 'Game Capture'] using helper (compatibility hook)
17:51:17.306: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
17:51:20.301: [game-capture: 'Game Capture'] attempting to hook fullscreen process: InsurgencyClient-Win64-Shipping.exe
17:51:20.304: [game-capture: 'Game Capture'] using helper (compatibility hook)
17:51:23.334: [game-capture: 'Game Capture'] attempting to hook fullscreen process: InsurgencyClient-Win64-Shipping.exe
17:51:23.436: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
17:51:23.468: [game-capture: 'Game Capture'] shared texture capture successful
17:52:40.600: adding 21 milliseconds of audio buffering, total audio buffering is now 106 milliseconds
17:53:00.087: Stopping recording due to hotkey
17:53:03.215: [ffmpeg muxer: 'adv_file_output'] Output of file 'D:/Videos/2019-01-07 17-51-04.mkv' stopped
17:53:03.215: Output 'adv_file_output': stopping
17:53:03.215: Output 'adv_file_output': Total frames output: 3463
17:53:03.215: Output 'adv_file_output': Total drawn frames: 3555 (3556 attempted)
17:53:03.215: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 1 (0.0%)
17:53:03.215: ==== Recording Stop ================================================
17:53:06.701: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
17:53:06.701: [game-capture: 'Game Capture'] capture stopped
 
Last edited:
Top