expand gridmap in another thread

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Roughnight


I’m currently working on a rogue-likeish game. I generate my world randomly in GDScript. I’ve added a thread inside my Gridmap-Script to expand the Gridmap if the player get’s to far (like a new floor of a building). But it keeps locking up my scene.

How can I expand the grid map without overloading the main thread. Do I have to divide my addition into small pieces, or is there another approach?

When you say it “keeps locking up your scene”, do you mean it freezes only as long as it takes to generate the expanded map?

caprinae | 2020-04-16 17:02