Set defalt NetworkOptimize option to false. DO NOT ENABLE THIS FUNCTION IF YOUR SERVER DOESN'T STOP BECAUSE OF LAGGING. This function triggers optimization for network when memory usage is too high or cpu usage is to high. It will lower the tps to 1~5, you can use /stopoptimize to stop the protection if you enabled the function and triggers optimization.
Added command: /stopoptimize. You can use it when you enabled Network Optimization. Will stop the optimization immediately.
Added CPU Monitor and Optimizer: Now High CPU usage will be detected and optimized.
Added chunk update suppression: The chunks that updates too fast will be suppressed by Daemon and operators need to check the chunks and execute /daemon pardonchunk to restore the normal updating of the chunk.
Chunk saving logic improvisation: Now chunks saves automatically after player stops activities in the current chunk for 5 min.
Entity clearing logic improvisation: Now excess entities have more accurate triggers, entities like minecarts in redstone machines now won't be cleared.
Revamped NetworkOptimizationManager.java to implement client-side computing scheduling mechanism
Transmits raw server data including player position, world time, nearby entities and server load to clients via the dedicateddaemon:compute plugin message channel
Offloads computational workload to client devices for local data processing, then receives and verifies computed results sent back from clients
Auto-trigger activation: Automatically enables client computing offloading when server memory usage ≥ 85% or TPS ≤ 12 to reduce server pressure
Server Hibernation Function
Added brand-new ServerHibernationManager to realize intelligent server sleep-wake control
Auto-hibernation: The server automatically enters hibernation mode after 15 minutes of inactivity with no online players
Operation suspension: Pauses all background scheduled tasks and world tick operations during hibernation
Resource release: Automatically cleans up redundant entities and triggers GC recycling to free up system resources
Auto-wakeup: Listens for player join events and automatically wakes & restores the server state when new players connect