ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. setBrowserFrameRate

Function

setBrowserFrameRate

ClientBrowserTrilogy Hub only

Sets how many times per second the page redraws (1-240, default 60). Fewer frames mean less CPU work, for example for a HUD that rarely changes; more frames give smoother animations on monitors above 60 Hz.

Syntax

bool setBrowserFrameRate(browser webBrowser, int fps)

Arguments

webBrowserbrowser
The browser.
fpsint
Frames per second 1-240.

Returns

true on success.

Example

setBrowserFrameRate(hudBrowser, 15)

See also