- Documentation
- Client functions
- setBrowserFrameRate
Function
setBrowserFrameRate
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)