"Frames missed due to rendering lag" and "Skipped frames due to encoding lag"

ShortStackVR

New Member
Recently been getting the "Encoding overloaded! Consider turning down video settings or using a faster encoding preset". Started happening the last couple of weeks and it used to not. Unsure on what is happening. Benchmarked both my CPU and GPU and they still seem to hit the scores listed online. Originally thinking I my graphics card was starting to have issues but I guess that's not the case. I do have a lot going on with scenes in OBS and interaction for chat on YouTube but again, this wasn't happening for the last year streaming and recording so I'm not sure why all of a sudden its doing this. This is also just a primary streaming rig. I don't game on this just use it for streaming. I have a separate desktop for gaming.

Also to note, when I go into the settings and go to the advance tab in OBS and switch the priority at the top back and forth from above normal and high it level sets the FPS to 60. So strange even when its on high all the time but switching it to above normal and back to high level sets the FPS and then I get what's in "image 3".

I posted a log from last nights stream and some screenshots, if someone could help me out with this or point me in the right direction I'd love you long time!
 

Attachments

  • 2023-09-08_09-25-27.txt
    205.2 KB · Views: 130
  • image 2.png
    image 2.png
    10.4 KB · Views: 542
  • image.png
    image.png
    42.1 KB · Views: 546
  • image 3.png
    image 3.png
    23.1 KB · Views: 544

qhobbes

Active Member
1. You have 29 third-party OBS plugins. Uninstall any that you don't need.
2. Audio buffering hit the maximum value. This is an indicator of very high system load, will affect stream latency, and may even cause individual audio sources to stop working. Keep an eye on CPU usage especially, and close background programs if needed.

Occasionally, this can be caused by incorrect device timestamps. Restart OBS to reset buffering.

Source affected (potential cause): Gaming PC
3. Display and Game Capture Sources interfere with each other. Never put them in the same scene (YouTube Videos 4K).
4. Your log contains no streaming session. Results of this log analysis are limited. Please post a link to a clean log file.
To make a clean log file, please follow these steps:

1) Restart OBS.
2) Start your stream for at least 30 seconds. Make sure you replicate any issues as best you can, which means having any games/apps open and captured, etc.
3) Stop your stream.
4) Select Help > Log Files > Upload Current Log File. Send that link here.
 

ShortStackVR

New Member
Thank you for the quick reply! Here are the two test I did as soon as I saw your reply. The first one I restarted OBS and then quickly went to settings to change the priority and level set it so it'll sit at 60fps and started the stream. The second stream I restarted OBS and immediately started the stream.

First test stream switching priority to high in settings first:
OBS LOG: https://obsproject.com/logs/6gaNqV2pnO4MsIXg
Stream Link: https://www.youtube.com/watch?v=bzl5njsFQ0Q

Second test stream just fresh open/restart OBS and hitting start stream right away:
OBS LOG: https://obsproject.com/logs/YMM7wLDYzxGlRuUY
Stream Link: https://www.youtube.com/watch?v=mTwCcKyWUO8

Also to note, I did go through and clean up some of the scenes and sources with stuff that was just lingering from the past years and not in use before both of the tests. I ran both of the tests like I have over the course of the last few years streaming with the normal stuff running in the background. For the list what I have open is Opera GX with 4 tabs for stream dashboards, spotify, elgato stream deck, discord, voicemeeter, lumia stream dashboard, streamer.bot and OBS. I know that may seem like a lot but OBS never caused me trouble until a few weeks ago which is strange. Computer is specifically only used for streaming, no games.

..one more thing.. when I saw your message I went out to start these tests to share. The first time I closed OBS it crashed. I've also included that in the attached files.
 

Attachments

  • Crash when going to restart OBS to start clean log.txt
    78.2 KB · Views: 30

qhobbes

Active Member
1. Enable Game Mode. Game Mode can be enabled via the Windows 10 "Settings" app, under Gaming > Game Mode.
2. Cap your games at 60 FPS/enable V-Sync.
3. Browser hardware acceleration is currently disabled. Enabling acceleration is highly recommended due to the improvements to performance and significantly lower CPU usage for browser sources. This can be enabled in Settings -> Advanced.
4. Change the encoding preset from P6 to P5.

If still having issues, post a new log.
 

rockbottom

Active Member
^^
OBS 30.0.2 log file uploaded at 2024-03-08, 00:32:14
00:25:37.080: [Safe Mode] Unclean shutdown detected!
00:25:38.682: [Safe Mode] User elected to launch normally.


25% Rendering lag, your GPU is overloaded.
00:31:56.737: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 5572 (25.3%)

Disable HAGS & get rid of those SE overlays.

Turn Off Game DVR & run your monitor @ 120HZ

Uncheck Scaling on the Recording tab


