If a masterclient sends an RPC to himself, does it still go over the network?
Options
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:
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); SpawnBulletEffect(params);To all:
photonView.RPC("SpawnBulletEffect", PhotonTargets.All, params);Thanks!
0
Comments
-
"Sends the RPC to everyone else and executes it immediately on this client. Player who join later will not execute this RPC. "
https://doc-api.photonengine.com/en/pun/current/group__public_api.html#gab84b274b6aa3b3a3d7810361da16170f0 -
Thanks, sorry for missing that in the docs!0