Allow deleting chunk instantly for migration scripts
Posted: Sun Mar 17, 2019 6:23 am
Problem:
Migration scripts updating existing surface(s) to new biomes, e.g. when adding alien biomes mid game or updating to a new map generator, take a lot of memory when generating temporary surfaces as deleting chunks will only happen after they complete.
Suggestion:
Add a method similar to force_generate_chunk_requests() for chunk deletion to forcefully purge chunks within the same tick.
This method could be limited to work only within migration scripts if it'd cause issues in control phase.
Migration scripts updating existing surface(s) to new biomes, e.g. when adding alien biomes mid game or updating to a new map generator, take a lot of memory when generating temporary surfaces as deleting chunks will only happen after they complete.
Suggestion:
Add a method similar to force_generate_chunk_requests() for chunk deletion to forcefully purge chunks within the same tick.
This method could be limited to work only within migration scripts if it'd cause issues in control phase.