# Can I trust "replicated" variables? And how quickly are they replicated?

**URL:** <https://forums.unrealengine.com/t/can-i-trust-replicated-variables-and-how-quickly-are-they-replicated/1792490>\
**Category:** Blueprint\
**Tags:** variables, Variable, Replication, unreal-engine, UE5, question, Blueprint\
**Created:** [April 7, 2024, 2:42pm UTC](https://forums.unrealengine.com/t/can-i-trust-replicated-variables-and-how-quickly-are-they-replicated/1792490 "2024-04-07T14:42:10Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Fairchild](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fairchild](https://forums.unrealengine.com/u/Fairchild)\
**Post date:** [April 7, 2024, 3:02pm UTC](https://forums.unrealengine.com/t/can-i-trust-replicated-variables-and-how-quickly-are-they-replicated/1792490/3 "2024-04-07T15:02:39Z")

</div>

Thank you for the quick response, that was helpful. I won’t be changing the variable value on the client. I just need to see what the server says it is, and quickly.

Question though. I found another post with some information regarding timing.

> Replicated variables while are always reliable, aren’t replicated as fast as possible. _They are queued, and replicated in batches at the end of tick._
> 
> RPC on the other hand are replicated to clients the moment they are called (doesn’t mean they will arrive faster than variable, though they usually are). You can send data with RPC (as value parameters), but as per usually it won’t work with UObjects only simple data with defined serialization/deserialization. Most native UE types will work out of box. If you have something special, you have to take care of it, yourself.
> 
> You should use RPC any time you want to get data to clients, as fast as possible and use replicated variables if you just want to synchronize values or state of object.

It sounds like I should be using RPC if I want the client to have the updated information asap. For instance, the player can “click-drag” multiple tiles to create a wall which I could see issues arising if the logic is not getting a guaranteed accurate current variable.

Thread here:

> [@RPCs versus Replication and OnRep-events](https://forums.unrealengine.com/t/rpcs-versus-replication-and-onrep-events/87077):
>
> I’d like to hear some opinions about RPCs and OnRep. In my project I am shifting more and more towards using OnReps instead of RPCs. It just seems much more reliable. And often RPCs can potentially desync the game between machines, especially when you’re thinking about re-connecting to a game or generally joining a game in progress, where all previous RPCs are “missing”. Another problem with RPCs is that necessary replicated data usually isn’t available on the client in time, when you change it …

---

_[View the full topic](https://forums.unrealengine.com/t/can-i-trust-replicated-variables-and-how-quickly-are-they-replicated/1792490)._
