promotional bannermobile promotional banner

Lightning Optimizer (FPS Boost & Lag Fix)

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

Lightning v1.2.0

File namelightning.jar
Uploader
hydrogen001hydrogen001
Uploaded
May 26, 2026
Downloads
14.1K
Size
9.0 KB
Mod Loaders
Fabric
File ID
8149447
Type
R
Release
Supported game 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"

Learn more about Curse Maven

What's new

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.