# XMLagFix — Consistent 60 FPS & Anti-Stutter Engine
**XMLagFix** is an ultra-lightweight, hardware-accelerated performance mod engineered by **Mayank Mandrai** for Minecraft 1.21.1. It eliminates micro-stutters, stabilizes frame pacing, dynamically cleans garbage collection memory spikes, and maintains rock-solid FPS even on low-end PCs and Intel HD graphics laptops.
---
### Core Performance Features
- **Adaptive Frame Pacing Engine**: Synchronizes frame delivery intervals with GLFW display refresh loops to eliminate sudden jitter and screen tearing without introducing mouse latency.
- **Turbo Memory Cleaner**: Automatically detects JVM heap accumulation and executes safe generational memory compaction in background threads, eliminating freezing during chunk loading.
- **Smart Occlusion Culling Optimizer**: Skips rendering non-visible block faces and dormant entity animations to drastically reduce CPU draw calls and GPU vertex overload.
- **Dynamic Background Throttling**: When Minecraft loses window focus or is minimized, XMLagFix drops framerate to conserve power and heat, ramping back to maximum immediately upon focus.
- **In-Game Performance HUD**: Toggle real-time FPS stability, memory usage, and frame pacing diagnostics with clean in-game visual meters.
---
### Compatibility & Installation
- **Minecraft Version**: 1.21.1
- **Mod Loader**: Fabric Loader (v0.16.0 or higher)
- **Required Dependencies**: Fabric API
- **Recommended Pairing**: Fully compatible with Sodium, Lithium, FerriteCore, and ImmediatelyFast for maximum performance.
---
### Credits & License
- **Author & Lead Developer**: Mayank Mandrai
- **License**: MIT License (Free, open, and lightweight)
