Quantcast
Channel: Latest Questions by Elric
Viewing all articles
Browse latest Browse all 6

RPC.Others vs multiple RPCs

$
0
0
I want to send RPC with some data only to players that are close enough to current player. For example, we have 100 players. function Update(){ networkView.RPC("Function", RPCMode.Others, someData); } vs function Update(){ for(var player : NetworkPlayer in PlayersList){ if(range < 100){ networkView.RPC("Function", player, someData); } } } Question: sending RPC with RPCMode.Others is cheaper by performance or bandwidth than sending multiple personal RPCs, or in fact RPCMode.Others is the same as 99 times send RPC("", somePlayer : NetworkPlayer)?

Viewing all articles
Browse latest Browse all 6

Trending Articles