# Network: How not to send all PRC every tick?

**URL:** <https://forums.unrealengine.com/t/network-how-not-to-send-all-prc-every-tick/2719753>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question\
**Created:** [May 3, 2026, 10:48pm UTC](https://forums.unrealengine.com/t/network-how-not-to-send-all-prc-every-tick/2719753 "2026-05-03T22:48:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Babush61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Babush61](https://forums.unrealengine.com/u/Babush61)\
**Post date:** [May 3, 2026, 10:48pm UTC](https://forums.unrealengine.com/t/network-how-not-to-send-all-prc-every-tick/2719753/1 "2026-05-03T22:48:37Z")

</div>

Hello. I have code that moves actors on the client side and every tick I call an RPC on the server so that the server moves the actor for other clients. As far as I know, all RPCs are queued and all will be sent. Accordingly, if the tick is called too often (high FPS), there will be a queue of RPCs between sends. But all RPCs in this queue except the last one are useless (we need the last RPC).

Is there a way to send only the last RPC?

---

<div class="post-metadata">

**Author:** ![danamaloma](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/danamaloma/32/1167197_2.png) [@danamaloma](https://forums.unrealengine.com/u/danamaloma)\
**Post date:** [May 4, 2026, 1:12am UTC](https://forums.unrealengine.com/t/network-how-not-to-send-all-prc-every-tick/2719753/2 "2026-05-04T01:12:37Z")

</div>

**No, Unreal does not automatically discard older queued RPCs and keep only the latest one.**  
Reliable RPCs are guaranteed and sent in order. Unreliable RPCs may be dropped, but they are still queued for send attempts — Unreal does not treat them as “replace previous with newest”.

### Best practice for movement replication:

Do **not** send an RPC every frame for transform updates.

Instead use one of these approaches:

* * *

## 1. Use built-in movement replication (recommended)

If this is a Pawn/Character, use:

- `CharacterMovementComponent`

- `SetReplicateMovement(true)`

Unreal already handles client prediction, server correction, smoothing, compression, and update rates efficiently.

This is the proper solution for player-controlled movement.

* * *

## 2. Replicate state, not every Tick event

If this is a custom actor:

Send input/state changes at a fixed rate (for example 10–20 times/sec), not every frame.

Example:

- Forward value changed

- Direction changed

- Target position changed

Then server simulates movement.

* * *

## 3. Use Unreliable RPC + timer

Instead of Tick:

```auto
GetWorldTimerManager().SetTimer(..., 0.05f, true);

```

Send updates every 50 ms (20 Hz).

Use:

```auto
UFUNCTION(Server, Unreliable)

```

This reduces bandwidth heavily.

* * *

## 4. Store latest value and send periodically

If you truly only need the newest update:

- Client updates a local variable every Tick

- Every 50ms send **one RPC** with the latest stored value

Example:

```auto
LatestMoveInput = CurrentInput; // every Tick

// timer sends:
Server_SendMove(LatestMoveInput);

```

This effectively gives you “send only last RPC”.

* * *

## Important note

If FPS = 120 and net update = 20 Hz, sending Tick RPCs means 6 useless calls between packets. Avoid that design.

* * *

## Final recommendation

For movement:

- **Characters:** use built-in CharacterMovement replication

- **Physics/custom actor:** send inputs at fixed rate

- **Never spam Server RPC every Tick unless absolutely necessary**

* * *

## Direct answer to your question

> Is there a way to send only the last RPC?

---

<div class="post-metadata">

**Author:** ![Babush61](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Babush61](https://forums.unrealengine.com/u/Babush61)\
**Post date:** [May 4, 2026, 6:37pm UTC](https://forums.unrealengine.com/t/network-how-not-to-send-all-prc-every-tick/2719753/3 "2026-05-04T18:37:27Z")

</div>

The AI’s answer is garbage.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [May 7, 2026, 4:42am UTC](https://forums.unrealengine.com/t/network-how-not-to-send-all-prc-every-tick/2719753/4 "2026-05-07T04:42:08Z")

</div>

there may be better ways depending on what exactly you’re trying to do but the absolute simplest would be just to check when the value changes.

ie you have a move input of x=1,y=0 then if is newx != oldx send RPC
