More efficient...OnSerializeView or RPC?
Options
We have a situation where information needs to change fairly frequently, and we're not sure what is more efficient in terms of speed and bandwidth. Say every player has a Booster button, that when they hold it down, this fact is sent to all connected players. This booster might be on for a while, then off for a while, maybe 2 or 3 times per second if someone is doing short bursts. So is it better to have an RPC to set on and an RPC to set off, or is it better to just add an integer 0 or 1 along with the position/rotation info that gets serialized and sent anyway?
Thanks
Thanks
0
Best Answer
-
Use one int32 as bit array. this way you have 31 bits left to sync other game state bools.5
Answers
-
Use one int32 as bit array. this way you have 31 bits left to sync other game state bools.5
-
Thanks, good idea, I will try that0