godot_voxel/doc/source/api/VoxelStreamRegionFiles.md
2021-04-10 01:43:55 +01:00

3.3 KiB

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 Apr 10, 2021