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)?
↧