[CENTER][SIZE=6][B][COLOR=#00FF44] LootGlow v1.2.2 - The Performance Overhaul![/COLOR][/B][/SIZE]
Massive Performance Boost (Global Task): Complete rewrite of the synchronization system. Replaced individual item tasks with a single, highly optimized global task. CPU usage reduced by over 90%!
Zero-Allocation Timer: All 300+ timer components are now pre-calculated at startup. The main task no longer performs any string parsing or MiniMessage deserialization for the timer, making it nearly instant.
ProtocolLib Optimization (Lazy Cloning): Optimized the packet listener to skip expensive reflection-based packet cloning unless a modification is strictly necessary.
Advanced Name Caching: Expensive **PlaceholderAPI** and **MiniMessage** calls are now cached. The hologram name is calculated once, eliminating per-tick overhead.
Smart Visibility Updates (LOD): Rewritten visibility logic to use the item's location as the source of truth, ensuring visuals are always shown correctly even after a server restart.
Optimized Grouping Algorithm: New world-based grouping logic to handle thousands of items with minimal overhead.
Text Caching: Added a caching layer to avoid redundant metadata updates when the hologram content hasn't changed.
LOD & View Distance: Improved Level of Detail logic to hide visuals that are out of sight, further boosting FPS for players.
Intelligent Teleportation: The plugin now skips movement updates for stationary items, drastically reducing server-side load.
Zero-Allocation Timer: All 300+ timer components are now pre-calculated at startup. The main task no longer performs any string parsing or MiniMessage deserialization for the timer, making it nearly instant.
️ Technical & Performance Fixes:
Stability Fix: Resolved a critical "NullPointerException" that could cause visuals to stop moving or become invisible during high load.
Redundancy Removal: Cleaned up overlapping background tasks and unused methods to ensure a lean and stable runtime.
Memory Optimization: Better cleanup of metadata and cache when items are picked up or despawned.
Stability: Resolved rare "ghost" visual issues in high-load scenarios.