# When is a value pushed with MARK\_PROPERTY\_DIRTY() macro?

**URL:** <https://forums.unrealengine.com/t/when-is-a-value-pushed-with-mark-property-dirty-macro/2341285>\
**Category:** C++\
**Tags:** Networking, Replication, replicated-variable, unreal-engine, question\
**Created:** [February 18, 2025, 6:05am UTC](https://forums.unrealengine.com/t/when-is-a-value-pushed-with-mark-property-dirty-macro/2341285 "2025-02-18T06:05:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kotaru\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Post date:** [February 18, 2025, 6:05am UTC](https://forums.unrealengine.com/t/when-is-a-value-pushed-with-mark-property-dirty-macro/2341285/1 "2025-02-18T06:05:32Z")

</div>

If I were to replicate a variable, then update it after the push, but within the same frame, what value should be sent to the clients?

for example, if I were to do this on the server

```auto
MyInt = 0;

MARK_PROPERTY_DIRTY_FROM_NAME(AMyActor, MyInt, this)

MyInt = 1;

```

Should the client receive a 0 or 1 for MyInt?

---

<div class="post-metadata">

**Author:** ![Kotaru\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kotaru\_1](https://forums.unrealengine.com/u/Kotaru_1)\
**Post date:** [February 18, 2025, 6:17am UTC](https://forums.unrealengine.com/t/when-is-a-value-pushed-with-mark-property-dirty-macro/2341285/2 "2025-02-18T06:17:32Z")

</div>

Alright, I thought there was an issue with my testing, but it appears that they are pushed at (or near to) the end of the frame. It would push “1” in this case.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [February 18, 2025, 10:40pm UTC](https://forums.unrealengine.com/t/when-is-a-value-pushed-with-mark-property-dirty-macro/2341285/3 "2025-02-18T22:40:29Z")

</div>

In traditional replication, Dirty actors and properties are “polled” at the end of the game frame for changes. Remember that you are not garaunteed to receive all UPROPERTY changes, you are ONLY garaunteed to eventually catch up to the latest state.

Changing properties in quick succession will almost certainly result in some of those interim changes being dropped in the real world.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [March 20, 2025, 10:40pm UTC](https://forums.unrealengine.com/t/when-is-a-value-pushed-with-mark-property-dirty-macro/2341285/4 "2025-03-20T22:40:40Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
