GPU "Maxed out" when it's not

Ariaa

New Member
Hello,

I've been running into a recurrent issue since August that I've been unable to solve.
I stream games (hoyoverse games, and modern games on PC) on Twitch & YouTube and I always have noticeable micro stutters on stream and in my recordings, even when I play games in low resolution/quality.
When I analyze the log file, it tells me the encoder is overloaded and there is a 1.6% (sometimes 1.2%, I also got 0.8% sometimes) rendering and encoding lag, however when I look at the task manager, my CPU is around 15~18% when playing + streaming + using VTube studio and the GPU is around 48% (3D is around 35% and Video Encode around 48%).

I simply do not understand how my encoder can be maxed out when I'm not even reaching 50% GPU in the task manager. CPU is also never over 20% usage.
I've updated my drivers, OBS as well as did everything written in the GPU Overload issues Guide, and yet I STILL get this issue.
I tried playing games in high and low quality, lowered the output resolution, changed my monitor refresh rate so it matches OBS's... I run OBS in admin mode, I run my games in admin mode, I set OBS to high priority, games are set to high energy consumption in windows settings, I've also changed settings in the NVIDIA control panel.

I tried literally everything I can think of over the past four months and yet, I STILL GET THIS ISSUE.
I just don't know what to do to fix this issue at this point.

My specs:
i9-13900K,
64BG of RAM,
GPU is a RTX 4070 SUPER,
I use an SSD
and I have fast internet (around 885.21Mbps download speed and 416.28 Mbps upload speed.)
When streaming, I use NVIDIA NVENC H.264, Rate Control: CBR, keyframe interval set to 2s, Bitrate to 6000 Kbps, Preset P5, Tuning: High Quality, Multipass Mode: Two Passes (Quarter Resolution), Profile:main, Look-ahead and Psycho Visual Tuning are both checked, Max B-frames is set to 4.
 

Attachments

  • 2024-11-09 10-50-39.txt
    80 KB · Views: 19

rockbottom

Active Member
There is rendering lag & that is GPU overload....
11:17:38.761: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 1565 (1.6%)

10:50:39.349: Game Bar: On > Off
10:50:39.349: Game DVR: On > Off

Clean up your Scenes, this one is really bad. Only (1) Display, Game or Window capture per Scene to avoid interference.
10:50:43.262: - scene 'Gaming':
10:50:43.262: - source: 'BG Pink Orange Sakura' (image_source)
10:50:43.262: - source: 'P3R' (game_capture)
10:50:43.262: - source: 'Gordon Ramsey Simulator' (game_capture)
10:50:43.262: - source: 'Platform 8' (game_capture)
10:50:43.262: - source: 'Wuthering Waves' (game_capture)
10:50:43.262: - source: 'Genshin Impact' (game_capture)
10:50:43.262: - source: 'Nier Replicant' (game_capture)
10:50:43.262: - source: 'Ace Attorney Investigations' (game_capture)
10:50:43.262: - source: 'Omori' (game_capture)
10:50:43.262: - source: 'ZZZ' (game_capture)
10:50:43.262: - source: 'Elden Ring' (game_capture)
10:50:43.262: - source: 'Omori_Overlay' (image_source)
10:50:43.262: - source: 'Honkai Star Rail' (game_capture)
10:50:43.262: - source: 'UNDERTALE' (game_capture)
10:50:43.262: - source: 'FF7' (game_capture)
10:50:43.262: - source: 'Baten Kaitos' (game_capture)
10:50:43.262: - source: 'Metaphor' (game_capture)
10:50:43.262: - source: 'TCG CARD SHOP' (game_capture)
10:50:43.262: - source: 'Bendy' (game_capture)
10:50:43.262: - source: 'TRIBE NINE' (game_capture)
10:50:43.262: - source: 'VTube Studio' (game_capture)
10:50:43.262: - source: 'Twitch Chat' (browser_source)
10:50:43.262: - source: 'Clock' (browser_source)
10:50:43.262: - source: 'YouTube Sub Alert' (browser_source)
10:50:43.262: - source: 'Alert New Follower' (browser_source)
10:50:43.262: - source: 'BRB' (image_source)
10:50:43.262: - source: 'YouTube Chat' (browser_source)
10:50:43.262: - source: 'Jumpscare Counter' (text_gdiplus_v3)
10:50:43.262: - source: 'Points Alert' (browser_source)

Clean-up all of the SE/Java Script errors. This is just a small sample.
10:50:43.932: [obs-browser: 'YouTube Chat'] Error: [Report Only] Refused to load the script 'https://streamelements.com/z/i.js' because it violates the following Content Security Policy directive: "script-src 'none'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
10:50:43.932: (https://streamelements.com/overlay/...HaymNJfsywKxPqmSiqpZQSFnFtGjhh5QGGQXSYBp9ut:0)
10:50:43.996: [obs-browser: 'YouTube Chat'] Error: [Report Only] Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'none'". Either the 'unsafe-inline' keyword, a hash ('sha256-fO0h6nSVSg6QGOtEkqzxNcpe9iJLgXxfCBJTJ4butWU='), or a nonce ('nonce-...') is required to enable inline execution.
10:50:43.996: (https://streamelements.com/z/i.js:1)
10:50:43.998: [obs-browser: 'YouTube Chat'] Error: [Report Only] Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'none'". Either the 'unsafe-inline' keyword, a hash ('sha256-DvHV9J3M0FuNOV7xWhLuQPX/JH1fk1EfJOGbtc5nXg0='), or a nonce ('nonce-...') is required to enable inline execution.

10:50:46.592: [obs-nvenc: 'advanced_video_stream'] settings:
10:50:46.592: codec: H264
10:50:46.592: rate_control: CBR
10:50:46.592: bitrate: 6000
10:50:46.592: cqp: 20
10:50:46.592: keyint: 120
10:50:46.592: preset: p5
10:50:46.592: tuning: hq
10:50:46.592: multipass: qres
10:50:46.592: profile: main > High
10:50:46.592: width: 1920
10:50:46.592: height: 1080
10:50:46.592: b-frames: 4 > 2
10:50:46.592: lookahead: true
10:50:46.592: psycho_aq: true
 

rockbottom

Active Member
I'm not sure if Malwarebytes is slowing things down. Might want to test with it disabled & Defender enabled if you're still getting any lag.
10:50:39.352: Malwarebytes: enabled (AV)
 

Ariaa

New Member
I got rid of all the sources and kept only one for games and tried to fix streamelements errors.
Also, after browsing the forum, I changed encoder settings from CBR to VBR, and now I don't get stutters anymore.

Not sure which action fixed the problem, but it's fixed now. I can run games in high quality without stutter.

Thank you for your help!
 

rockbottom

Active Member
Cool but just double check your log to see if any rendering lag remains. Hopefully it's all gone.

For your recording, try CQP. It should save some HD space compared to using VBR.
 
Top