-
Notifications
You must be signed in to change notification settings - Fork 0
Performance
PixelRTPPool was engineered specifically for large, enterprise-grade Paper servers. Server owners often dread region-based plugins because they tend to destroy TPS (Ticks Per Second). We solved this.
Here is a technical overview of why PixelRTPPool is incredibly lightweight.
Legacy plugins often rely on the Spigot PlayerMoveEvent to detect when a player enters an area.
- This event fires dozens of times per second, per player.
- If a server has 100 players moving their mice, jumping, or sprinting, the event fires thousands of times per second.
- Iterating through a list of configured coordinates during every single one of those events results in massive CPU bottlenecking.
PixelRTPPool completely abandons the PlayerMoveEvent.
Instead, it registers an asynchronous SessionHandler directly inside WorldGuard's core framework. WorldGuard is already highly optimized to calculate bounding boxes and chunk intersections via spatial hashes. When WorldGuard natively calculates that a player has crossed a region boundary, it quietly notifies PixelRTPPool.
This means our plugin does absolute zero mathematical boundary polling on the main server thread.
Retaining Bukkit Player objects in memory lists (HashMaps, Arrays) after they disconnect is the #1 cause of plugin memory leaks. PixelRTPPool exclusively caches raw UUID strings. When data needs to be evaluated, it cross-references the UUID against the live server index.
When a player enters a pool, a BukkitRunnable is scheduled to count down. These tasks are strictly cataloged inside the CountdownManager. The task is instantly destroyed and garbage collected if the player:
- Disconnects
- Dies
- Leaves the region boundary
- The server reloads
When /rtppool reload is executed, the ConfigManager doesn't just read the YAML. It systematically shuts down the TeleportManager, flushes the RTPRegion caches, and cleanly instantiates fresh provider instances. This guarantees zero lingering threads or ghost configurations.
Lightweight β’ High Performance β’ Production Ready
Version: 1.0.0 β’ Minecraft: Paper 1.21.11 β’ Java: 21
Made with β€οΈ by PG
Β© 2026 Pixel Productions
π Home β’ βοΈ Configuration β’ π Commands β’ π‘οΈ Permissions β’ β FAQ β’ π οΈ Developer Guide
Licensed under the MIT License
Welcome to the official documentation for PixelRTPPool.
- GitHub Repository: https://github.com/PGGAMER9911/PixelRtpPool
- Modrinth: (Update after release)
- License: MIT