# Time Slicing RemoveFromWorld To Match AddToWorld

**URL:** <https://forums.unrealengine.com/t/time-slicing-removefromworld-to-match-addtoworld/2264546>\
**Category:** Programming & Scripting\
**Tags:** c-c, c-class-wizard, c-and-bluepri, c-custommeshcomponen, c-and-blueprint, c-error, c-class, c-custom-shape, c-programming, c-cone-shape, unreal-engine, question, CPP\
**Created:** [January 7, 2025, 3:58pm UTC](https://forums.unrealengine.com/t/time-slicing-removefromworld-to-match-addtoworld/2264546 "2025-01-07T15:58:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam.Hughes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sam.Hughes](https://forums.unrealengine.com/u/Sam.Hughes)\
**Post date:** [January 7, 2025, 3:58pm UTC](https://forums.unrealengine.com/t/time-slicing-removefromworld-to-match-addtoworld/2264546/1 "2025-01-07T15:58:06Z")

</div>

Hi,

So we are seeing performance spikes in RemoveFromWorld, upon investigation we have noticed that RemoveFromWorld isn’t Time Sliced/Multi Framed like AddToWorld is. We have been playing around with code changes to Time Slicing RemoveFromWorld to match AddToWorld and it provisionally looks viable, but will need extensive testing.

That said we want to confirm that there isn’t a reason why Epic haven’t implemented this themselves already? Is there any known safety issues which would prohibit this in the current engine/framework design? Or is this something that is on the roadmap and is going to be implemented by Epic in a coming release to fix this issue?

thanks

---

<div class="post-metadata">

**Author:** ![Yabab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yabab](https://forums.unrealengine.com/u/Yabab)\
**Post date:** [July 21, 2025, 10:55pm UTC](https://forums.unrealengine.com/t/time-slicing-removefromworld-to-match-addtoworld/2264546/3 "2025-07-21T22:55:38Z")

</div>

I’ve stumbled upon this same question. My current bottleneck is foliage and I’m currently playing around with different foliage cell sizes and HLOD bakes, but still no success. I’m using an open source version of 5.3 and considered customizing the code for RemoveFromWorld too.

Did you go through with it?

---

<div class="post-metadata">

**Author:** ![Sam.Hughes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sam.Hughes](https://forums.unrealengine.com/u/Sam.Hughes)\
**Post date:** [October 30, 2025, 2:18pm UTC](https://forums.unrealengine.com/t/time-slicing-removefromworld-to-match-addtoworld/2264546/4 "2025-10-30T14:18:47Z")

</div>

We did this internally to start with but have now replaced our version with 5.6 which natively supports this, once turned on with a CVar.

---

<div class="post-metadata">

**Author:** ![Yabab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yabab](https://forums.unrealengine.com/u/Yabab)\
**Post date:** [November 28, 2025, 2:12am UTC](https://forums.unrealengine.com/t/time-slicing-removefromworld-to-match-addtoworld/2264546/5 "2025-11-28T02:12:10Z")

</div>

I thought about moving up to 5.6, but I’m not going through the migration effort until 6 is out. Then I’ll migrate to 5’s latest version and stay there. Since I was building from source, I actually refactored the engine’s code to support this. Dealing with Chaos was tough, but I eventually found a way to do it.
