Threaded Runtime Module

This Module provides an interface for other Modules to interact with the Kernel.

Globals

computer

The Computer Library provides functions for interaction with the computer and especially the Lua Runtime.

computer.demote ()

This function is used to allow switching back to the normal tick rate.

computer.isPromoted () → boolean

Returns true if the Lua runtime is currently promoted/elevated. Which means its running in an seperate game thread allowing for fast bulk calculations.

Details
Return Values
Name Type Description

Promoted promoted

boolean

True if the currenty runtime is running in promoted/elevated tick state.

computer.promote ()

This function is mainly used to allow switching to a higher tick runtime state. Usually you use this when you want to make your code run faster when using functions that can run in asynchronous environment.