9
0
mirror of https://github.com/Winds-Studio/Leaf.git synced 2025-12-27 19:09:22 +00:00
Commit Graph

556 Commits

Author SHA1 Message Date
Dreeam
11cb8d32ba Remove stream in updateFluidOnEyes 2024-11-29 17:57:16 -05:00
Dreeam
003ee6f427 Even better inline world height 2024-11-29 17:55:29 -05:00
Kobe ⑧
2c4d9d40d1 Some changes to optimizations and api (#172)
* Add faster random generator for Entity random

* Option for replace worldgen random with L64X128MixRandomSource & Cleanup

* Allocate 1 thread for AsyncLocator by default

* Rename to worldgen

* Add config option for backed random generator

* Add SplittableGenerator check

* Cache random generator

* Revert cache
Caching RNGs will cause some issues during worldgen

* Set to final & cleanup

* LevelChunkMixin

* Filter null values

* Use Xoroshiro128PlusPlus by default

* Benchmark results

* Revert changes

* Better smooth teleport api

* Set seed to 0
2024-11-28 18:26:03 -05:00
Dreeam
a3f3dbab2f Paper: Fix: move to jline-terminal-ffm on java 22+ and fall back to jni on 21 2024-11-28 16:34:29 -05:00
Dreeam
b361294778 Updated Upstream (Leaves)
Upstream has released updates that appear to apply and compile correctly

Leaves Changes:
LeavesMC/Leaves@a8a9d1b Remove useVanillaWorldScoreboardNameColoring to fix #367
LeavesMC/Leaves@257dd23 Update Jade Protocol, Fix #368 (#370)
LeavesMC/Leaves@fd9bd9b Update Paper
LeavesMC/Leaves@21c276f Fix jade protocol inv
LeavesMC/Leaves@93c5b78 [ci skip] Update issue template
LeavesMC/Leaves@6856a2b fix Stackable ShulkerBoxes (#356)
LeavesMC/Leaves@ec5a806 Fix fakeplayer resident (#375)
2024-11-28 16:16:54 -05:00
Dreeam
13d9fd30a1 Bump dependencies 2024-11-28 15:51:53 -05:00
Dreeam
4e9546a971 Updated Upstream (Paper/Gale) 2024-11-28 03:56:25 -05:00
Dreeam
0927bfb1fb Updated spark 2024-11-21 12:06:51 -05:00
Dreeam
3b130e73c7 [ci skip] Update patch comment 2024-11-20 22:47:53 -05:00
Dreeam
bed181964e Fix armor stand equipment change visual issue
Should have special treatment to ArmorStand, since Paper introduced the configurable
ArmorStand no-tick, and still gives it ability to update equipment changes.
Thus added a bypass condition in LivingEntity#collectEquipmentChanges, able to update
ArmorStand equipment changes even if it is no tick.
2024-11-20 22:43:40 -05:00
Dreeam
97c3e50b84 [ci skip] Update patch comment for Use faster and thread-safe ban list date format parsing 2024-11-20 10:37:46 -05:00
Dreeam
487a9ff9b6 Drop Branchless clamp logic due to performance regression
The java internal implementation of Math#min / max is faster, due to the `@IntrinsicCandidate`, enables the JIT compiler to use native method for more efficient performance.

**Only for** reference: (Added asterisk marks to avoid people who can't see)

| Benchmark            | Mode  | Cnt | Score     | Error    | Units  |
|----------------------|-------|-----|-----------|----------|--------|
| clampInline   | thrpt | 5   | 37046.833 | ±454.413 | ops/ms |
| clampInternal | thrpt | 5   | 37355.122 | ±362.992 | ops/ms |
2024-11-20 10:20:04 -05:00
Kobe ⑧
3b827802bd Cleanup Lithium patches & Faster distanceTo & Optimize worldgen math (#166)
* dbqq

* Cleanup patch

* uwu

* import now back

* include info in patch header

* FMA for distanceTo

* Add detailed headers
2024-11-19 13:41:23 -05:00
Dreeam
27134f699a Added some optimizations (#164)
* uwu

* reorder

* Change author

* Sync upstream

* Lithium: equipment tracking

* Faster CraftServer#getworlds list creation

Co-Authored-By: Kobe ⑧ <102713261+HaHaWTH@users.noreply.github.com>
2024-11-14 06:50:59 -05:00
Kobe ⑧
fa9c4a78a7 Added region based comment (#165)
* Region based comment helper functions

* (Region based comment) Dont save entity

* (Region based comment) Pufferfish DAB

* (Region based comment) Cache EntityType

* (Region based comment) Cache EntityType

* (Region based comment) Pufferfish EntityTTL

* (Region based comment) Faster sequence

* (Region based comment) FastRNG

* (Region based comment) 0042

* (Region based comment) 0721

* (Region based comment) 0009

* (Region based comment) V1rtUal tHReaD

* (Region based comment) ZSSM

* [ci skip] (Region based comment) 0079

* [ci skip] (Region based comment) 0089 0090

* [ci skip] (Region based comment) 0049 0118 0138

* [ci skip] (Region based comment) 0006 0017 0018 0080 0081

* [ci skip] (Region based comment) 0019 0038 0059 0108 0117 0127

* ALL PATCHES ARE DONE

* [ci skip] NZDD
2024-11-14 06:40:57 -05:00
Dreeam
7eaacd480e [ci skip] Another cleanup 2024-11-12 11:56:24 -05:00
Dreeam
3842aa3d63 Drop Remove stream in PlacedFeature
Co-Authored-By: Kobe ⑧ <102713261+HaHaWTH@users.noreply.github.com>
2024-11-12 09:20:15 -05:00
Kobe ⑧
a3e3e983cf Remove stream in PlacedFeature (#163) 2024-11-11 19:17:08 -05:00
Dreeam
aa4cd01137 Fix hiding sentry dsn key in spark profiler 2024-11-11 07:31:48 -05:00
Dreeam
5c162fc7ed Some cleanup 2024-11-11 04:34:42 -05:00
Dreeam
126eb3b778 [ci skip] Forget to add 0 2024-11-11 03:10:01 -05:00
Dreeam
1f789577e2 Use faster and thread-safe ban list date format parsing 2024-11-11 03:04:13 -05:00
Dreeam
eb237c3aad [ci skip] Another cleanup 2024-11-10 23:45:58 -05:00
Dreeam
88579f1c2a Fix build 2024-11-10 17:43:41 -05:00
Dreeam
e9f5738e97 [ci skip] Reorder patches 2024-11-10 17:34:53 -05:00
Dreeam
5365c49680 Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@1e0ebad Clean up
Dreeam-qwq/Gale@9ce20fa throw MissingPaletteEntryException for null entries in hash palette
Dreeam-qwq/Gale@751637d Final clean up imports
2024-11-10 17:20:40 -05:00
Kobe ⑧
75e6fdd01d Fix Secure Seed (#161)
Now it can be used without making a new save >_<
2024-11-10 16:02:56 -05:00
Kobe ⑧
7d1afa27ab Fix patches (#159)
* Fix patches

* Cleanup lithium patches
2024-11-10 13:04:58 -05:00
Kaan D.
972d46cde7 Replace world map with optimized collection (#158) 2024-11-10 09:32:36 -05:00
Kobe ⑧
848fb2dc4d Smart sorting & Remove streams & Throttle hopper (#157)
* =-=

* Reuse comparator

* Cleanup DAB patch
2024-11-10 09:25:58 -05:00
Kaan D.
cca144f3c7 Added some optimizations (#154)
* DivineMC - Lithium: Early checks for LivingEntity#updateSwingTime and updateFallFlying

* C2ME-Reduce-Allocations

* Lithium-fast-util

* Lithium-CompactSineLUT

* Compact-SineLUT

* some lithium patches

* Create 0141-Use-MCUtil.asyncExecutor-for-MAIN_WORKER_EXECUTOR.patch

* Fix tick function & Better inline world height

* improve the clamp logic by 1.2x

* Remove imports on IterateOutwardsCache

* Remove imports from 141

* Rename getCachedOrNewBits to CachedOrNewBitsGetter

* Remove thread instanceof checks

---------

Co-authored-by: kidofcubes <kidofcubes@gmail.com>
2024-11-09 12:51:27 -05:00
Dreeam
0e27d48042 Fix wrong entity behavior in fluid caused by inconsistent fluid count 2024-11-09 02:15:07 -05:00
Dreeam
055222d866 Updated Upstream (Gale)
Upstream has released updates that appear to apply and compile correctly

Gale Changes:
Dreeam-qwq/Gale@7ac2d0e Drop improve fluid direction caching
2024-11-09 02:10:33 -05:00
HaHaWTH
cff7d959f4 Fix 2024-11-08 02:01:24 +08:00
HaHaWTH
141016de21 Merge remote-tracking branch 'origin/ver/1.21.1' into ver/1.21.1 2024-11-08 01:50:43 +08:00
Kobe ⑧
859a1cc7e6 Better event check for MultithreadedTracker and AsyncLocator (#150)
* Better event check
2024-11-06 17:49:08 -05:00
Kobe ⑧
6fff957697 TT20 lag compensation (#148)
* TT20 lag compensation

* Move to misc
2024-11-03 11:07:38 -05:00
Dreeam
62dce93d9a [ci skip] Rebuild 2024-11-03 10:21:48 -05:00
Dreeam
040e45c57f Temp drop these two patches to fix issue 2024-11-03 10:21:08 -05:00
Dreeam
c7c1b99652 Moonrise: block counting optimisations 2024-11-02 22:55:10 -04:00
Dreeam
4cb40ef9a4 Cache chunk key 2024-11-02 22:23:33 -04:00
Dreeam
f5b34ce525 Cache tile entity position 2024-11-02 22:23:27 -04:00
Dreeam
bdf2694bfa Canvas: Use VT executor for noise generating 2024-11-02 22:23:20 -04:00
Dreeam
df81c81406 EMC: Don't use snapshots for TileEntity::getOwner 2024-11-02 22:23:13 -04:00
Dreeam
1377914fdb Moonrise: optimise palette reads 2024-11-02 22:23:06 -04:00
Dreeam
bfcfe3d4a4 Moonrise: fluid method optimisations 2024-11-02 22:22:58 -04:00
Dreeam
664bc74870 Moonrise: Optimise countEntries for low size SimpleBitStorage 2024-11-02 22:22:45 -04:00
Dreeam
dfad4e73b0 Moonrise: Do not send chunk radius packet from PlayerList#setViewDistance 2024-11-02 22:22:30 -04:00
Dreeam
4a72284330 Moonrise: Bitstorage optimisations 2024-11-02 22:22:23 -04:00
Dreeam
8b2be87845 Bump dependencies 2024-11-02 22:21:56 -04:00