9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-22 08:29:28 +00:00
Commit Graph

7 Commits

Author SHA1 Message Date
Taiyou06
0bddec33f8 fix rabbit randompath 2025-07-22 12:24:21 +02:00
hayanesuru
e32588174c optimize entity despawn (#409)
* Reapply "optimize despawn (#399)"

This reverts commit 7992f91631.

* log FMA and Vector API

* axis order XYZ to XZY

* cleanup

* fix pivot at offset + median not included & fix simd min mask
2025-07-21 00:46:34 +09:00
hayanesuru
7992f91631 Revert "optimize despawn (#399)"
This reverts commit 3e109078ae.
2025-07-20 09:13:25 +09:00
hayanesuru
3e109078ae optimize despawn (#399)
* optimize despawn

* set LEAF_THRESHOLD to 4

* cleanup

* SIMD

* cleanup

* typo

* Depth-first search

* update optimize mob despawn

* cleanup

* optimize despawn map
2025-07-20 09:06:36 +09:00
hayanesuru
cdd379f424 fix async tracker deadlock 2025-07-16 15:09:19 +09:00
hayanesuru
ea00b11d11 Refactor async entity tracker (#390)
* prevents async entity tracker update equipment

* fix seenBy updated check

* skip submit empty

* fix invertedVisibilityEntities data race

* strict thread check

* set max-threads to 1 by default

* use fixed thread count

* increase thread priority

* Revert "use fixed thread count"

This reverts commit 6746bc25a8.

* Revert "set max-threads to 1 by default"

This reverts commit 5295b6d3e1.

* update entity tracker

* cleanup

* [ci skip] fix phrasing

* cleanup

* cleanup

* support Citizens

* optimize update if chunk player no change

* configurable threads

* configurable no blocking

* fix pos y and z

* optimize no blocking

* cleanup

* cleanup

* add handle during waitUntilNextTick

* fix entity disappear

* cleanup

* disable nonblocking by default

* [ci skip] add entity slice

* impl fork-join

* fix async locator diff

* optimize queue

* inline iterator

* [ci skip] Update patch header

* cleanup

* improve compatibility

* add license header

* optimize spin wait

* remove queue-size option

* dynamic adjust subtasks

---------

Co-authored-by: Taiyou06 <kaandindar21@gmail.com>
Co-authored-by: Dreeam <61569423+Dreeam-qwq@users.noreply.github.com>
2025-07-16 02:42:37 +09:00
Dreeam
3c25377465 Drop some unused patches
ClassInstanceMultiMap belongs to Minecraft vanilla entity storage.
And is unused, since replaced by spottedleaf's entity storage (rewrite chunk system).
However these patches might be useful for vanilla entity storage if is used.
2025-07-09 04:20:02 +08:00