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 ) |
Vector3 | get_region_size ( ) const |
Property Descriptions¶
Directory under which the data is saved.
Method Descriptions¶
-
void convert_files( Dictionary new_settings )
-
Vector3 get_region_size( )
Generated on Sep 12, 2023