RoomRates
RoomRates = {
sendsPerSecond?:30;tickRate?:30; } | {sendsPerSecond?:60|30|20;tickRate:60; }
A room’s tick rate and send rate, paired so a send always falls on a tick: 30 ticks with 30 sends, or 60 ticks with 60, 30 or 20 sends. Left out, 30 ticks, and as many sends as ticks.
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ sendsPerSecond?: 30; tickRate?: 30; }
| Name | Type | Description |
|---|---|---|
sendsPerSecond? |
30 |
The room’s sends a second, which divide tickRate: 30 at 30 ticks. The tick rate when left out. |
tickRate? |
30 |
The room’s ticks a second, 30 or 60; defaultRoomTickRate, 30, when left out. Every system and a page’s prediction step once a tick, in the room and in a run of the game alone. 60 doubles the room’s work for the same players, and an input lands on a 17 ms boundary instead of 33. |
Type Literal
Section titled “Type Literal”{ sendsPerSecond?: 60 | 30 | 20; tickRate: 60; }
| Name | Type | Description |
|---|---|---|
sendsPerSecond? |
60 | 30 | 20 |
The room’s sends a second, which divide tickRate: 60, 30 or 20 at 60 ticks. The tick rate when left out. Fewer sends cost each player fewer bytes and show other players later. |
tickRate |
60 |
The room’s ticks a second, 30 or 60; defaultRoomTickRate, 30, when left out. Every system and a page’s prediction step once a tick, in the room and in a run of the game alone. 60 doubles the room’s work for the same players, and an input lands on a 17 ms boundary instead of 33. |