VoxelStreamRegionFiles

Inherits: VoxelStream

Loads and saves blocks to region files indexed by world position, under a directory.

Description:

Loads and saves blocks to the filesystem, in multiple region files indexed by world position, under a directory. Regions pack many blocks together, so it reduces file switching and improves performance. Inspired by Seed of Andromeda and Minecraft.

Region files are not thread-safe. Because of this, internal mutexing may often constrain the use by one thread only.

Properties:

Type Name Default
int block_size_po2 4
String directory ""
int lod_count 1
int region_size_po2 4
int sector_size 512

Methods:

Return Signature
void convert_files ( Dictionary new_settings )
int get_block_size_po2 ( ) const
Vector3 get_region_size ( ) const

Property Descriptions

  • int block_size_po2 = 4

  • String directory = ""

Directory under which the data is saved.

  • int lod_count = 1

  • int region_size_po2 = 4

  • int sector_size = 512

Method Descriptions

Generated on May 31, 2021