Interface MovementOptimizations

Hierarchy

  • MovementOptimizations

Properties

deadChecks: boolean

Whether or not to check whether the sender and the reciever are dead so as to not send movement packets from alive players to dead players.

Default

true

reuseBuffer: boolean

Whether or not to re-use the buffer to send to every client, instead of re-constructing the packet each time.

Default

true

updateRate: number

How often to actually broadcast movement packets from a single player, should be a very low number, between 1 and 3, where 1 is the most frequent (every packet is broadcasted) and 3 is the least frequent.

Default

1

visionChecks: boolean

Whether or not to check whether or not the player receiving each movement packet is in the vision of the player that moved, so-as to only send movement packets to those who can see it.

Default

false

Generated using TypeDoc