promotional bannermobile promotional banner

Lightning Profiler

Find out what's making your game slow, in plain English. A profiler for frames, ticks, GPU, memory and mods.
overview.png

overview.png

frames.png

frames.png

sections.png

sections.png

loading.png

loading.png

Description

Found a bug or have an idea? Please post it on GitHub Issues instead of the comments. That's where every report gets read and tracked.

Lightning

Lightning finds out what's making your game slow and tells you in plain English. A profiler for frames, ticks, graphics, memory and mods, for Minecraft 1.21.1 with NeoForge.

Type /lightning report, play for a minute, and a report opens in your browser. Its first page lists the biggest problems with the evidence underneath.

Report overview: the biggest problems in plain English

What it records

  • Frames and server ticks on one timeline, with stalls, garbage-collection pauses and log lines marked where they happened.
  • Graphics card time per render step, including shader packs (Iris) and distant terrain.
  • Which mod is behind slow code, memory use and memory churn.
  • Chunks, mobs and machines that cost the most server time, with a chunk map.
  • Phases: mark moments like "boss fight" and compare them side by side.

Frame timeline with stalls and GC pauses marked

Time per render section

Slow start-up or world joins

Every loading step is timed from the moment Java starts: the slowest resource loaders, which mods' mixins slow loading, and what the game sat waiting on. Add this to the game's Java arguments, launch, and open the report's Loading tab:

-Dlightning.startup=join -XX:StartFlightRecording=name=lightning,settings=profile,class-loading=true

Use title instead of join to stop at the title screen.

The Loading tab

Commands

Command What it does
/lightning report [seconds] Record for a while (default 60 s), then open the report
/lightning profiler start / stop / cancel / status Manual recording
/lightning mark <name> Start a named phase
/lightning heap Quick look at what's filling memory
/lightning heap deep Full memory breakdown by mod (freezes the game for a few seconds)

Lightning commands in chat

Lightning reports its own overhead, and if the game crashes mid-recording the report is rebuilt the next time you start. Each recorder can be turned on or off in Mods → Lightning → Config.

Credits

Source code on GitHub, licensed LGPL-3.0-only.


Made with AI assistance.

Lightning Profiler Team

profile avatar
  • 6
    Projects
  • 213
    Downloads

If just one person likes my mods, mission accomplished Also lmk if u have ideas, issues.

More from SteelArchadianView all

  • Mojanimated project image

    Mojanimated

    An animated Mojang Studios intro with its jingle on the loading screen. Works with FancyMenu and resource reloads on NeoForge.

    • 68
    • October 27, 2026
  • Expanded Celestials project image

    Expanded Celestials

    19 new moon events for Enhanced Celestials 2: gravity moons, Eclipse, Pink Moon, Meteor Shower, Ender Moon and more.

    • 70
    • October 27, 2026
  • Keybind Keeper project image

    Keybind Keeper

    Your keybinds survive when a mod goes missing for a session, plus a Reset Options button on the Controls screen.

    • 15
    • October 27, 2026
  • Common Sense project image

    Common Sense

    Pets, villagers and herds with some common sense: safe pathing, rescues, villagers who find home, and herd instinct.

    • 15
    • October 27, 2026
  • Mojanimated project image

    Mojanimated

    An animated Mojang Studios intro with its jingle on the loading screen. Works with FancyMenu and resource reloads on NeoForge.

    • 68
    • October 27, 2026
  • Expanded Celestials project image

    Expanded Celestials

    19 new moon events for Enhanced Celestials 2: gravity moons, Eclipse, Pink Moon, Meteor Shower, Ender Moon and more.

    • 70
    • October 27, 2026
  • Keybind Keeper project image

    Keybind Keeper

    Your keybinds survive when a mod goes missing for a session, plus a Reset Options button on the Controls screen.

    • 15
    • October 27, 2026
  • Common Sense project image

    Common Sense

    Pets, villagers and herds with some common sense: safe pathing, rescues, villagers who find home, and herd instinct.

    • 15
    • October 27, 2026