Skip to content

Only send terminal state to interacting players#479

Open
SquidDev wants to merge 2 commits intodan200:masterfrom
SquidDev-CC:feature/network-optimisations
Open

Only send terminal state to interacting players#479
SquidDev wants to merge 2 commits intodan200:masterfrom
SquidDev-CC:feature/network-optimisations

Conversation

@SquidDev
Copy link
Copy Markdown
Contributor

@SquidDev SquidDev commented Oct 12, 2017

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.

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 curerntly using the computer.

This reduces network usage by a substantial amount.
Previously they were not marked as such, meaning computer state was not
broadcast to the client until blinking state changed.
@thatcraniumguy
Copy link
Copy Markdown

Can one of the admins verify this patch?

ccserver pushed a commit to ccserver/ComputerCraft that referenced this pull request Sep 16, 2019
…network-optimisations

Only send terminal state to interacting players
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants