Reconcile method for SyncVars #676
Closed
AlphaLul
started this conversation in
Feature Request
Replies: 1 comment
-
SyncVars are outside the prediction loop. If anything we're going to move towards two different work flow rather than try to mash everything together. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, server-authoritative predicted SyncVars have the client tell the server what to set it to and the server does so. If the value is invalid and you want to reconcile, you have to invoke a TargetRpc to correct it on the owner client. It would be a much easier experience if there was a SyncVar method to tell the owner client to reconcile a predicted SyncVar instead of having to make a TargetRpc for every variable.
Below are examples of the current workflow and what I imagine the new workflow would be like to display the benefits. The difference is small with only 1 SyncVar, but the TargetRpcs add up fast if you have multiple variables.
Current workflow:
Proposed workflow:
Beta Was this translation helpful? Give feedback.
All reactions