RankBoard 2.1.0 (MC 1.21-26.3)
Curse Maven Snippet
What's new
2.1.0
中文
- 事件驱动的实时统计索引(解决每 Tick 轮询卡顿):新增
StatHandlerMixin与LiveStatIndex,在 Minecraft 写入玩家统计时以 O(1) 增量维护红石大蛇榜(REDSTONE_PLACED)、干饭榜、放置榜、挖掘榜、扔东西榜、捡东西榜、合成榜的实时汇总并通过脏位掩码通知刷新,消除原先每 tick 全量遍历玩家与注册表的性能瓶颈;非 Mixin 环境自动回退到预解析数组的 20-tick 轮询。在 MC 26.3 20 假人混合榜单压测中,活跃 tick 平均耗时从16.92 ms降至3.10 ms(-81.7%),P95 从23.43 ms降至5.68 ms,峰值从54.74 ms降至15.80 ms。 - 高频 Tick 热路径优化:为
LeaderboardState.get增加单槽位服务端缓存并在停服时清理;LeaderboardReadScope改为按需延迟分配缓存表;RuntimeMetricTracker合并玩家状态表、非滑翔时跳过世界查询、无待刷增量时跳过刷盘,并优化破基岩扫描(复用可变坐标与原始整数距离平方);handleLookUpSneakMenu先判潜行与仰角再取状态;PlayerCompat.isFake使用ClassValue缓存。 - 大幅削减与消除反射:在
ComponentLookupCompat、RegistryKeyCompat、StatCompat、26.xCommandPermissionCompat/PlayerDirectoryCompat/ProfileCompat以及UniversalBridge热路径中完全移除反射;在 1.21–1.21.11 跨补丁兼容层(NbtCompat、TextCompat、PersistentStateCompat*、ProfileCompat、PlayerCompat、PlayerCommandSourceCompat、PlayerDirectoryBridge、PlayerNameColors、CommandPermission*)中优先直调并改用一次性MethodHandle/ClassValue与延迟加载内部类,删除废弃的FlightMetricTracker。 - 跨版本兼容性修复与全矩阵验证:隔离 1.21.4 旧版
PersistentState与TextCompat静态类初始化,修复 1.21.5–1.21.11 启动NoClassDefFoundError;移除 MC 26.3 中已删除的ChatFormatting.isColor()调用,改用TeamColor枚举映射;完成 Fabric 与 NeoForge 共 34 个版本组合(1.21–1.21.11、26.1–26.3)全量启动测试及代表版本真服功能回归。
English
- Event-Driven Live Stat Tracking (Fixes Per-Tick Polling Lag): Added
StatHandlerMixinandLiveStatIndexto maintain O(1) incremental per-player totals and a dirty-metric bitmask whenever Minecraft updates stats—covering Redstone Builder (REDSTONE_PLACED), Food, Placed, Mined, Dropped, Picked Up, and Crafted—eliminating per-tick full player/registry polling (with an automatic 20-tick pre-resolved array fallback when Mixin is unavailable). In a 20-fake-player mixed-metric benchmark on MC 26.3, active tick mean time dropped from16.92 msto3.10 ms(-81.7%), P95 from23.43 msto5.68 ms, and max from54.74 msto15.80 ms. - Per-Tick Hot-Path Optimizations: Added a single-slot server cache to
LeaderboardState.get(cleared on server stop); madeLeaderboardReadScopeallocate lookup maps lazily; mergedRuntimeMetricTrackerplayer state maps, skipped world lookups when not gliding, skipped empty flushes, and optimized bedrock scanning with mutable block positions and squared integer distances; guardedhandleLookUpSneakMenuwith sneak/pitch checks first; cachedPlayerCompat.isFakeviaClassValue. - Reflection Elimination & Minimization: Completely removed reflection from
ComponentLookupCompat,RegistryKeyCompat,StatCompat, 26.xCommandPermissionCompat/PlayerDirectoryCompat/ProfileCompat, and theUniversalBridgefast path. Replaced repeated reflective lookups across 1.21–1.21.11 compatibility layers (NbtCompat,TextCompat,PersistentStateCompat*,ProfileCompat,PlayerCompat,PlayerCommandSourceCompat,PlayerDirectoryBridge,PlayerNameColors,CommandPermission*) with direct fast paths, one-timeMethodHandle/ClassValuecaches, and lazy legacy holders. Removed unusedFlightMetricTracker. - Cross-Version Fixes & Full Matrix Verification: Isolated legacy
PersistentStateandTextCompattypes into lazy inner holders to fixNoClassDefFoundErroron 1.21.5–1.21.11; replaced removedChatFormatting.isColor()in MC 26.3 withTeamColorenum mapping. Verified startup across all 34 Fabric and NeoForge combinations (1.21–1.21.11,26.1–26.3) plus real-server functional regressions on representative versions.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

