Peformance issues - saving chunks

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

I’m working in a 2d topdown survival game with a procedural generated world, my world is infinite(for now) so i generate my game using chunks and i’m saving this chunks in my save file, where each tile is an array like this: [tile_id(int), position(Vector2)].

The problem is that every time i save my file using store_var() my game freezes for a moment, so i want to know if there is a faster way to store an array inside a file.

Is there a way to check which parts you’ve already saved, and only saved what’s changed?

Ertain | 2021-01-17 01:29