# Stagger spawn actors

**URL:** <https://forums.unrealengine.com/t/stagger-spawn-actors/522438>\
**Category:** Blueprint\
**Tags:** unreal-engine, UE4, Blueprint, question\
**Created:** [April 10, 2022, 12:24am UTC](https://forums.unrealengine.com/t/stagger-spawn-actors/522438 "2022-04-10T00:24:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheCrimsonHeart11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TheCrimsonHeart11](https://forums.unrealengine.com/u/TheCrimsonHeart11)\
**Post date:** [April 10, 2022, 12:24am UTC](https://forums.unrealengine.com/t/stagger-spawn-actors/522438/1 "2022-04-10T00:24:19Z")

</div>

I am making a game with chunks loading in and out kind of like Minecraft’s system. When new chunks spawn in they all spawn at once causing major frame drops. How can I stagger the chunk spawning?

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [April 10, 2022, 8:03am UTC](https://forums.unrealengine.com/t/stagger-spawn-actors/522438/2 "2022-04-10T08:03:42Z")

</div>

What are the chunks? Blueprints, segments of landscape, streamed levels?

---

<div class="post-metadata">

**Author:** ![bor\_kor](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@bor\_kor](https://forums.unrealengine.com/u/bor_kor)\
**Post date:** [December 4, 2024, 7:51pm UTC](https://forums.unrealengine.com/t/stagger-spawn-actors/522438/3 "2024-12-04T19:51:19Z")

</div>

I have the same problem, and in my solution chunks are Actors, and each of them contains Instanced Static Meshes for every possible block type (though there’s only one block type I’ve added).

I’ve thought of stagger spawning chunks in my [first post](https://forums.unrealengine.com/t/spawn-destroy-exact-amount-of-actors-per-tick-to-not-cause-any-performance-lack/2131052) on the forum (if I understand what that means correctly), but ended up with [pool system](https://youtu.be/WEXVOE8s0Og), so now when i push chunk to pool, I clear all instances of all ISMs, and when I pull from pool, i create lots of instances according to terrain generation algorithm (which i didn’t managed to set up yet). All of these operations cost a lot of time and there’s no surprise that game freezes every time chunks need to be created/deleted.

Because pool system for chunks work pretty well, I think I shuouldn’t touch that part of my code, however, I still need to deal with instances of ISMs, and i think stagger spawn will be the best solution for that case, so i still wonder how to set it up properly, so any advice would be helpful.

PS: I also wonder, if it’s possible to deal with this problem by using multithreading, and if so, what should I do to safely use `ISM::AddInstanse()` and `ISM::ClearInstances()` in any thread.
