Список изменений
LessLag v1.2 Release Notes New Features Asynchronous Workload Distribution: Implemented WorkloadDistributor to handle heavy bulk operations (such as clearing thousands of entities) across multiple ticks, preventing main thread freezes.
Incremental Analysis: Refactored LagSourceAnalyzer to use IncrementalSnapshotBuilder, spreading snapshot collection over time to reduce analysis overhead.
Localization Support: Externalized all hardcoded messages to messages.yml, allowing for full language customization.
Pufferfish Hybrid Mode: Added support for Pufferfish Hybrid Mode in CompatibilityManager.
New Actions: Added notify-admin and reduce-view-distance to the available action list in ActionExecutor.
Configurable Budget: Added configuration options for the workload distributor's per-tick time budget.
Performance Improvements Frustum Culling Optimization: Refactored FrustumCuller algorithm to O(m) complexity using player-centric iteration for faster processing.
Concurrency: Increased the asynchronous thread pool size from 2 to 4 to better handle concurrent monitoring tasks.
Optimized Entity Checks: Improved enforceEntityLimits performance by refactoring distance calculations and map lookups.
Bug Fixes Memory Leaks:
Fixed a task leak in RedstoneMonitor where scheduled tasks were not properly cancelled on reload.
Fixed potential memory leaks by ensuring LessLag instance references are nullified on disable.
Thread Safety:
Resolved race conditions in ActionExecutor by switching from World objects to UUID as map keys during async analysis.
Added verification for thread safety in monitor cleanup routines.
Configuration & Logic:
Fixed ThresholdConfig incorrectly reading from the root thresholds path instead of automation.thresholds.
Fixed WorldChunkGuard interval calculation causing unit errors (seconds vs. ticks).
Fixed TPSMonitor threshold logic to prevent "sticky" states where actions would not de-escalate properly.
Fixed duplicate per-chunk-limit keys in the default configuration.
Fixed ActionExecutor entity limit enforcement to correctly interpret category keys (monster, animal, etc.).
Compatibility:
Fixed CompatibilityManager logic to avoid false positives when detecting Pufferfish/DAB.
Prevented RedstoneMonitor from forcefully disabling when ClearLag is detected (changed to warning only).
Refactoring Refactored LagSourceAnalyzer to fix chunk load rate calculation bugs.
Added shutdown() method to WorkloadDistributor to ensure clean termination of pending tasks.
General code cleanup and linting fixes across the codebase.