Cursed land of Hoori Multithreaded™ Edition

Опубликовано: 12 Апрель 2025
на канале: jupiterbjy
72
2

What the heck is wrong with godot's surface tool.. it's supposed to be thread safe..

This uses O(1) algorithm to determine which chunks are to be recalculated upon volume changes.
...Simply put:

0. chunk's worldspace size is restricted to 1.
1. chunk node's position is floored into Vector3i
2. we used this as key for Dictionary, and chunk node as value.
3. when volume update is needed, 8 points that forms a circumscribed cube around effect radius is sampled
4. floor each 8 points of Vector3 into Vector3i and find unique set of chunks associated with that Vector3i 'keys'.
5. Update those chunks. PROFIT!

...Yet all the other part of this need fix, mesh update is still way too slow.

---

BGM: キズナヒトツ (QuietVer.) Cover by ALOVA Ch. アロバ
   • 千恋*万花(ムラサメ√BGM) - キズナヒトツ (QuietVer.)[...