Any built in throttle systems for high frequency RPCs?
I'm currently writing replication code for the transform of a player controlled object (specifically, it's a VR motion controller). From my understanding, the only way to replicate the transform from the client to the server is through an RPC.
As this object will be moving pretty much constantly, a simple dirty check would have me sending an RPC every frame. Is there anything built into Unreal that would help throttle this automatically or do I need to write my own system?
asked Sep 21 '16 at 09:56 PM in C++ Programming
UnrealNetwork will do its best to handle any replication that is going through the system to be as efficient as possible. This includes doing things like keeping the last state of any variable replication on the server and only sending it to the client(s) if it has changed.
Furthermore, if you don't want to "overload" the network with any one variable being sent on frame, you can send it as "unreliable", meaning given high network saturation, the replication could be dropped.
Also, just as a thought, you should be able to replicate a single transform on frame without a big performance hit (unless you are doing this for a big number of Actors). I feel like its one of those situations where you set it up to work and only look into optimization if it becomes a issue.
Here is documentation for Unreal RPC:
Follow this question
Once you sign in you will be able to subscribe for any updates here