SplitScript reference / Language / tickRate

tickRate

declaration

tickRate { attached: 60, detached: 2 }

Overrides the lifecycle-owned polling rates.

SplitScript defaults to 120 Hz while a process is attached and 1 Hz while detached. The attached rate is applied immediately after acquiring a process, before onAttach and its cooperative discovery run. The detached rate is applied during module startup and immediately when a process closes. Either field may be omitted to retain its default; setTickRate remains available for temporary dynamic changes until the next lifecycle transition.

Examples

Override lifecycle polling rates

tickRate {
    attached: 60,
    detached: 2,
}