00:25:40.086: Failed to open file 'C:/Users/User/Desktop/reality check logo.png': No such file or directory
00:25:40.086: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Desktop/reality check logo.png
00:25:40.086: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Desktop/reality check logo.png'
00:25:40.086: [image_source: 'logo'] failed to load texture 'C:/Users/User/Desktop/reality check logo.png'
00:25:40.086: Failed to open file 'C:/Users/User/Desktop/reality check logo.png': No such file or directory
00:25:40.086: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Desktop/reality check logo.png
00:25:40.086: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Desktop/reality check logo.png'
00:25:40.086: [image_source: 'logo 2'] failed to load texture 'C:/Users/User/Desktop/reality check logo.png'
00:25:40.087: Failed to open file 'C:/Users/User/Desktop/reality check logo.png': No such file or directory
00:25:40.087: WIC: Failed to create IWICBitmapDecoder from file: C:/Users/User/Desktop/reality check logo.png
00:25:40.087: gs_image_file_init_internal: Failed to load file 'C:/Users/User/Desktop/reality check logo.png'
00:25:40.087: [image_source: 'logo 3'] failed to load texture 'C:/Users/User/Desktop/reality check logo.png'
 
Last edited:

rockbottom

Active Member
I noticed the k variant but your iGPU isn't active. The UHD 770 is a nice encoder, you should give a a try. I use mine to encode all my out going streams, while a 3090 handles the recording.
 

TheThanex

New Member
1. You have 29 third-party OBS plugins. Uninstall any that you don't need.
2. Audio buffering hit the maximum value. This is an indicator of very high system load, will affect stream latency, and may even cause individual audio sources to stop working. Keep an eye on CPU usage especially, and close background programs if needed.

Occasionally, this can be caused by incorrect device timestamps. Restart OBS to reset buffering.

Source affected (potential cause): Gaming PC
3. Display and Game Capture Sources interfere with each other. Never put them in the same scene (YouTube Videos 4K).
4. Your log contains no streaming session. Results of this log analysis are limited. Please post a link to a clean log file.
To make a clean log file, please follow these steps:

1) Restart OBS.
2) Start your stream for at least 30 seconds. Make sure you replicate any issues as best you can, which means having any games/apps open and captured, etc.
3) Stop your stream.
4) Select Help > Log Files > Upload Current Log File. Send that link here.
i cant seem to be able to elimate rednering lag.. although its only a small number of total frames, i would like it to be zero hahaha

Appreciate you help

 

qhobbes

Active Member
@TheThanex
It is zero.
A log with rendering lag will display this for example:
Code:
00:31:56.737: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 5572 (25.3%)
That's directly from the log kohnjonm posted Mar 7, 2024. Your log does doesn't mention rendering lag/stalls but you should still do the following.
1. In Windows, we recommend that "Game Mode" be enabled. Game Mode can be enabled via the Windows "Settings" app, under Gaming > Game Mode.
2. Multiple Game Capture sources, especially 12, are usually not needed, and can sometimes interfere with each other (scene 'SC Games'). You can use the same Game Capture for all your games! If you change games often, try out the hotkey mode, which lets you press a key to select your active game. If you play games in fullscreen, use 'Capture any fullscreen application' mode.
 

rockbottom

Active Member
The log is truncated, the encoding session never completed. That Profile is a mess. Tons of errors, audio lag. You're going to need to start cleaning up errors & troubleshoot it or just start new.

Personally I'd blow it up. New Scene Collection, add (1) Scene & (1) Source. Test
 

TheThanex

New Member
@TheThanex
It is zero.
A log with rendering lag will display this for example:
Code:
00:31:56.737: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 5572 (25.3%)
That's directly from the log kohnjonm posted Mar 7, 2024. Your log does doesn't mention rendering lag/stalls but you should still do the following.
1. In Windows, we recommend that "Game Mode" be enabled. Game Mode can be enabled via the Windows "Settings" app, under Gaming > Game Mode.
2. Multiple Game Capture sources, especially 12, are usually not needed, and can sometimes interfere with each other (scene 'SC Games'). You can use the same Game Capture for all your games! If you change games often, try out the hotkey mode, which lets you press a key to select your active game. If you play games in fullscreen, use 'Capture any fullscreen application' mode.
thank you, i have been constantly trying new things for easy transitions and better quality and trying out bits i have been offered advice on...

I never knew about the hotkey mode for changing between games, so that has already been implemented, so no more 12 game capture inputs, just one with a cutom key command.... i need to work on cleaning up the audio inputs too as i have it set up to control everything individually.

game mode is now currently on, which feels wierd, cause i was always advised to leave it no matter what.

really appreciate your help
 

TheThanex

New Member
The log is truncated, the encoding session never completed. That Profile is a mess. Tons of errors, audio lag. You're going to need to start cleaning up errors & troubleshoot it or just start new.

Personally I'd blow it up. New Scene Collection, add (1) Scene & (1) Source. Test
i am gonna try and triage this as best as i can to save a remake of everything, though I agree that, a blow up will be the only thing left to do if i cannot improve on it... thank you for the feedback.

also there was an audio error coming back from a looped video scene i have for my ending scene, so i removed all the channel assignments for that as i dont needs its audio, so hopefully that helps too
 

rockbottom

Active Member
If you do the new scene collection, you can at least test with all that other stuff/crap out of the way. If it's tests OK, circle back to the old set-up start cleaning up all the java script errors & try to find what else may be going off the tracks.
 
Top