If a masterclient sends an RPC to himself, does it still go over the network?

When a master client sends an RPC to All, does it execute right away for the master itself, or does it go back and forth on the network?

The below code is run only on the master client. Which one of these is preferred and will it happen X ms before on the master client? (X = current ping I guess...)

In this case it’s a cosmetical effect, but in some cases it might be a small advantage to the master if it gets an update before the other clients.

To others, local on master:
photonView.RPC("SpawnBulletEffect", PhotonTargets.Others, params);
To all:
photonView.RPC("SpawnBulletEffect", PhotonTargets.All, params);


Sign In or Register to comment.