Marc Gilleron
ceb8553e4a
Avoid crash if the argument is invalid (though it's not really a public function)
2021-10-04 20:15:32 +01:00
Marc Gilleron
3597bce3e5
Update threads section
2021-10-04 19:34:01 +01:00
Marc Gilleron
c5b0ac43fb
Semi-async do_sphere() implementation. May change though.
...
It is a lot better than the fully synchronous do_sphere(),
but it would be a lot better if we could move everything async
2021-10-04 19:20:36 +01:00
Marc Gilleron
1d62649b9a
Fix leaking Pool objects
2021-10-04 01:36:15 +01:00
Marc Gilleron
c921922a44
Fix missing assignment
2021-10-04 01:33:32 +01:00
Marc Gilleron
191659ae7c
Fix voxel mips saved at wrong positions, caused them to show up often in the air
2021-10-04 01:32:12 +01:00
Marc Gilleron
c5972a420e
Fix compilation and gizmos
2021-10-03 15:47:56 +01:00
Marc Gilleron
bb7311b282
Merge branch 'master' into full_load_mode
2021-10-03 02:48:46 +01:00
Marc Gilleron
e75ba2eec2
Mention a few rendering points
2021-10-03 02:30:35 +01:00
Marc Gilleron
e04091f3cb
Added full load mode to VoxelLodTerrain
...
With this mode enabled, editing anywhere becomes possible.
All edited blocks are loaded at once when the stream is assigned.
The generator is used on the fly to fill the gaps, instead of being
pre-emptively cached only nearby the viewer to allow editing.
Editing is still on the main thread, so this can cause stalls if
the generator is complex. There is also no controlled limit on how
much data gets loaded, so if edited data is larger than RAM, it will
not be playable. The feature is already quite usable, but more work
may be done for wider viability.
2021-10-03 01:48:07 +01:00
Marc Gilleron
33b66153dc
Use span instead of requiring a vector
2021-10-03 01:32:01 +01:00
Marc Gilleron
16b7445d1d
Changing data block size is not supported at the moment
2021-10-03 01:28:29 +01:00
Marc Gilleron
e6f1be6ac3
Use same defaults as VoxelBuffer
2021-10-02 18:53:04 +01:00
Marc Gilleron
c6b2275738
Fix some stats and add VoxelMemoryPool info
2021-10-02 18:31:48 +01:00
Marc Gilleron
884a5c38d4
Fix test
2021-10-01 21:20:49 +01:00
Marc Gilleron
5f9d5ae17f
Show memory usage, use comma formatting for big numbers, shorten labels
2021-10-01 20:33:52 +01:00
Marc Gilleron
228e41b71e
Fixed writing out of bounds when the whole buffer is copied
2021-10-01 19:31:30 +01:00
Marc Gilleron
f5ecd42057
Detail about block transfer
2021-10-01 00:56:03 +01:00
Marc Gilleron
290d489d96
Use const
2021-10-01 00:55:22 +01:00
Marc Gilleron
c90170e92e
Don't use macro
2021-10-01 00:54:52 +01:00
Marc Gilleron
bfc4c0d363
Fix memory corruption occurring after writing out of bounds.
...
Found this after using VoxelBufferInternal in a pattern that was never
used before. Added reproduction as a test.
2021-10-01 00:54:34 +01:00
Marc Gilleron
a74ea392fa
Fix formatting
2021-09-29 18:46:39 +01:00
Marc Gilleron
100b6d1816
Switch to unordered_map, slightly better performance
2021-09-28 22:37:37 +01:00
Marc Gilleron
ac3ecbba14
Unfortunately that CSS change doesn't work. I don't know how to fix that.
2021-09-27 00:10:06 +01:00
Marc Gilleron
024b9326cc
Fix last nav item in the doc covered by a fixed box
2021-09-26 23:33:24 +01:00
Marc Gilleron
c0384a4389
Fix signedness
2021-09-26 21:10:54 +01:00
Marc Gilleron
788e61cefd
Update changelog
2021-09-26 21:10:41 +01:00
Marc Gilleron
298f318886
Make about window popup larger
2021-09-26 19:33:59 +01:00
Marc Gilleron
6873f2a6b1
Added third-party licenses to about window
2021-09-26 19:33:44 +01:00
Marc Gilleron
d4f1526ef2
Fix ok button not closing the window
2021-09-26 19:33:09 +01:00
Marc Gilleron
3f8f8140e0
Make ok button larger, as all ok buttons should be in Godot (but aren't)
2021-09-26 19:32:16 +01:00
Marc Gilleron
186bbfc22e
Fix accentued characters in about window
2021-09-26 19:31:28 +01:00
Marc Gilleron
a107e5f076
Fix enum comparisons (2)
2021-09-26 17:36:56 +01:00
Marc Gilleron
87f086b26e
Fix enum comparisons
2021-09-26 17:21:44 +01:00
Marc Gilleron
00d6190d3c
Old comment
2021-09-26 17:20:43 +01:00
Marc Gilleron
00c228851d
Fix signedness
2021-09-26 16:36:08 +01:00
Marc Gilleron
fb2dc3bc0f
Fix unnecessary macro argument
2021-09-26 15:49:12 +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
43adf2d6e7
Fix GCC warning
2021-09-25 17:38:36 +01:00
Marc Gilleron
2a10663081
Tweak docs
2021-09-25 17:35:15 +01:00
Marc Gilleron
b8f21f91fc
Fix VoxelGeneratorGraph sub-resources not registered when duplicate() is used
2021-09-25 17:34:43 +01:00
Marc Gilleron
e4cb16e2a4
Comments
2021-09-25 16:27:53 +01:00
Marc Gilleron
6faf5b29f3
Allow to configure main thread time limit
2021-09-25 02:13:03 +01:00
Marc Gilleron
3197eaba35
Move main thread tasks into one runner in VoxelServer
...
So the timing budget is better respected even if there are multiple
voxel nodes in the scene
2021-09-25 00:02:41 +01:00
Marc Gilleron
751a32e04c
Fix latest Godot branch to use
2021-09-24 23:53:21 +01:00
Marc Gilleron
979e5c9c47
VoxelTool.paste now only expects 0xffffffff to turn off masking.
...
Before it was 0xffffffffffffffff, which the GDScript parser no longer
accepts because it is greater than INT64_MAX.
In the future we may rework this API.
2021-09-24 02:09:58 +01:00
Marc Gilleron
18e0a23d46
Fix task count when a stream is used
2021-09-24 02:06:00 +01:00
Marc Gilleron
44f00176d3
Use std::unordered_set instead of Godot Set in VoxelLodTerrain
2021-09-23 23:49:18 +01:00
Marc Gilleron
0788affed9
Renamed "multithreading" section to "performance" and document an issue with the speed of mesh updates
2021-09-23 22:33:05 +01:00
Marc Gilleron
900e5a1a7c
Merge branch 'master' of https://github.com/Zylann/godot_voxel
2021-09-22 20:28:37 +01:00