IsBrowserGPUEnabled: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 3: Line 3:
This function checks if the client has the "Enable GPU rendering" setting enabled, which allows the usage of things like WebGL in browsers.
This function checks if the client has the "Enable GPU rendering" setting enabled, which allows the usage of things like WebGL in browsers.


'''Note''': this is a global setting, not specific to any browser instance and can only be changed by the user.
'''Note''': this is a global setting, not specific to any browser instance and can only be changed by the client.


==Syntax==
==Syntax==

Revision as of 00:46, 22 October 2024

This function checks if the client has the "Enable GPU rendering" setting enabled, which allows the usage of things like WebGL in browsers.

Note: this is a global setting, not specific to any browser instance and can only be changed by the client.

Syntax

bool isBrowserGPUEnabled()

OOP Syntax Help! I don't understand this!

Method: Element/Browser(...)
Variable: .gpuEnabled


Returns

Returns true if the client has browser GPU rendering enabled, false otherwise.

See Also