Question / Help Inexplicable Capture lags on OpenGL games

TheSyldat

New Member
Okay since the arrival of that bloody update I can't stream some of my games properly anymore...

By that I mean that I always managed to find a mix of settings that allowed me to stream at a solid 60 FPS

Unfortunately given I didn't backup the logs of the previous state of things you'll have to believe that I managed to get a solid 60 FPS before ...

So here are the logs :

Doorways : Holy Mountains of Flesh : https://gist.github.com/555e34b3a3c0c16698d2229a2db7fa7c

(Will edit this original post with all the other games ... )

Please someone find a way to make up for this :/

Hardware specs :
CPU : core i7-6700HQ
RAM : 8GB
GPU : Nvidia 950m
OS : Win 10 Home
 
Last edited:

TheSyldat

New Member
Okay after further testings every direct X based games are okay

But any given OpenGL games is unstreamable !!!!!
 

Fenrir

Forum Admin
You have the renderer set as OpenGL in OBS. Go to Settings -> Advanced and change it back to Direct3D 11. You don't need to change this to OpenGL to capture OpenGL games, it just affects which renderer is used to composite the scene in OBS. Since OpenGL is far less efficient on Windows than Direct3D 11, you should never be changing it to OpenGL.
 

TheSyldat

New Member
I do not have the renderer set to OpenGL but to direct3D11 never changed it ; I tried it once and worked so bad i reverted back to Direct 3D 11 and same fucking resultts anywayy...


But i will post more logs to show it to you heck I give you screenshot as well if you want ....

Once again I repeat what is afffected are games that are OpenGL based EVEN WHEN CAPTURED THROUGH D3D 11 it doesn't change anything
 

Osiris

Active Member
Tried with an empty scene collection?
I also saw some instances where it was using memory capture, make sure the game capture source that's capturing the game has multi-adapter compatibility disabled.
 

TheSyldat

New Member
Well multi adapter is turned off ...

I will make several other tries.

So you recommend that I try capturing the game on its own to help you out or did I get that wrong ?
 

Fenrir

Forum Admin
I do not have the renderer set to OpenGL but to direct3D11 never changed it ; I tried it once and worked so bad i reverted back to Direct 3D 11 and same fucking resultts anywayy...


But i will post more logs to show it to you heck I give you screenshot as well if you want ....

Once again I repeat what is afffected are games that are OpenGL based EVEN WHEN CAPTURED THROUGH D3D 11 it doesn't change anything

The logs you provided show the OpenGL renderer being used, this is why it's being suggested. Instead of arguing and getting upset, please just verify that the renderer is set to Direct3D 11 in Settings -> Advanced.

Logs don't lie.
 

TheSyldat

New Member
I do not have the renderer set to OpenGL but to direct3D11 never changed it ; I tried it once and worked so bad i reverted back to Direct 3D 11 and same fucking resultts anywayy...

Here is me explaining why I made that move and telling you guy that I reverted back to D3D 11 right after that ...

It would help that you learn to read

At least Osiris a REAL moderator with a moderator tag under his/her nickname is actually moving on , because he/she actually reads ...
 

TheSyldat

New Member
Okay just tested out with the new update :

So currently :

OS : Win 10 home (saddly)
CPuu : i7-6700HQ
RAM : 8 GB
GPU : Nvidia 950M
OBS : 0.16.6
Drivers for the GPU : 375.95

https://gist.github.com/ad8459f52c7e7af983b2478dd89a98e1

I tested it with Armello since it won't even display Polynomial 2 now ...

here is the replay : https://www.twitch.tv/thesyldat/v/102676307

It's not even the game I wanna stream now...

And the game i wanna stream which is Polynomial 2 when I launch the game while OBS is running the game crashes immediately wiith OBS 0.16.6

So yes something is going on somewhere in your source code and it keeps getting worse guys :/

I don't want to use X-split i wanna stay on the open sourrce side of things :/
 

Fenrir

Forum Admin
At least Osiris a REAL moderator with a moderator tag under his/her nickname is actually moving on , because he/she actually reads ...

