9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-25 01:49:16 +00:00
Commit Graph

239 Commits

Author SHA1 Message Date
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
HaHaWTH
3fe6e77675 Move config to datapack section 2025-07-14 01:33:35 +14:00
hayanesuru
2f72924ec7 fix MC-298464 2025-07-13 19:40:29 +09:00
hayanesuru
7bec64acc1 Revert "[ci skip] more typo fix"
This reverts commit 608d4b183f.
2025-07-13 19:35:42 +09:00
Taiyou06
608d4b183f [ci skip] more typo fix 2025-07-13 00:21:14 +02:00
Dreeam
4d46366594 Use system arraycopy in blockEntity ticker list removing index & Update Leaf config util
supersedes https://github.com/Winds-Studio/Leaf/pull/380
2025-07-12 18:29:35 +08:00
Creeam
871e004368 Skip inactive entity for execute functions (#396) 2025-07-11 02:09:28 +08:00
hayanesuru
53f6cb4e4d typo optimize-random-tick config 2025-07-10 18:36:28 +09:00
Dreeam
ada68f0d1a Cleanup get java version & SIMD util
- Use modern API which introduced since Java 10 to get java major version
- Remove useless fields in SIMD util, Java 21+ supports SIMD.
2025-07-10 00:15:42 +08:00
HaHaWTH
b17348bdf9 Cleanup FMA system property parsing 2025-07-10 02:48:19 +14:00
Taiyou06
d041342e8a drop ReduceChunkSourceUpdates 2025-07-08 20:28:58 +02:00
hayanesuru
a0089ffaa9 fix reduce-chunk-source-updates config disappear 2025-07-08 23:45:54 +09:00
hayanesuru
ac6e483e8d fix async mob spawning TRACKED entities not count (#393)
* fix unloaded and TRACKED entities not count

#392

* move to archived
2025-07-08 22:54:12 +09:00
hayanesuru
88303ed880 fix phrasing 2025-07-08 20:05:51 +09:00
Taiyou06
2a3d1c46ee [ci skip] fix ReduceChunkSourceUpdates wording 2025-07-08 12:48:57 +02:00
Taiyou06
c87b046a04 toggleable async catcher 2025-07-08 12:30:06 +02:00
hayanesuru
ee45897239 fix reduce chunk source updates position check and mark experimental 2025-07-06 00:41:59 +09:00
hayanesuru
ebfb4e17d2 fix incorrect entity size in async tracker 2025-07-05 17:27:52 +09:00
HaHaWTH
5601d60ca4 Change radix sort threshold to 6 2025-07-04 21:58:18 +14:00
hayanesuru
a80d2bd374 cancel async target finding when entity removal 2025-07-04 16:11:17 +09:00
hayanesuru
b904e81e27 remove capture world in async target finding 2025-07-04 15:52:39 +09:00
hayanesuru
eb760fb69c fix player alive check and add optimize despawn 2025-07-04 03:35:33 +09:00
hayanesuru
9bf04bdb11 optimize waypoint 2025-07-04 03:13:46 +09:00
hayanesuru
6bc70724a4 optimize no action time 2025-07-04 03:12:10 +09:00
hayanesuru
38658070f5 add comment throttle mob spawning 2025-07-03 17:23:50 +09:00
HaHaWTH
954eef4b5a FastBiomeManagerSeedObfuscation no longer experimental 2025-07-03 01:56:03 +14:00
HaHaWTH
d312323458 Datapack functions optimization 2025-07-03 01:40:35 +14:00
Dreeam
199749f50d Do thread check if async mob spawn enabled 2025-07-02 18:07:13 +08:00
Dreeam
419ae9c420 Updated Upstream (Paper/Purpur)
Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@6ea679eb Allow listening to plugin messages during configuration phase (#12775)
PaperMC/Paper@c3be00f0 Always call plugin message dispatch on PlayerConnection
PaperMC/Paper@3fec37a9 Move the double call into the dispatch method
PaperMC/Paper@108255cb Reduce PlayerLoginEvent alt behavior nag for now (#12782)
PaperMC/Paper@2141ca52 Port plugins command to brigadier (#12632)
PaperMC/Paper@0cadaefc Fix quitmessage nullability issues (#12783)

Purpur Changes:
PurpurMC/Purpur@2d8cdd15 Updated Upstream (Paper)
2025-07-02 15:48:00 +08:00
Dreeam
66887e3367 Update Leaf 1.21.6 (#385)
* Init 1.21.6

* Finish API patches

* Apply purpur patches & all paper server patches

* Apply some

* Apply all

* Updated Upstream (Paper/Purpur)

Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@6aafe29e 1.21.6 dev
PaperMC/Paper@ae7c74ec tweak mob goal keys, generate missing api
PaperMC/Paper@9ea1460b Revert "fix sponge-absorb deleting chest content (#12647)"

Purpur Changes:
PurpurMC/Purpur@eb0ba67d Updated Upstream (Paper)
PurpurMC/Purpur@7c6502dc Updated Upstream (Paper)
PurpurMC/Purpur@aa289e2c Updated Upstream (Paper)
PurpurMC/Purpur@b1d412fb Updated Upstream (Paper)
PurpurMC/Purpur@293e28a0 use empty registryaccess where context is not needed, closes #1676
PurpurMC/Purpur@452bb319 port PaperMC/Paper#12654, closes #1665
PurpurMC/Purpur@849bc79c register test subcommands used for debugging, closes #1675

* Fix build & diff

* Update vanilla attribute size

* [ci/skip] Forget to remove this

* Updated Upstream (Paper/Purpur)

Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@a24f9b20 1.21.6 dev
PaperMC/Paper@457a0a69 Bump version string and protocol version to 1.21.6 release
PaperMC/Paper@245b5473 Update base to 1.21.6
PaperMC/Paper@b28d77b3 Update Moonrise to 1.21.6
PaperMC/Paper@8318dcb7 Update DataConverter to 1.21.6-rc1

Purpur Changes:
PurpurMC/Purpur@b228e316 Updated Upstream (Paper)
PurpurMC/Purpur@d6562a57 make happy ghast takes-damage-from-water and always-drop-exp options work
PurpurMC/Purpur@08d989b6 inline import
PurpurMC/Purpur@61d7f559 Updated Upstream (Paper)
PurpurMC/Purpur@469a4de5 Merge branch 'ver/1.21.5' into ver/1.21.6

* Updated Upstream (Paper)

Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@d2b1158e Set correct world access on BSL snapshots

* Updated Upstream (Paper)

Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@023e6c29 Ensure waypoints are per world
PaperMC/Paper@40d5d31c Fix recursively converting JSON Text Components

* Update spigot mapping to remap reobf mapping to mojamp for plugins

* Updated Upstream (Paper/Purpur)

Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@1fcc4162 Implement FeatureHooks#isChunkSent for Moonrise chunk system
PaperMC/Paper@e4d7178a Implement WaypointTransmitter#isChunkVisible
PaperMC/Paper@8980ead7 Directly walk text component after converting from JSON
PaperMC/Paper@5613ed6d Provide env environment variable and copy spigots sys prop for overriding default repository
PaperMC/Paper@62b7f86d Avoid and discourage use of Maven Central as a CDN (#12689)
PaperMC/Paper@f5534cb7 [ci/skip] Run generators (#12691)
PaperMC/Paper@4781d28b Re-add Log4j Javadocs (#12693)
PaperMC/Paper@74fbcce5 Check type of Material in get/set stats (#12607)
PaperMC/Paper@4b3f967e Improve Fix MC-44654 (#12703)
PaperMC/Paper@a7dd2635 Enable spigot obfuscation support (#12695)
PaperMC/Paper@6a51c44e Cleanup Primed TNT Fix (#12704)
PaperMC/Paper@839c6a18 Fix #11169 (#12706)
PaperMC/Paper@c77d5f99 Fix MC-297591
PaperMC/Paper@219f86ee Implement chunk unload delay config option
PaperMC/Paper@e4eb69b8 Do not allow ticket level decreases to be processed asynchronously
PaperMC/Paper@71b0c768 Adds support for vanilla negative explosions (#12705)
PaperMC/Paper@3750927a [ci/skip] Fix PermissionManager#clearPermissions() docs bad wording (#12657)
PaperMC/Paper@d61a51e8 Add ItemType#getBurnDuration() (#12604)
PaperMC/Paper@29fc8532 Allow empty paths in namespaced keys (#12687)
PaperMC/Paper@4419afb9 fix: Safely handle nanosecond overflow in ClickCallback (#12686)
PaperMC/Paper@56528821 Add `isProxyEnabled` method to ServerConfiguration (#12664)
PaperMC/Paper@c0dda0ea Add `isForceDefaultGameMode` method (#12673)
PaperMC/Paper@e714de63 Fix excess slot updates
PaperMC/Paper@6d0821d2 [ci/skip] Fix docs for Spawner class and cleanup (#12710)
PaperMC/Paper@cceffe3d Release ItemType and BlockType (#12708)
PaperMC/Paper@186e9e33 Relocate CommandMap#registerServerAliases() call to after lifecycle events have been run (#12601)
PaperMC/Paper@5edcf6dd Cleanup/command dispatching (#12713)

Purpur Changes:
PurpurMC/Purpur@baa196f5 Updated Upstream (Paper)
PurpurMC/Purpur@fdd1e980 Updated Upstream (Paper)
PurpurMC/Purpur@439f15db Updated Upstream (Paper)
PurpurMC/Purpur@46a28b93 [ci/skip] update version in README
PurpurMC/Purpur@162bd288 Updated Upstream (Paper)
PurpurMC/Purpur@afcdf9bb Updated Upstream (Paper)

* fix random tick order

Signed-off-by: hayanesuru <hayanesuru@outlook.jp>

* update optimize random tick

* fix mob spawning over limit

* optimize mob spawning

* fix FastBitRadixSort memory leak

* optimize brain collections

* [ci/skip] update comments

* Revert "fix FastBitRadixSort memory leak"

This reverts commit bdea683525.

* optimize brain collections

* fix async mob spawning data race

* [ci/skip] cleanup

* remove hash lookup in optimize random tick

* Updated Upstream (Paper/Purpur)

Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@803baf0b Support hidden entities in Waypoints (#12715)
PaperMC/Paper@1814d8b4 build: publish to fill (#12717)
PaperMC/Paper@e454fef4 Add support for private constructors in plugin main classes (#12652)
PaperMC/Paper@d0e808f4 Move player to correct position in vehicle move packet handler
PaperMC/Paper@46b4b0b8 Improve keepalive ping system
PaperMC/Paper@38c1ddb5 Add and use FeatureHooks.getAllEntities
PaperMC/Paper@2f083acb Ensure player entity schedulers are ticked when they are dead
PaperMC/Paper@7c90c7c4 Optimise EntityScheduler ticking
PaperMC/Paper@aa6ee44a Re-add global region scheduler tick erroneously removed in last commit
PaperMC/Paper@d7510efc Fix #12722 (#12726)
PaperMC/Paper@0caf75f8 Fix #12721 (#12725)
PaperMC/Paper@bee28792 Adventure 4.23.0 (#12690)
PaperMC/Paper@692e93a9 Fix MC-299110
PaperMC/Paper@ea10fa4a Don't mutate the position of Items for MC-4 Fix (#12702)
PaperMC/Paper@aa6cd74c Remove unnecesary item check for ServerboundPlayerActionPacket RELEASE_USE_ITEM (#12668)
PaperMC/Paper@c9e89f49 Expose arrow velocity in EntityShootBowEvent for mobs (#12688)
PaperMC/Paper@7ec3174a Jump out of experimental phase
PaperMC/Paper@4e1a2555 Update try catch for command handling
PaperMC/Paper@e382e687 Fix 0 yield on explosion events
PaperMC/Paper@35b2c6ec Use dropped item for stats info (#12747)
PaperMC/Paper@bd79e20c [ci/skip] PluginManager#getPlugin and PluginManager#isPluginEnabled are case-insensitive (#12723)

Purpur Changes:
PurpurMC/Purpur@4a5974cf Updated Upstream (Paper)
PurpurMC/Purpur@3893bba0 this is important...
PurpurMC/Purpur@47e758fb Updated Upstream (Paper)

* Update PWT patch

* cleanup

* fix playermobcaps command

* fix Didn't fill chunk buffer in async chunk sending

* cleanup

* fix HurtByTargetGoal npe

* optimize collectSpawningChunks (#382)

* optimize collectSpawningChunks

* add bit set

* cleanup

* cleanup

* cleanup

* cleanup

* Updated Upstream (Paper/Purpur)

Upstream has released updates that appear to apply and compile correctly

Paper Changes:
PaperMC/Paper@57c202e0 Allow adventure nbt codec to parse all tags

Purpur Changes:
PurpurMC/Purpur@a4776d7b Updated Upstream (Paper)
PurpurMC/Purpur@dfd8a7ad Fix phantom going at high speed when ridden (#1680)

* Fix diff

---------

Signed-off-by: hayanesuru <hayanesuru@outlook.jp>
Co-authored-by: hayanesuru <hayanesuru@outlook.jp>
2025-06-30 05:17:33 +08:00
Dreeam
5c7001ac97 Fix build 2025-06-30 02:04:19 +08:00
Dreeam
4c221a03ed Updated Upstream (Leaves)
Upstream has released updates that appear to apply and compile correctly

Leaves Changes:
LeavesMC/Leaves@e3b0cf4a Fix tripwire with end platform (#542)
LeavesMC/Leaves@8615b2f4 Recheck for null before handling player join (#550)
LeavesMC/Leaves@093b9290 Fix protocol bugs (#537)
LeavesMC/Leaves@852184c1 Vanilla Fluid Pushing (#547) (#551)
LeavesMC/Leaves@911ec9b9 Fix Carpet protocol (#552)
LeavesMC/Leaves@2654bf53 Fully rewrite I18n support (#545)
LeavesMC/Leaves@f33f5fea Refactor command system, fix bugs (#573)
LeavesMC/Leaves@6c07912d Remove Force peaceful mode switch (#265) (#579)
LeavesMC/Leaves@2dcf9f85 Fix spawnInvulnerableTime (#583)
LeavesMC/Leaves@6d76c1f1 Fix unexpected IOE (#582)
LeavesMC/Leaves@3187d77f Fix IAE update suppression crash (#581)
2025-06-30 01:34:04 +08:00
hayanesuru
34d9673f3e backport from dev/1.21.6
73ffcb09fa optimize mob spawning
333373d204 fix async mob spawning data race
7c9f88e4f8 [ci skip] cleanup
bf9486f0f0 remove hash lookup in optimize random tick
915ac01cd3 cleanup
b90c1cd527 fix playermobcaps command
fd34d9f626 cleanup
5d663b4d36 optimize collectSpawningChunks (#382)
2025-06-29 23:58:26 +09:00
Dreeam
35471da55b Optimize fluidOnEyes update
Co-Authored-By: MrlingXD <90316914+wling-art@users.noreply.github.com>
2025-06-28 10:37:38 +08:00
Dreeam
7973f6b3b6 Update changes from ver/1.21.4 branch 2025-06-21 10:12:47 +08:00
hayanesuru
397abc65da fix boundary of optimize random tick 2025-06-21 02:03:33 +09:00
HaHaWTH
82eaa5d3f3 Hide seed obfuscation key from spark 2025-06-20 03:22:06 +14:00
Taiyou
731950179b Optimize random tick (#359)
* optimize random tick

* rebase

* fix random tick chance check

* add back zero check fix always tick on first tick

* optimize random check

* cleanup

* remove 0 to 2 random on amount chosen

* cleanup

* add queue and reuse block count

* reduce LevelChunkSection#tickingBlocks memory overhead

* Revert "reduce LevelChunkSection#tickingBlocks memory overhead"

This reverts commit 942376481b.

* fix overflow

* [ci skip] rebuild patches

---------

Co-authored-by: hayanesuru <hayanesuru@outlook.jp>
2025-06-18 14:16:33 +09:00
hayanesuru
adb6a645f6 cleanup & remove threshold in async target finding 2025-06-18 14:10:57 +09:00
HaHaWTH
0e1ff0ecd2 Port random generator fix from 1.21.4 2025-06-15 19:38:04 +14:00
Dreeam
03c04f0dcc Optimize leaves protocol manager & Fix diff 2025-06-15 00:46:13 +08:00
Dreeam
e9a24c833d Update changes from ver/1.21.4 branch 2025-06-14 03:34:46 +08:00
HaHaWTH
8e2099e975 Fast BiomeManager seed obfuscation 2025-06-14 04:09:07 +14:00
Dreeam
9c0d0a828c Temp disable hot reload for async features 2025-06-13 22:03:34 +08:00
Dreeam
bc4ca38c83 Pass exception as throwable instead of string 2025-06-13 21:35:23 +08:00
MrlingXD
15ef4ca901 Optimize more for rail optimization (#368)
* Optimize more for rail optimization

* remove threadlocal
2025-06-13 07:57:11 +08:00
Dreeam
2d193b574b Fix entity bounding box traverse blocks iterate
Reset both x and y values on z level iteration , to prevent skip entire y level loop on z level iteration and cause some issues, e.g. inconsistent with vanilla
2025-06-13 04:08:46 +08:00
Dreeam
a11f042109 Fix entity bounding box traverse blocks iterate
Reset both x and y values on z level iteration , to prevent skip entire y level loop on z level iteration and cause some issues, e.g. inconsistent with vanilla
2025-06-13 04:07:23 +08:00
hayanesuru
ab24c46fb5 remove shutdown log if mob spawning disabled 2025-06-11 12:51:32 +09:00
hayanesuru
d2dc5a0895 remove preload mob spawning position 2025-06-11 12:51:32 +09:00