GetServerTickRate: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
 
Line 11: Line 11:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua>
local serverTick = GetServerTickRate()
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
*[[GetServerTickRate]]
*[[ServerExit]]
*[[SetServerName]]
*[[GetServerName]]
*[[GetMaxPlayers]]

Latest revision as of 14:18, 26 June 2021

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