ComputerCraft icon indicating copy to clipboard operation
ComputerCraft copied to clipboard

Only send terminal state to interacting players

Open SquidDev opened this issue 8 years ago • 1 comments

This splits the computer state (blinking, label, etc...) and terminal state into two separate packets. When a computer changes, the computer state is sent to all players and the terminal state is sent to players who are currently using the computer. This reduces network usage by a substantial amount.

CCTweaks has employed a similar optimisation for a while now, and not seen any adverse effects.

There are several further optimisations which could be implemented (such as only sending regions of the terminal which have changed) but that is not within the scope of this PR.

SquidDev avatar Oct 12 '17 09:10 SquidDev

Can one of the admins verify this patch?

thatcraniumguy avatar May 23 '18 00:05 thatcraniumguy