Commit Graph

19588 Commits

Author SHA1 Message Date
SashegDev be3bfc2369 perf(config): 2 chunk workers instead of 1, gen-parallelism on
Build Delta / Build paperclip jar (push) Successful in 7m9s
worker-threads: -1 means "auto", and auto on 4 cores resolves to ONE worker.
MoonriseCommon.adjustWorkerThreads halves availableProcessors and then, if the
result is <= 4, collapses it further - 4/2=2, and 2<=3 becomes 1. That single
thread generated the spawn region serially.

Measured on zern.cc (4 vCPU, 8 GB), same jar, same flags, cold world vs warm:

                    before   after
  cold, overworld     6770ms  2944ms
  cold, nether        1368ms   888ms
  cold, total         38.5s   24.9s
  warm, overworld     1084ms   803ms
  warm, total         16.4s   12.2s

gen-parallelism "default" already resolved to true at startup, so it is now
spelled out rather than left to string comparison at boot.

3 workers is deliberately NOT set here. The main thread plus Netty share the
same 4 cores, and going to 3 trades main-thread headroom for generation that
does not happen every tick. That needs a profile, not a guess.

Also recorded the corollary: player-max-concurrent-chunk-generates is a rate
limiter, not an accelerator. Speeding up generation without raising it just
makes the engine faster behind a throttle that was sized for the old speed.
2026-10-03 11:58:59 +00:00
SashegDev 5186c9b0e2 docs: update README for the audio, display and persistence work
Build Delta / Build paperclip jar (push) Successful in 8m2s
The README still described decoupled sound range as planned and had no
`/delta displaylead`, no mention of the config being writable, and a command
list containing a `/delta reload` that does not exist.

Also corrects two claims that no longer hold:
- the Display tracking clamp is in org.spigotmc.TrackingRange, not
  ChunkMap.TrackedEntity. That was a deliberate choice: TrackingRange is
  git-tracked Paper source, so the decompiled Minecraft tree stays untouched.
- the new Bukkit methods are default methods, so plugins referencing them keep
  working on stock Paper instead of failing with NoSuchMethodError.
2026-09-30 12:53:09 +00:00
SashegDev dac80386b5 fix(delta): make the audio and config patches actually compile, add DeltaDisplay
Build Delta / Build paperclip jar (push) Successful in 7m49s
0373806e2 and 0817a5706 were pushed but never built, so the server jar was
broken on main. Six compile errors, all in code that had never run:

- ClientboundSoundPacket takes Holder<SoundEvent> in 1.21, not SoundEvent.
- CraftWorld has no getServer(); the vanilla handle does.
- Server has no paperConfigurations()/registryAccess() - Configurations is
  reachable through the console, and saveGlobalSection lives on Configurations
  (GlobalConfiguration is a ConfigurationPart, i.e. the data, not the writer).
- ServerPlayer.server is private.

DeltaSound pumped delayed packets through BukkitScheduler, which requires a
live Plugin, and Delta as a core has none. It now uses GlobalRegionScheduler
with a null plugin, which exists precisely for core tasks. Delays are counted
in game ticks via Bukkit#getCurrentTick rather than System.nanoTime, so they
no longer stretch under lag. The pump cancels itself once the queue drains.

New DeltaDisplay holds the predictive-teleport policy (lead range, default,
application) and /delta displaylead tunes it. Honest about its scope:
Display#setTeleportDuration is already stock Bukkit, so Delta adds no new API
to plugins and breaks no compatibility - it centralises the policy and reports
it. The position shift itself is done by the plugin, per visual, along that
visual's own trajectory.