This is a community support forum, run by community support volunteers. Nobody has any more or less authority, outside Jim as the owner of the project. Please understand that everyone here is doing this in their free time, and nobody is paid. Moderator tags allow certain trusted members of the community to help keep the forums on topic and take care of troublemakers.

Okay just tested out with the new update :

According to this log, the issue is that your PC is being overloaded for the settings you're trying to use:

Code:
16:16:31.530: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 1005 (17.5%)
16:16:31.530: Output 'simple_stream': Number of dropped frames due to insufficient bandwidth/connection stalls: 35 (0.6%)

Since you're using NVENC as your encoder, this likely means that the game is maxing out your video card. Is there a specific reason you're using NVENC over x264? That laptop is fairly decent (as far as laptops go, anyway), and should be able to stream using x264.

As far as the OpenGL capture goes, I do see this in your log:

Code:
16:15:43.045: [game-capture: 'Polynomial 2'] gl_free: GL error occurred on free: 1282

Error 1282 means invalid operation, but it's bit of a generic error, so it's really hard to say what exactly is going on. I'm currently researching and will report anything I can find on it.
 
Last edited:

Fenrir

Forum Admin
Also, I'm looking through your scenes here and you didn't create a new scene collection as Osiris requested, you created just a new scene.

However, I can see some issues with just how your scenes are laid out:

Code:
16:13:41.999: Loaded scenes:
16:13:41.999: - scene 'ma gueule':
16:13:41.999:     - source: 'fond' (image_source)
16:13:41.999:     - source: 'webcam' (dshow_input)
16:13:41.999:     - source: 'chat irc' (window_capture)
16:13:41.999:         - filter: 'Rogner' (crop_filter)
16:13:41.999:         - filter: 'incrust' (color_key_filter)
16:13:41.999: - scene 'Attente':
16:13:41.999:     - source: 'Annonce du jeu' (text_ft2_source)
16:13:41.999:     - source: 'fond' (image_source)
16:13:42.000:     - source: 'chat irc' (window_capture)
16:13:42.000:         - filter: 'Rogner' (crop_filter)
16:13:42.000:         - filter: 'incrust' (color_key_filter)
16:13:42.000:     - source: 'resau sociaux' (text_ft2_source)
16:13:42.000:     - source: 'Bannière_Prep' (text_gdiplus)
16:13:42.000:     - source: 'Bannière_Pause' (text_gdiplus)
16:13:42.000: - scene 'Jeux 4:3':
16:13:42.000:     - source: 'stéréo mix' (wasapi_input_capture)
16:13:42.000:     - source: 'fond' (image_source)
16:13:42.000:     - source: 'webcam' (dshow_input)
16:13:42.000:     - source: 'hexchat' (window_capture)
16:13:42.000:         - filter: 'Rogner' (crop_filter)
16:13:42.000:         - filter: 'incruste' (color_key_filter)
16:13:42.000:     - source: 'zdaemon' (game_capture)
16:13:42.000:     - source: 'Zandro' (game_capture)
16:13:42.000:     - source: 'prboom' (game_capture)
16:13:42.000:     - source: 'jeu et moteur' (text_ft2_source)
16:13:42.000:     - source: 'vlc' (window_capture)
16:13:42.000:         - filter: 'Rogner' (crop_filter)
16:13:42.000:         - filter: 'Rogner / Encadrer' (crop_filter)
16:13:42.000:     - source: 'SNES' (game_capture)
16:13:42.000:     - source: 'UT2004' (game_capture)
16:13:42.000:     - source: 'Momodora' (game_capture)
16:13:42.000:     - source: 'Deathsmiles' (game_capture)
16:13:42.000:     - source: 'livesplit' (window_capture)
16:13:42.000: - scene 'Jeux 16:9':
16:13:42.000:     - source: 'fond' (image_source)
16:13:42.000:     - source: 'chat irc' (window_capture)
16:13:42.000:         - filter: 'Rogner' (crop_filter)
16:13:42.000:         - filter: 'incrust' (color_key_filter)
16:13:42.000:     - source: 'webcam' (dshow_input)
16:13:42.000:     - source: 'twitter' (image_source)
16:13:42.000:     - source: 'armello' (game_capture)
16:13:42.000:     - source: 'Geometry Wars' (game_capture)
16:13:42.000:     - source: 'Polynomial 2' (game_capture)
16:13:42.001:     - source: 'Civ 6' (game_capture)
16:13:42.001:     - source: 'minecraft' (game_capture)
16:13:42.001:     - source: 'alien' (game_capture)
16:13:42.001: - scene 'Road to 92':
16:13:42.001:     - source: 'stéréo mix' (wasapi_input_capture)
16:13:42.001:     - source: 'fond' (image_source)
16:13:42.001:     - source: 'webcam' (dshow_input)
16:13:42.001:     - source: 'chat irc' (window_capture)
16:13:42.001:         - filter: 'Rogner' (crop_filter)
16:13:42.001:         - filter: 'incrust' (color_key_filter)
16:13:42.001:     - source: 'Typhoon 2001' (game_capture)
16:13:42.001: - scene 'Gentoo':
16:13:42.001:     - source: 'fond' (image_source)
16:13:42.001:     - source: 'chat irc' (window_capture)
16:13:42.001:         - filter: 'Rogner' (crop_filter)
16:13:42.001:         - filter: 'incrust' (color_key_filter)
16:13:42.001:     - source: 'webcam' (dshow_input)
16:13:42.001:     - source: 'armello' (game_capture)
16:13:42.001:     - source: 'ubuntu' (window_capture)
16:13:42.001:     - source: 'VM-Gentoo' (window_capture)
16:13:42.001: - scene 'Beta test':
16:13:42.001:     - source: 'Polynomial 2' (game_capture)

