- Home /
Is an RPC call asynchronous?
Are RPC calls executed asynchronously?
That is when the NetworkView.RPC method is invoked, does it wait until the other machine(s) receive the call before continuing execution, or does it return execution immediately?
I would bet it's asynchronous otherwise you'd have massive lag on games where one player's lagging behind, but I don't know for sure, since I'm new here.
Answer by Bunny83 · Nov 07, 2013 at 08:07 AM
Of course it's asynchronous. With an average latency of 50ms it would take 100ms to get the response from a single peer. If you wait for the reply each time your framerate would drop below 10 fps. Most network communication is asynchronous.
Imagine what would happen if Web Servers weren't async...
Oh God!!
Thanks! That's what I assumed but didn't see it documented anywhere. (and you know what happens when you assume)
Answer by zertach · Nov 07, 2013 at 10:48 PM
yes. asynchronous.
you can call RPC asynchron from client side. and you can recive as asynchronous on server side.
But even RPC asynchron but all RPC functions while working using your fps on server side. if your FPS really so low than RPC working seems not asynchron.
Your answer
Follow this Question
Related Questions
Does the position change need state synchronization? 2 Answers
Problem with Playmaker Send Remote Event 1 Answer
Get NetworkPlayer from ViewID 1 Answer
get return on networkView.RPC 1 Answer