GetServerTickRate

From Onset Developer Wiki
Revision as of 14:18, 26 June 2021 by FlyingFork (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
GetServerTickRate

Type: Function
Context: Server
Introduced: v1.0

Description

Tick rate of the main thread. The rate is variable and depends on the load of the server. For an empty server this is between 500Hz and 1000Hz. For 300 concurrent players the tick rate should be above 150Hz.

Syntax

GetServerTickRate()

Parameters

  • This function has no parameters.

Return Value

  • Returns a float of the tick rate.

Example

local serverTick = GetServerTickRate()

See also