Filling GridMap in the background

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

Hi!
In my game I have a randomly generated GridMap. I want it to have 2048x2048 size. Right now I have 512x512 and loading it takes very long time.
Is there a way to generate it in the background (using GridMap.set_cell_item()) and then show it?