premium banner
A zero-allocation, asynchronous lighting implementation for optimal server performance

Description

A server-side lighting engine replacement for Hytale, inspired by Minecraft's Starlight mod.

How it Works

FastLight overrides Hytale's default synchronous light calculations with a custom implementation:
1. Asynchronous Execution: Block and sky light propagation is shifted from the main server thread to a background worker pool using `CompletableFuture`.
2. Bitwise Propagation: Leverages 64-bit integer bitmasks to calculate light levels for entire chunk sections simultaneously, bypassing standard block-by-block iteration.
3. Zero-Allocation: Reuses array references and data structures throughout the calculation lifecycle, preventing excessive object creation and mitigating overhead from the Java Garbage Collector.

Results

  • Default Engine (Without mod): Synchronous chunk generation and lighting updates run on the main thread, typically consuming 15-30 ms per tick during chunk generation events 
  • FastLight Engine (With mod): Main thread lighting overhead is reduced to < 1 ms per tick, as the heavy calculations are handled by background threads.

    Installation

    Setup: Place `FastLight.jar` inside the server's `mods` folder and restart the server. No configuration required.

    Офіційний Сервер

    Обрій — український сервер Hytale!
    https://obriyhytale.pp.ua/