If you look at the scenes Jeux 16:9 and Jeux 4:3, you have FAR too many game capture sources in the same scene. A common misunderstanding is that you need a separate game capture source for each game, but this is not the case. Having multiple game captures in the same scene (and, IMO, more than one in a scene collection) causes conflicts. This could explain the issues that you're having. If you need to capture multiple games in the same scene, you can configure the game capture source to use "Capture foreground window with hotkey" and then set the hotkey in Settings -> Hotkeys. This will allow you to simply press a key to capture the active window.

To see if this is truly the issue, create a new Scene Collection (not just a scene) from the menu at the top of OBS, as shown here:

luVlihJ.png
 

TheSyldat

New Member
Here is the test with a new collection game on its own encoding being done software wise :
https://gist.github.com/68bdb0314d7986cde9f75be40f5bce60

Still laging and again if I do some test with games that are directX based with a crapload of particle effects everywhere it doesn't lag behind like this . And it wasn't lagging like this in the past either all of my games were doing fine with those settings until some recent updates of OBS

So once again how come those setting were ok before not okay now ???

More specificly how come the GL based games I stream on a regular basis could be captured with no issue at all before and not now. Once again something broke withing OBS.

Heck I even did a fresh install of Win 10 just to see if it was not one of their updates that wasn't properly applied that broke everything.

I wouldn't be here if I didn't try to ruleout all other possible causes ...
 

Fenrir

Forum Admin
The log there is a bit cut off. To get a clean log, follow these steps carefully:

First restart OBS, then start your stream/recording for ~30 seconds (or however long it takes for the issue to occur) and stop it again. When you're done select Help > Log Files > Upload Current Log File. Copy the URL and paste it here.
 

Fenrir

Forum Admin
Still seeing:

Code:
18:17:24.527: Output 'simple_stream': Number of lagged frames due to rendering lag/stalls: 1564 (14.7%)

Rendering lag/stalls is commonly caused by your GPU being overloaded. This is likely due to the fact that you're on a laptop, and laptops aren't very suited for streaming so you might need to turn your settings down a bit more. Before that, go into your laptop's power settings and make sure that everything is set to the performance setting when plugged in (I'm assuming you have the laptop connected to power, here) to make sure that nothing is running in power saving. You can also try a tool like HWMonitor to keep an eye on temperatures and see if the CPU/GPU and hitting a thermal downclock (very common on laptops, when they get too hot the CPU/GPU will lower speed to compensate and try to cool off).
 

TheSyldat

New Member
will look into that but I doubt it changed.

I made a setup for being on high perfs all the time and locked it down ...

So it shouldn't have changed ... :/
 
Top