Compare commits

...

22 Commits

Author SHA1 Message Date
Sofiane H. Djerbi
32a11498b4 Don't remove named entities 2023-08-01 02:59:59 +02:00
Sofiane H. Djerbi
8eb4a79492 Avoid manipulating null paths 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
f8abc46b5e Final changes 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
1594847f93 Set default queue to 1000 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
fd71bdebd5 Log async threads for pathfinding 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
a3c8b4a2b7 Add NodeEvaluatorType and use it in cache 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
d514f5744a 0 threads if not enabled 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
dbd96e6e84 Add thread options & improve thread control 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
6669139413 Fix TargetGoal autism 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
4327944b97 Remove redundant isDone call (Raise exception) 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
b869fc44e0 Add async pathfinding to warden 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
423b2078e8 Add processing check back 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
a6cd4d115e Add async pathfinding to WaterBound mobs & Strider 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
7e70bc76d9 Rework nodeEvaluatorGenerator cache 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
fd509ffe21 Rebase nodeEvaluatorGenerator 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
28de4d3178 [skip ci] credit peaches94 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
67b061cda6 Fix mob in the water issue 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
243f57f124 Use the correct thread context to postprocess path 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
c66ed11b44 Use local pool 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
4edf6f9cd3 Base asyncpathprocessing patch from petal 2023-08-01 02:56:46 +02:00
Sofiane H. Djerbi
09e0f58125 Update config 2023-07-31 01:11:56 +02:00
Sofiane H. Djerbi
a95080aaff Update README.md 2023-07-31 00:13:59 +02:00
3 changed files with 1322 additions and 19 deletions

View File

@@ -11,30 +11,46 @@
## Features
### Primary
- **Xymb Linear Format**: Saves about 50% of disk space in OW/Nether and 95% in The End.
- **Auto update**: Automatic upstream updates.
### Notable
- **Entity throttling & removal**: Tweak entity tick frequency & max entity per region.
- **Xymb Linear Format**: A Region file format that reduces disk space usage by about 50%.
- **Async Pathfinding**: Petal async pathfinding fixed & reworked.
- **Technical Minecraft**: Enable Vanilla exploits such as sand duping, RNG manipulation...
### Other
- **Small optimizations**: Increase server efficiency by disabling unnecessary features.
- **Commands**: Restore few commands that were previously removed by Folia.
### Configuration
```yaml
network:
send-null-entity-packets: true
alternate-keepalive: false
kick-player-on-bad-packet: true
gameplay:
server-mod-name: Kaiiju
shared-random-for-players: true
region-format:
debug: false
optimization:
disable-vanish-api: false
disable-player-stats: false
disable-arm-swing-event: false
disable-ensure-tick-thread-checks: false
gameplay:
server-mod-name: Kaiiju
shared-random-for-players: true
async-path-processing:
enable: false
max-threads: 0
keepalive: 60
queue-capacity: 700
world-settings:
default:
gameplay:
fix-void-trading: true
break-redstone-on-top-of-trap-doors-early: true
fix-tripwire-state-inconsistency: true
safe-teleportation: true
sand-duplication: false
teleport-async-on-high-velocity: false
region-format:
format: ANVIL
linear:
@@ -42,25 +58,22 @@ world-settings:
crash-on-broken-symlink: true
optimization:
shulker-box-drop-contents-when-destroyed: true
optimize-hoppers: true
tick-when-empty: true
enable-entity-throttling: false
disable-achievements: false
disable-creatures-spawn-events: false
disable-dolphin-swim-to-treasure: false
gameplay:
fix-void-trading: true
optimize-hoppers: true
tick-when-empty: true
break-redstone-on-top-of-trap-doors-early: true
fix-tripwire-state-inconsistency: true
safe-teleportation: true
sand-duplication: false
```
Documentation: [Kaiiju Wiki](https://github.com/KaiijuMC/Kaiiju/wiki/Configuration)
### Roadmap
- **Static view distance**: Reduce RAM usage / Region size with a "static" view distance.
- **Native world conversion**: Convert region file format at startup.
- **Stash deduplication**: Make giant dupe stashes possible and lagless.
- **Multithreaded Tracker**: Rework Petal multithreaded tracker.
## Open to contributions
- **Native world conversion**: Convert region file format at startup.
- **Performance patch**: Any significative performance patch.
## Building

View File

@@ -319,7 +319,11 @@ index 991e4c19763a34a6fead88363e007c2d11aad836..24a2d3f496727790f63cb66a2534d442
dev.kaiijumc.kaiiju.KaiijuConfig.registerCommands();
// Kaiiju end
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
<<<<<<< Updated upstream
index 1818c5ae88c331fb900470436f72049165c9e9f4..7938ce423422c1a2cb72a9b2e45c7bbb6f20ec91 100644
=======
index 245c3e63588379f51780963ba91bc6bf0a3feda6..6efc8b37d4ee929522f5646c972565b99aa45de3 100644
>>>>>>> Stashed changes
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
@@ -849,6 +849,7 @@ public class ServerLevel extends Level implements WorldGenLevel {
@@ -337,7 +341,7 @@ index 1818c5ae88c331fb900470436f72049165c9e9f4..7938ce423422c1a2cb72a9b2e45c7bbb
+ // Kaiiju start
+ if (kaiijuConfig.enableEntityThrottling) {
+ dev.kaiijumc.kaiiju.KaiijuEntityThrottler.EntityThrottlerReturn throttle = regionizedWorldData.entityThrottler.tickLimiterShouldSkip(entity);
+ if (throttle.remove) entity.remove(Entity.RemovalReason.DISCARDED);
+ if (throttle.remove && !entity.hasCustomName()) entity.remove(Entity.RemovalReason.DISCARDED);
+ if (throttle.skip) return;
+ }
+ // Kaiiju end

File diff suppressed because it is too large Load Diff