DeltaBuild now registers the existing features in the startup banner instead of
printing "no custom features registered". The banner is emitted from a static
initialiser before paper-global.yml is parsed, so the strings describe the
mechanism and point at /delta status for live values rather than printing
defaults as if they were the running configuration.
2026-09-30 12:41:35 +00:00
SashegDev 0817a57065 feat(delta): playSoundAttenuated - wave propagation + normalized decay, one packet per player
Build Delta / Build paperclip jar (push) Failing after 5m24s
2026-09-30 10:39:11 +00:00
SashegDev 0373806e25 feat(delta): config persistence via Configurations.saveGlobalSection + decoupled sound range API
Build Delta / Build paperclip jar (push) Failing after 5m52s
2026-09-30 10:00:20 +00:00
SashegDev f55129436b fix(delta): /delta has no persistence (Paper exposes no public config writer); runtime-only + clear
Build Delta / Build paperclip jar (push) Successful in 8m24s
2026-09-30 09:42:40 +00:00
SashegDev ec31787ea0 fix(delta): public class name must match file name (Delta -> DeltaConfig)
Build Delta / Build paperclip jar (push) Failing after 5m21s
2026-09-30 09:31:57 +00:00
SashegDev a039ea62a9 feat(delta): hook Display tracking budget through TrackingRange (no MC patch needed)
Build Delta / Build paperclip jar (push) Failing after 5m14s
2026-09-30 09:26:22 +00:00
SashegDev 342eaadf39 feat(delta): /delta command, Display tracking budget, global delta config; rewrite README for Delta
Build Delta / Build paperclip jar (push) Failing after 4m52s
2026-09-30 09:16:06 +00:00
SashegDev e226182932 ci: builder image ships git identity (applyFeaturePatches commits) 2026-09-30 09:16:06 +00:00
SashegDev 9741cbccf9 ci: build in delta-builder:jdk21 image (JDK21 + node) - plain temurin lacks node for checkout action 2026-09-30 09:16:06 +00:00
SashegDev a56c29c3fd Delta banner + DeltaBuild 2026-09-30 09:16:06 +00:00
SashegDev a87830e51f ci: replace Paper GitHub workflows with Gitea-native build workflow (split applyPatches/build) 2026-09-30 09:16:06 +00:00
SashegDev cf3afa851a branding: keep Brand-Id papermc:paper for plugin compat, Brand-Name Delta 2026-09-30 09:16:06 +00:00
SashegDev 37c88fe6a1 revert group/version to upstream format (Versioning reads pom.properties by group path; Delta identity lives in manifest/jar/banner) 2026-09-30 09:16:06 +00:00
SashegDev 90399370d4 branding: Paper -> Delta (group, version, jar/manifest, fill project id) 2026-09-30 09:16:05 +00:00
SashegDev e0457487fe config fixes: drop invalid misc spawn-limit key, pin config-version 31 2026-09-30 09:16:05 +00:00
SashegDev af1a55b1e7 add tuned server configs for 4 vCPU / 8 GB / 40 players (tracking, activation, hopper, chunk IO) 2026-09-30 09:16:05 +00:00
Jason Penilla 29c8822d90 Remove no longer needed MC-210802 fix (#13059)
Build Paper / build (push) Failing after 1s
Build Paper / Event File (push) Failing after 1s
2025-09-06 14:38:29 -07:00
Lulu13022002 19156cdd3b Give the right amount of experience after mending (#13047) 2025-09-06 13:49:56 -07:00
Spottedleaf 9aaaadffaa Backport DFU changes from snapshots
When converting to components:
 - Remove enchantments with levels <= 0
 - Remove the item name if it is not valid JSON
 - Remove lore entries that are not valid JSON
2025-09-03 14:59:39 -07:00
Spottedleaf 78aecfebaf Do not remove plugin chunk tickets on shutdown
The chunk system may not be responsive in a shutdown (i.e
watchdog timeout). Therefore, we should avoid interacting
with the chunk system to increase the odds of a graceful
shutdown.
2025-09-03 14:25:27 -07:00
Jason Penilla 65641d1006 Only log name instead of full profile for configuration phase disconnects (#13038) 2025-08-29 13:32:10 -07:00
Emil 49ca2d2d76 chore: remove experimental status from Damageable#damage (#13021) 2025-08-29 18:15:29 +01:00
Jason Penilla 63cd4af408 Fix createProfile not always returning a new profile (#13036) 2025-08-29 09:42:35 -07:00
Jason Penilla 704107c3dd Resend frozen ticks when cancelling EntityInsideBlockEvent for powder snow fixes #13033 (#13035) 2025-08-28 18:11:29 -07:00
Jason Penilla 9d1d0ef3f3 Add and call RegionizedServerInitEvent from Folia (#13034) 2025-08-28 18:09:09 -07:00
Jason Penilla b6168b7ccc Get console Brig suggestions from main thread fixes #13027 (#13028) 2025-08-28 17:25:42 -07:00
Shane Freeder 51706e5ac1 Fixed DyeItem sheep dye hunk 2025-08-25 02:49:26 +01:00
Aeltumn 614e9acfca Improve APIs around riptide tridents (#12996)
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
2025-08-23 21:12:30 +00:00
MCdragonmaster 52d9a2216c [ci skip] Fix typo in Display javadoc (#13010) 2025-08-23 20:59:05 +00:00
Strokkur24 42b653b197 Expose more argument types (#12665)
Co-authored-by: Bjarne Koll <git@lynxplay.dev>
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
2025-08-23 21:10:41 +01:00
Strokkur24 5622c9dd73 Expose attribute sentiment (#12974)
Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com>
2025-08-23 17:15:16 +00:00
Pedro a9e7674933 Support for showNotification in PlayerRecipeDiscoverEvent (#12992) 2025-08-23 17:53:46 +01:00
MC_XiaoHei ea014f7a77 feat: add stuckEntityPoiRetryDelay config (#12949)
Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com>
2025-08-23 09:39:19 -07:00
Warrior 79cf1353b9 Ignore HopperInventorySearchEvent when it has no listeners (#13009) 2025-08-23 16:25:40 +00:00
Lulu13022002 1922be9074 Update custom tags (#12183) 2025-08-23 16:53:07 +01:00
Pedro b0da38c278 Repository details in RuntimeException for MavenLibraryResolver#addRepository (#12939) 2025-08-22 11:25:08 +01:00
Moulberry 38fe16b5f2 Fix missing reason in disconnectAsync (#13001) 2025-08-21 22:13:31 +01:00
Moulberry f866a5fd54 Use LinkedHashMap in ChannelInitializeListenerHolder (#13000) 2025-08-19 17:53:03 +02:00
Esophose 616a8795ea Add LootTable to BlockDispenseLootEvent (#12917) 2025-08-17 15:53:00 +01:00
Strokkur24 47f983f430 Add allow-remote-ender-dragon-respawning setting (#12602) 2025-08-17 13:49:30 +02:00
Pedro b200237c7d Fix clone return for Paper PlayerProfile (#12984) 2025-08-15 21:56:54 +01:00
David a22447a555 Added getWorldPath to World API (#12952) 2025-08-15 21:39:09 +01:00
Warrior a743e6b1c7 [ci skip] Clarify tab completion ordering in event jd (#12965) 2025-08-15 21:33:10 +01:00
Warrior 2456ff26ed [ci skip] Update javadoc for tinted leaves particle (#12962) 2025-08-15 21:30:16 +01:00
Emil 651fa124c5 Fix cancelled EnderDragonShootFireballEvent playing sound (#12977) 2025-08-15 21:55:31 +02:00
swim5678 f0c1f856f2 Fix Phantom entity Spawn reason (#12980) 2025-08-14 17:46:02 +01:00
Jason Penilla 86b716bc5b Fix BlockFadeEvent not being called when fire extinguishes in rain (#12972) 2025-08-13 08:29:06 -07:00
Alejandro Nieto 4fe66e5800 Fix lead_break sound playing after cancelling EntityUnleashEvent (#12944) 2025-08-12 11:01:39 +02:00