Set NUI-in process GPU default to true

Hello,

I would like to suggest enabling “nui-in process gpu” setting by default on FiveM.

For servers heavily reliant on NUI interfaces new users often get very slow UI and blame the server for their issue. We’ve to manually guide them to enable this setting to fix the issue, and that’s only for those that come to us for support. Many probably give up playing or just deal with it. It would be great to have either this setting enabled by default or some kind of warning to tell the user how to fix its UI lags.

Thanks :slight_smile:

Nope, this can and will break with weird graphics mods and it does increase unreliability on weird systems.

Rather someone should convince Microsoft to finally fix their goddamn bug somehow, or maybe someone can think of a better fix than enabling the deprecated --in-process-gpu flag in Chrome (perhaps throttling the game to always stay below 90% GPU usage?).

2 Likes

Would it maybe be possible to have a getter for the “nui-in process gpu” setting, so server owners / developers could implement like an small info notification when in the main menu of the server. That tells the users that if they have UI lag, they could try enableling the setting?

Sorry if this is not the right place to discuss or suggest another change that has to do with this one. If this is the wrong place or would lead to a huge unwanted discussion, please delete my response.

This should already be doable using GetConvarInt('nui_useInProcessGpu', 0).

Seems this shipped as of Windows 11 22H2, but I don’t know if this’ll also make it inherit DX priority and it’s still a LAF technically so we have to contact the MSFT email alias formally, which I just did never mind that alias is a lie:

image

1 Like

Also: it doesn’t. Of course it wouldn’t.

Thanks, Microsoft!

It seems like it might in the current Windows ‘Canary Channel’ release. If it does, I wonder if this’ll get backported to Nickel (11 22H2/2023) as well or if it’ll be Windows ‘12’ only.

Added it anyway: tweak(client): set GPU process as priority-boosted · citizenfx/fivem@4465474 · GitHub.

This won’t have the desired effect on Windows releases before build 25xxx (at this time just the ‘canary channel’) however.

2 Likes

Thank you. Awesome.