Engine
core.engine.get_fps_limit
SharedRetrieves current maximum frames per second
Syntax
local limit = core.engine.get_fps_limit()Behaviour depends on where it is called.
- Server — returns the FPS limit currently enforced on all clients.
- Client — returns the FPS limit currently in effect, which is the lower of the server's limit and the local limit.
- No limit —
0means no limit is applied.
Parameters
| No parameters are accepted by this function |
|---|
Returns
| Type | Name | Description |
|---|---|---|
int | limit | Current maximum frames per second |
Examples
core.engine.print("info", "FPS Limit:", core.engine.get_fps_limit())