SplitScript reference / Language / tickRate
tickRate
declaration
tickRate { attached: 60, detached: 2 }
Overrides the lifecycle-owned polling rates.
SplitScript defaults to 1 Hz with no host process and 120 Hz while acquiring or polling a state provider. The active rate is applied before cooperative provider discovery begins, because range and signature scans make bounded progress per update, and remains in effect through onAttach and attached polling. Whenever the logical attachment ends, the detached rate is restored before onDetach. For native games this normally follows the process lifetime. Emulator mapping loss ends the logical attachment independently while the host remains open; rediscovery raises the rate again before it starts. Consequently an emulator awaiting a guest currently remains at the active rate when discovery itself is an indefinitely pending scan. 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,
}