Commit Graph

431 Commits (b2f7d23f7fabf6d4313b8937af7334ded17f62f6)

Author SHA1 Message Date
Marc Gilleron d4ed6372b7 Optimize collision shapes, doubles build speed 2019-08-25 22:59:55 +01:00
Marc Gilleron 392dea37f5 Merge branch 'master' of https://github.com/Zylann/godot_voxel 2019-08-25 18:48:01 +01:00
Marc Gilleron 8fc1e40230 Line up statistics variable names 2019-08-25 18:47:43 +01:00
Marc a2e62a4436
Merge pull request #53 from tinmanjuggernaut/update_docs
Update docs
2019-08-25 19:17:02 +02:00
Marc Gilleron a0c7201fcd Rename `get_stats()` => `get_statistics()` 2019-08-25 17:40:19 +01:00
Marc Gilleron c13c0fbf20 Fix `remaining_main_thread_blocks` stat, it wasn't reported 2019-08-25 17:23:25 +01:00
Cory Petkovsek 3e40ceb844 Update docs 2019-08-25 23:54:01 +09:00
Marc Gilleron 4ec82928b4 Remove redundant VoxelTerrain::BlockDirtyState 2019-08-25 15:14:10 +01:00
Marc Gilleron 4ff5f91e6f Add optional physics collision through node-less static bodies 2019-08-25 13:04:49 +01:00
Marc Gilleron 332041751d Move mesh instance into a thin wrapper 2019-08-25 01:11:38 +01:00
Marc Gilleron ed2db2b443 Put back meshing threads to 1 for VoxelTerrain, it doesnt react well to unordered block responses 2019-08-24 23:31:48 +01:00
Marc Gilleron 368e3efd1e Remove unecessary condition 2019-08-24 23:31:01 +01:00
Marc Gilleron 9ca40b854b Don't stop threads when the terrain exits the tree, it prevents saving-on-destroy from completing 2019-08-24 23:26:01 +01:00
Marc Gilleron 3074f8228d Fix wrong size checks in VoxelBuffer::copy_from 2019-08-24 23:08:04 +01:00
Marc Gilleron 89a0888f9f Moved lz4 to a thirdparty folder 2019-08-24 23:07:30 +01:00
Marc Gilleron 68dfe9fc70 Fix crash where null maps were accessed 2019-08-24 22:38:27 +01:00
Marc Gilleron e815f79a5e Removed unused variable 2019-08-24 01:44:51 +01:00
Marc Gilleron f14b374931 Made block size and a few other params modifiable (not so easy, though) 2019-08-24 01:44:27 +01:00
Marc Gilleron adc6a9391c Fix threading issue causing corruption when duplicate rejection is active 2019-08-23 22:49:43 +01:00
Marc Gilleron f0c841ff11 Expose region file settings conversion, tested case of equal block size 2019-08-20 20:50:09 +01:00
Marc Gilleron 2a56af760b Added untested region file conversion, can't really try it yet 2019-08-19 23:17:23 +01:00
Marc Gilleron ced898def6 Remove unused function 2019-08-19 18:47:41 +01:00
Marc Gilleron dc73977a1a Changed profiler to be more like a stack-based one, also made it super light (CPU-wise) 2019-08-18 23:13:12 +01:00
Marc Gilleron 6e02a52e21 Don't write header to file if it never changed, makes read-only regions faster 2019-08-18 23:05:15 +01:00
Marc Gilleron 457ebf626d Added stat for time spent opening files 2019-08-18 16:10:40 +01:00
Marc Gilleron c7cf0c5b17 Show directory picker in inspector for file streams 2019-08-17 20:22:57 +01:00
Marc Gilleron e1d716d454 Merge branch 'master' into persistence 2019-08-17 20:16:22 +01:00
Marc Gilleron 808f22fb35 Rename VoxelStreamRegion => VoxelStreamRegionFiles 2019-08-17 19:56:21 +01:00
Marc Gilleron ece3a355af Rename VoxelStreamVXB => VoxelStreamBlockFiles 2019-08-17 19:43:08 +01:00
Marc Gilleron fbeaae6bac Moved some coordinate conversions to Vector3i 2019-08-17 19:34:40 +01:00
Marc Gilleron 6cb9971677 Remove AutoDeleteFile 2019-08-17 18:44:17 +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
Marc Gilleron 0483413b80 Added stats to VoxelStream, tweak file handles and batch counts 2019-08-17 00:46:24 +01:00
Marc Gilleron 43446356e9 Switch block processing to use arrays instead of single blocks to allow batching 2019-08-16 20:56:07 +01:00
Marc Gilleron 45f132a930 I did not intend to commit this 2019-08-15 22:36:26 +01:00
Marc Gilleron c6e0e59662 Fix uninitialized stats 2019-08-15 01:54:05 +01:00
Marc Gilleron 07d4deeaab Formatting 2019-08-15 01:40:27 +01:00
Marc Gilleron 9ba730391c Fixed umod, caused region saves to miss blocks at axis boundaries 2019-08-14 23:25:05 +01:00
Marc Gilleron 01b1ee0170 Added first working version of region save format, still WIP 2019-08-14 20:34:06 +01:00
Marc 7ced53ba6b
Merge pull request #36 from tinmanjuggernaut/set_material
Revert adding material property to fix error message
2019-08-11 14:03:39 +02:00
Marc d93d61ef7e
Merge pull request #44 from afonsolage/update_material_docs
Added info in order to enable AO
2019-08-11 13:14:04 +02:00
Afonso Lage 657536b08a Added info in order to enable AO 2019-08-10 18:18:41 -03:00
Marc Gilleron b00ec1ccad Merge branch 'master' into persistence 2019-08-09 20:07:43 +01:00
Marc 6ea2e48880
Merge pull request #40 from tinmanjuggernaut/gcc-struct-init-fix
Fix gcc build
2019-08-09 20:44:21 +02:00
Cory Petkovsek 9c56f75c60 Fix gcc build 2019-08-10 03:31:38 +09:00
Marc 67f44c566c
Merge pull request #28 from tinmanjuggernaut/tutorial
Created documentation
2019-08-03 01:16:39 +02:00
TinmanJuggernaut 0c37f2663c Created tutorials and API 2019-08-03 03:34:23 +09:00
Cory Petkovsek 2e6256f6a5 Revert adding material property to fix error message 2019-07-06 00:19:29 +09:00
Marc 9ee058b140
Merge pull request #35 from tinmanjuggernaut/set_material
Allow VoxelTerrain.set_material() from gdscript
2019-07-04 13:35:20 +02:00
Cory Petkovsek 18626133cd Allow set_material from gdscript 2019-07-04 00:58:39 +09:00