Marc Gilleron
33b66153dc
Use span instead of requiring a vector
2021-10-03 01:32:01 +01:00
Marc Gilleron
30db0c5193
Split VoxelBuffer in two, script-facing wrapper and internal.
...
The internal is the main use within the voxel engine,
and does not inherit Reference.
2021-09-26 04:14:50 +01:00
Marc Gilleron
2c3b7fae5a
Error more explicitely in case trying to serialize an empty block
2021-07-25 20:38:15 +01:00
Marc Gilleron
411be94559
Renamed ArraySlice -> Span
2021-05-31 16:48:49 +01:00
Marc Gilleron
d1207bdd96
Reorganized some utility files
2021-02-17 20:34:35 +00:00
Marc Gilleron
b65b0b8045
Implemented saving and loading of modified instances in SQLite
2021-02-07 17:22:50 +00:00
Marc Gilleron
3c092771e9
Missing include
2021-01-31 16:32:03 +00:00
Marc Gilleron
a0e7a3229c
Added compression header to make it reusable for other formats and more future proof
2021-01-31 15:47:36 +00:00
Marc Gilleron
c6b169b978
Upgraded block serialized format, added some error handling
2021-01-30 01:36:37 +00:00
Marc Gilleron
834f7fe090
Fix serialized blocks unable to save when using channel depth greater than 8 bits
2021-01-28 22:03:58 +00:00
Marc Gilleron
01e5e18922
Implemented VoxelStreamSQLite
2021-01-28 22:02:49 +00:00
Marc Gilleron
46d1b78724
Added region file debug checks
2021-01-17 22:22:42 +00:00
Marc Gilleron
a90e520416
Formatting
2021-01-17 17:23:49 +00:00
Marc Gilleron
6c80da0425
Moved VoxelBuffer and VoxelMemoryPool under storage/ directory
2020-09-14 19:33:02 +01:00
Marc Gilleron
9ccf16419d
Merge branch 'master' into threading_refactor
...
# Conflicts:
# streams/voxel_block_serializer.cpp
# voxel_buffer.h
2020-09-08 21:40:59 +01:00
Marc Gilleron
0922b92ace
Fix some GCC warnings and Clang error
2020-09-07 23:26:04 +01:00
Marc Gilleron
d81ffb95f4
Detect usage of Tracy, add some profiler scopes
2020-08-30 04:00:01 +01:00
Marc Gilleron
1a551fc77d
Added support for per-voxel and per-block metadata
2020-08-10 19:03:01 +01:00
Marc Gilleron
ac3e303818
Report script errors a bit better, I hope
2020-08-02 18:57:08 +01:00
Marc Gilleron
4991b682d9
Exposed block serializer
2020-07-25 21:56:23 +01:00
Marc Gilleron
a8c5fed29d
File streams fixes:
...
- Uniform compression now supports more than 8-bit depth (compat implementation)
- Fix buffers not being set to correct depth before loading from file
- Check if we save correct buffer depths in region files
- Fix inverted check when reading region meta file
- Fix version check not working in JSON meta file because it's float
2020-02-09 17:07:53 +00:00
Marc Gilleron
4b52d8fd18
get_channel_raw returns an ArraySlice instead of a pointer
2020-01-25 23:26:55 +00:00
Marc Gilleron
2d1a53048c
Merge branch 'master' into depth
...
# Conflicts:
# streams/voxel_block_serializer.cpp
2020-01-10 01:43:38 +00:00
Marc Gilleron
ad163e6a73
Temporary fix: persistent streams not working due to missing use of VoxelMemoryPool
2020-01-07 21:24:14 +00:00
Marc Gilleron
5e066fa7cd
Fix compilation
2020-01-06 00:46:58 +00:00
Marc Gilleron
a8f8a03439
Added customizable bit depth to VoxelBuffer. UNTESTED
2020-01-04 19:20:49 +00:00
Cory Petkovsek
9a06cdd3ef
Fix mono build warnings
2019-10-04 02:17:44 +08:00
Marc Gilleron
89a0888f9f
Moved lz4 to a thirdparty folder
2019-08-24 23:07:30 +01:00
Marc Gilleron
3a64209b27
Added LZ4 compression to saved blocks. Makes them fit in single sectors much more often, increasing performance
2019-08-17 18:15:16 +01:00