Lightning Optimizer (FPS Boost & Lag Fix)

A high-performance, lightweight rendering optimizer that boosts FPS by intelligently culling distant and invisible particles.

File Details

Lightning v1.2.0

  • R
  • May 26, 2026
  • 9.04 KB
  • 4.9K
  • 1.21.11+30
  • Fabric

File Name

lightning.jar

Supported Versions

  • 1.20-Snapshot
  • 1.21-Snapshot
  • 1.21.2-Snapshot
  • 1.21.6-snapshot
  • 1.21.1-Snapshot
  • 1.21.5-Snapshot
  • 1.21.4-Snapshot
  • 1.21.9-snapshot
  • 1.21.11-snapshot
  • 1.21.11
  • 1.21.10
  • 1.21.9
  • 1.21.8
  • 1.21.7
  • 1.21.6
  • 1.21.5
  • 1.21.4
  • 1.21.3
  • 1.21.2
  • 1.21.1
  • 1.21
  • 1.20.2-Snapshot
  • 1.20.5-Snapshot
  • 1.20.3-Snapshot
  • 1.20.6
  • 1.20.5
  • 1.20.4
  • 1.20.3
  • 1.20.2
  • 1.20.1
  • 1.20

Curse Maven Snippet

Fabric

modImplementation "curse.maven:lightning-optimizer-1450086:8149447"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Lightning v1.2.0

 

Major Updates

  • Disk-Cache Persistence Engine: Introduced an asynchronous disk-caching mechanism that stores chunk data into a dedicated lightning_cache directory. This effectively shifts the I/O load off the main thread, significantly reducing frame-time spikes and stuttering during exploration.

  • Intelligent Chunk Monitoring: Implemented a non-blocking ClientTick monitoring system that actively captures and syncs surrounding chunk data every 10 seconds. This ensures a consistent performance baseline regardless of world activity.

  • Advanced Toggle System (F8): Fully reworked the HUD toggle logic. By popular request, you can now seamlessly enable/disable the Lightning Stats overlay using the F8 key, complete with anti-spam debouncing.

  • Premium Warp Animations: The HUD no longer static; it now features a sleek, hardware-accelerated slide-in/warp animation for a premium, polished user experience.

  • Universal Version Support: Hardened the architecture to be fully compatible with Minecraft 1.20.1 through 1.21.x, including the latest snapshot builds.

  • Java 21 Optimization: Refined internal logic to leverage Java 21’s modern memory management, ensuring the performance boost calculations are more precise and resource-efficient.

Bug Fixes & Refinements

  • Cinematic Mode Sync: Resolved an issue where the HUD would remain visible during F1 (Cinematic) mode.

  • FPS Calculation Accuracy: Corrected the mathematical logic for low-end systems, eliminating "negative FPS" glitches and ensuring the reported boost percentages remain stable and realistic.

  • Zero-Cleanup Protocol: Integrated a robust ShutdownHook that automatically purges the temporary cache directory upon client exit, ensuring zero disk overhead after your session ends.

  • Code Decoupling: Successfully transitioned from restrictive Mixin dependencies to an Event-Driven Architecture, significantly increasing the mod's stability across various modding environments.