
LagScope
LagScope is an all-in-one plugin that analyzes server lag in real time and actively optimizes entities, redstone, and explosions to keep performance stable.
- Загрузки
- 397
- Подписчики
- 1
- Обновлён
- 16 мая 2026 г.
- Лицензия
- MIT
Опубликован 17 января 2026 г.
LagScope
LagScope is a performance analyzer and lag control plugin for Paper and Purpur (1.21+).
Smart Lag Control
LagScope tracks TPS, MSPT, entities, chunks, and activity spikes.
- Detects lag-heavy chunks immediately.
- Identifies problematic mechanics (entities, redstone, explosions, hoppers).
- Applies targeted limits instead of global wipes.
- Offers multiple lag modes ranging from "Light" to "Aggressive."
The goal is a stable server without unnecessary interference with gameplay.
Active Protection Modules
The plugin is modular, allowing all optimizers to be toggled or tuned individually:
- Entity Limiter: Prevents entity and projectile spam per chunk.
- Entity Cleaner: Triggers smart cleanup when thresholds are exceeded.
- Explosion Control: Manages TNT and explosion spam.
- Redstone Limiter: Stops redstone clocks and massive update storms.
- Hopper Optimizer: Reduces hopper lag without breaking technical systems.
- Mob AI Optimizer: Scales down AI intensity based on server load.
- Vehicle Limiter: Limits minecart and boat physics spam.
- Action Limiter: Prevents abuse of items or abilities.
- Lag Protection: Automatically escalates measures based on current TPS/MSPT.
In-Game Analyzer & GUI
Identify the source of performance issues directly within the game:
- Live TPS and MSPT display.
- List of the most resource-intensive chunks.
- Entity and tile-entity counts.
- Module status overview.
Management is handled through an in-game GUI, reducing the need to manually edit configuration files.
Performance First
- Event-driven logic without unnecessary background tasks.
- Chunk-aware limiting avoids global punishment for all players.
- Built specifically for modern Paper and Purpur APIs.
- Safe for large SMPs and professional networks.
LagScope focuses on stability through intelligent management rather than simple destruction.
Commands
/lag– Open the performance overview GUI./lag clear– Manually trigger a smart cleanup./lag mode <light|normal|aggressive>– Change the optimization strength.
Ideal For
- SMP and Survival servers.
- PvP servers with high TNT or redstone usage.
- Large communities with high entity counts.
- Network and high-player-count servers.
Ченджлог
1.0.0Релиз26.1, 26.1.1, 26.1.2 · 16 мая 2026 г.
LagScope Update - Major Performance & Paper API Optimization
This update focuses on massive performance improvements, specifically targeting high-player and low-latency server environments. We have deeply integrated modern Paper API methods and reworked our internal algorithms to significantly reduce Garbage Collection (GC) pressure and CPU overhead.
Performance Improvements
- Optimized Entity Clearing: Completely replaced the legacy
world.getEntities()calls inLagClearer. The plugin now utilizes Paper's highly optimizedworld.getEntitiesByClasses(). Players and complex mobs are completely bypassed during clear scans, preventing TPS drops when clearing large worlds. - Spatial-Hashing for Radius Clears: Radius-based entity clears now use
world.getNearbyEntities(), leveraging the server's internal spatial hashing instead of iterating through the entire world's entity list. - Fast-Exit Chunk Analysis: The
LagAnalyzernow features a fast-exit mechanism. If a chunk contains fewer entities than the current Top-N threshold, the analyzer skips the deep iteration entirely, drastically lowering CPU usage (MSPT) during scanning cycles. - Drastic GC Reduction: Refactored object creation inside the
LagAnalyzer. By using static comparators and optimizing the PriorityQueue, we eliminated thousands of useless array allocations per second, significantly reducing Garbage Collection spikes. - Native Server Metrics: The analyzer now hooks directly into the engine's internal metrics (
Bukkit.getServer().getTPS()andgetAverageTickTime()), completely removing the need for manual TPS calculation overhead.
Technical Changes
- Stronger focus on the Paper ecosystem for peak performance.
- Codebase cleanup and improved memory management across the analysis and control pipelines.
Note for Server Admins: This update is highly recommended for all servers, especially those dealing with high entity counts or struggling with micro-stutters during GC pauses.
1.0.1Релиз1.21.9, 1.21.10, 1.21.11 · 22 февраля 2026 г.
It was updated to an incremental chunk scan to eliminate scan spikes, and optional tile/hopper counting was added with n/a display in GUI/report when disabled. It was also improved through multiple hot‑path optimizations and config fixes (e.g., hopper/redstone keys and auto‑mode reset behavior).
Комментарии
Загружаем…