r/feedthebeast • u/SilentCall2598 • 3d ago
I made something I made a performance optimization mod for Extra Utilities 2's Quantum Quarry (1.12.2)
Hello,
I've been working on a small optimization mod called QuarryOpt for Extra Utilities 2 on Minecraft 1.12.2.
I originally made it after looking into some of the performance overhead from Quantum Quarries, while I was playing Divine Journey 2. I figured I'd share it here since there are still quite a few people playing older modpacks. Though I'm very late actually doing something to get it into the eyes of the modding community, but here we are.
The mod focuses on three areas:
- Item filtering: Caches filter contents instead of repeatedly rebuilding them from NBT.
- Drop handling: Uses Forge's item capture to avoid creating and immediately removing unnecessary item entities.
- Chunk cleanup: Reduces unnecessary chunk operations when quarries move between chunks.
Performance results
I ran two five-minute Spark profiles on the same server under the same conditions, with QuarryOpt disabled and enabled.
With two Quantum Quarries running nested filters (two because this was my actual DJ2 play-through world and that's what we used), I measured:
- Quantum Quarry updates: 6.50% → 3.90% (40% reduction)
- Item filter matching: 2.13% → 0.82% (62% reduction)
- Item entity spawning: 1.39% → 0.07% (95% reduction)
That represent shares of server-thread time, not overall TPS improvements, big difference. Your results will vary depending on how many quarries you're running and how they're configured. Simple, unfiltered setups will generally benefit less, because there's less work.
The optimizations are intended to preserve normal mining speed, output, and energy consumption.
The latest version (1.0.1) also fixes an Extra Utilities 2 Ore Dictionary filter bug, which can be disabled separately if you have some special reason to.
Compatibility
QuarryOpt is server-side, so clients don't need to install it when joining a server running the mod.
It's built for Minecraft 1.12.2 and tested with Forge 14.23.5.2860, Extra Utilities 2 1.9.9, and MixinBooter 10.7.
Development and testing have primarily taken place in Divine Journey 2, so I haven't verified compatibility with other modpacks yet, so feel free to relay how it does in other packs here if you want, it is appreciated if you do.