Skip to content

Conversation

@Lpsd
Copy link
Member

@Lpsd Lpsd commented Oct 19, 2024

Adds two options to "web browser" tab in the main menu settings:

  • Enable GPU rendering (CVAR: browser_enable_gpu=1)
  • Enable GPU compositing (CVAR: browser_enable_gpu_compositing=1)

image

GPU rendering must be enabled for GPU compositing to be available. Both options require a restart upon change to take effect.

Adds a clientside Lua function to check if browser GPU is enabled:

bool isBrowserGPUEnabled()

Note: for some reason the GPU is not being disabled for me, even though I've debugged and can see the disable-gpu flag being applied (http://gta.rockstarvision.com/vehicleviewer still works for example, which relies on WebGL). Need others to test and see if they get the same results, as it doesn't make much sense 🤔

GPU has always been disabled in MTA, until #2933 (merged 2 weeks ago)

Update: according to @theSarrum these changes work (both enabling and disabling), tested by attempting to load a page with WebGL content.

@Dutchman101 Dutchman101 merged commit bfdfdb5 into multitheftauto:master Oct 20, 2024
6 checks passed
MTABot pushed a commit that referenced this pull request Oct 20, 2024
bfdfdb5 Add main menu setting for browser GPU rendering (#3816)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants