Mods
Resource Packs
Data Packs
Modpacks
Shaders
Plugins
Mods Resource Packs Data Packs Plugins Shaders Modpacks
Get Modrinth App Upgrade to Modrinth+
Sign in
ModsPluginsData PacksShadersResource PacksModpacks
Sign in
Settings
Lumi

Lumi

Makes light updates and worldgen faster

2,165
7
Library
Optimization
AboutChangelogVersions

A full replacement of the Minecraft lighting engine with an extendable API, shipping with Phosphor as a reference implementation.

Dependencies

  • ChunkAPI 0.5.0+
  • FalsePatternLib 1.2.0+
  • UniMixins 0.1.11+

Performance

The main performance improvement comes from the fact that the lighting engine is evaluated "lazily", thus it is able to batch more lighting updates into a single pass.

Here are some simple to understand values, generated via profiling a pre-set test case:

Test Case
  • World Type: Default
  • World Seed: 123
  • Game Mode: Creative
  • Render Distance: 16

Profiler is started right before clicking Create New World, and stopped after 10 seconds of flying in a straight line in creative mode.

Without Lumi, the active server time spent in lighting engine is 34% of the total active server time (not counting when the server thread is sleeping).

With Lumi, this fraction goes down to 13%, or an approximately 2.5x performance increase over vanilla.

Flame Graphs

Horizontal axis is time, vertical axis is the call stack. The blue highlighted parts are calls to the lighting engine update method.

Flame Graph Without Lumi

Flame Graph With Lumi

Incompatibilities

  • ArchaicFix: Config Change Needed
    • As both mods replace the same parts of code, naturally you will need to set enablePhosphor to false in the ArchaicFix config.
  • CoreTweaks: Config Change Needed
    • The fix_heightmap_range feature is already implemented in Lumi's lighting engine. Set it to false in the CoreTweaks config.

Both of these configs will be automatically modified by Lumi automatically when you launch the game, so you shouldn't even need to edit the config files manually.

Authors

  • FalsePattern
  • Ven

Credits

  • embeddedt
    • The initial port of Phosphor into 1.7.10
  • CaffeineMC
    • Creating the original Phosphor

90% of ad revenue goes to creators

Support creators and Modrinth ad-free with Modrinth+

Compatibility

Minecraft: Java Edition

1.7.10

Platforms

Forge

Supported environments

Client and server

Links

Report issues View source Join Discord server
Donate on Ko-fiDonate on Patreon

Creators

FalsePattern
FalsePattern Author
basdxz
basdxz Co-Author

Details

Licensed LGPL-3.0-or-later
Published last year
Updated last month

Modrinth is open source.

main@656c5b6

© Rinth, Inc.

Company

TermsPrivacyRulesCareers

Resources

SupportBlogDocsStatus

Interact

Discord X (Twitter) Mastodon Crowdin
Get Modrinth App Settings
NOT AN OFFICIAL MINECRAFT SERVICE. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.