lighto-1.20.1-1.1.0
Curse Maven Snippet
What's new
1.1.0
Finer color resolution, budgeted table edits, presets, and two rendering gaps closed.
Added
- 5 bits per channel. Every cell now carries 32 levels per channel instead of 16, still packed into one
short(15 bits used). The decay still steps 2 units per block, so the reach stays at 15 blocks; the extra resolution goes into the gradient itself, which shows most in dim light and on large flat walls. The normalization LUT grows from 16 KB to 128 KB; per-section storage is unchanged. - Color presets.
natural,fantasyandnoirship in the jar underassets/lighto/presets/./lighto preset listlists them,/lighto preset apply <name>replaces the user table (backing the old one up first), and/lighto preset resetrestores that backup. A same-named file inconfig/lighto/presets/overrides a built-in preset, so a pack can ship its own without rebuilding. Presets only carry colors and filters; they never changebrightness,strengthorsky_influence. tint_shadow_pass(defaulttrue). Turn it off to keep entities neutral in an Iris/Oculus shadow pass while the lit scene stays colored. The check links the Iris API directly and is gated by an early mod-list test, so an install without Emberlens/Iris never loads the class.- Vanilla fluid tinting. Without Emberbium, water and lava surfaces now pick up the color of the light around them like blocks do. The sample is taken once per fluid block, and the active sample is thread-local because the shared renderer is used by the chunk-build workers.
Changed
- Color-table edits are budgeted by time, not by position count. The refresh queue now gets 2 ms per client tick instead of a fixed 4096 positions. The batch starts at 32 and adapts between 8 and 512 depending on how long the previous one took, and scanned positions are sorted by distance so what you are looking at updates first.
- Docs updated for the 5-bit layout, the new refresh budget, presets, the shadow-pass switch and the vanilla fluid path.
Fixed
- Large color-table edits no longer freeze the client. Editing a table with thousands of emitters used to spend 85–145 ms in a single tick; the time budget spreads the work over ticks and shrinks the batch when one runs long.
Notes
- A single dense
recolorAllbatch is still atomic, so an extremely dense edit can overrun the 2 ms budget once; the following batch adapts down.
1.0.2
Fixed
- Entities were tinted from the wrong position.
EntityRenderDispatcher#renderreceives coordinates relative to the camera, and the entity tint was sampling the light color with those coordinates as if they were world coordinates. In practice the tint was read from the blocks around the world origin atentityPos - cameraPos, so it changed with the camera angle and painted players, mobs and their capes with whatever color the world origin happened to be lit with (a green hue in a lush cave or under a green light). The tint is now sampled atEntity#getLightProbePosition, the same cell the entity model takes its vanilla light from, so it follows the entity and matches the light it is rendered with.
1.0.1
Performance and correctness pass on the colored light data layer. No API, config or resource-pack changes.
Fixed
- Turning colored light off now really turns it off.
enabled = falseonly stopped the tinting before: chunk scanning, light propagation and chunk rebuilds kept running in the background. All of that work is now skipped while the feature is off, and the tint that was already baked into chunk meshes is rebuilt away immediately instead of staying on screen until those chunks happen to be rebuilt anyway. - Turning it back on rebuilds the data right away from the chunks that are loaded at that moment, so colors no longer take a while to show up again.
- Chunk unload no longer walks the light volume of a column that is about to be discarded. The whole column leaves the storage first, so only the sections that stay loaded are cleaned up.
Changed
- Chunk load/unload light work is now queued and spread over client ticks with a per-tick budget instead of running inside the packet handler. Crossing chunk borders in a lava-heavy Nether used to cost 10-20 ms per event, which showed up as a frame spike every time you moved.
- Queued chunk scans are served before unload cleanups, so newly visible terrain gets its colors first.
- The scratch list used by the unload cleanup is a compact array instead of a hash set that kept paying for its historical peak size on every clear and every iteration.
/lighto statusalso reportsscans=andrepairs=(the two new queues), which is what to look at when reporting a stutter.
Notes
- Sprinting through a large lava sea for a long time can make the cleanup queue fall behind: colors at the edge of the render distance may lag for a moment and catch up within a few seconds once you slow down.
1.0.0
- Initial release.
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include