I hear that RPCs can be slow if you’re using them to synchronize player positions. People say to use NetworkViews instead.
However, my situation is a bit more complex…
I’m using RPCs as “pings”, which go to straight to the server. The server receives the ping, then sends an “update” to all other clients that need to know where the pinged player is. Those clients simulate where the player is by using a list of places that the player has to go, and having the player move through each position in the list one by one, kind of like following the same path the pinged player took.
Each client keeps track of the last time it pinged its position, and only pings it if it’s been so much time since then.
The way I’ve set it up makes it hard to just “start using NetworkViews”, because I relied on the method of using RPCs to convert positions into ‘orders’.
My question is, is it “bad” to do it this way? Will I experience a lot of lag issues if I had lots of players “pinging” their position and jumps and everything through RPCs instead of NetworkViews?
If so, would it be best to use a NetworkView with Unreliable state synchronization for the best performance?
Thanks for any answers!