Pulsar Lighting Engine
概述
Pulsar 是一款基于 Starlight 和 SuperNova 的 Cleanroom 光影引擎模组。
它使用源自 Starlight 的基于队列的广度优先搜索(BFS)光照传播算法,取代了 Minecraft 原版的光照引擎。
它提供像 Starlight 一样的非彩色 SCALAR 光照模式,以及像 SuperNova 一样的全 RGB 彩色光照模式。
特性
- RGB 彩色光照:按 RGB 通道分别计算方块光和环境光,考虑光源颜色并处理如染色玻璃等方块对光线的过滤效果。
- SCALAR 模式:使用传统的非彩色光照计算方式,与 Starlight 类似。
- 异步并行处理:在独立的辅助线程上运行服务端光照传播。
- 批量光照更新:将大量方块变化引起的光照更新进行分组处理。
- 光照数据缓存:将计算好的光照数据保存至区块 NBT 中,避免区块加载时重新计算。
- 各种未在此列出的额外错误修复和生活质量改进。
- Thaumcraft 水晶的自然光照。
已修复的 Bug
兼容性
- JSON Paintings:为模组添加的画作应用平滑光照。
- SpongeForge:包含对异步光照的兼容支持。
- Fluidlogged API:考虑块内存储流体的不透明度和发光属性。
- CBMultipart:标准微方块继承其材料的光源颜色。除非由专用整合模块处理,否则自定义部件保持中性发光。
- ProjectRed:全方块灯具、多部分固定装置、发光按钮和发光微方块材料提供 RGB 发光,保留其实际亮度和电源状态。
- Depths Update:支持扩展的世界高度范围。
- Thaumcraft:为水晶添加平滑光照。
- Celeritas:支持其渲染管线。
- Demonica Shader:已与 Complementary Reimagined 测试并确认兼容。
- 不保证与 Actinium、Pintonium 和 Impetus 等分支版本的兼容性。
不兼容项
Pulsar 完全替换了光照引擎,因此与其他光照引擎模组不兼容。
- Alfheim
- Phosphor
- Hesperus
- Starlight-1.12
- OptiFine:请使用 Celeritas 代替。Demonica Shader 提供光影支持,而 Celeritas Extra 和 Celeritas Leaf Culling 应能覆盖额外的视频选项。
- The Aether II:请使用 The Aether II: Phosphor Not Included 代替。
配置
config/pulsar.cfg:选择光照模式并配置其他功能。
lightingMode:RGB(默认,RGB 彩色光照)或 SCALAR(传统非彩色光照)。
rgbGameplayLight:RGB_MAX(默认,使用最亮的 RGB 分量作为游戏性亮度;逐通道衰减影响诸如生物生成之类的光照检测)或 VANILLA(为游戏性光照检测单独计算非彩色光照)。
rgbBlendMode:包含一个可选的 MAXIMUM 模式,通过取每个通道的最亮值来组合方块光和环境光。在彩色光源周围,全天光保持中性。这控制正常渲染;光影包自行处理其着色。
debug.traceLightUpdates:用于光照队列、渲染请求和 Celeritas 重建的可选诊断功能。每 200 个客户端刻记录一次有界摘要;调用者和位置样本覆盖 1/64 的请求。
config/pulsar-colors.cfg:定义光源颜色。
config/pulsar-filters.cfg:定义每个 RGB 通道的衰减。
带有 RGB 预设的模组
Pulsar 为以下模组的部分光源提供了 RGB 预设:
- Actually Additions
- Advanced Chimneys
- Applied Energistics 2
- Ars Magica 2: Rekindled
- BiblioCraft
- Biomes O' Plenty
- Botania
- BuildCraft
- Charm
- Chisel
- Coloured Sea Lanterns
- Deep Mob Learning
- Embers / Embers Construct
- Ender IO
- Exotic Birds
- Extra Utilities 2
- Forestry
- Future MC
- Galacticraft
- GregTech CE Unofficial (GTCEu)
- Immersive Engineering
- Inspirations
- Mekanism / Mekanism Generators
- Natura / Natura Legacy
- NetherEx
- OpenComputers
- Pam's HarvestCraft
- ProjectRed
- Quark
- Railcraft
- TAIGA
- Thaumcraft
- Thermal Expansion
- Thermal Foundation
- Tinker I/O
- Tinkers' Construct
- Twilight Forest
基准测试
于 2026-10-30 在 Minecraft 1.12.2 / Cleanroom 0.6.13-alpha 环境下测量,对比原版光照、Alfheim 1.6 以及 Pulsar 0.6.0 的 SCALAR 和 RGB (RGB_MAX) 模式。
图表测量的是从方块变化到光照完成(包括完成适配器)的专用服务器延迟。每个值是四次全新 JVM 运行均值的中间值;须状图显示最小值和最大值。CPU 为 Ryzen AI MAX+ 395,Java 版本为 25,堆内存固定为 4 GiB。数值越低越好;坐标轴采用对数刻度。


原版通过了开放天空下的方块光测试,但在屋顶固定装置的初始存储环境光验证中失败,因此没有原版的天空光更新时间得分。RGB 模式计算额外的彩色光照信息。这些重复且单独等待完成的更新不衡量 FPS、区块生成或并发更新吞吐量。
请参阅 测量值和运行范围 以及 原始测量结果,以获取完整的对比信息。
有关兼容性探测和可选的空区块实验,请参阅 光照验证说明。
鸣谢
Pulsar Lighting Engine
Overview
Pulsar is a lighting engine mod for Cleanroom, based on Starlight and SuperNova.
It replaces Minecraft's vanilla lighting engine with queue-based breadth-first search (BFS) light propagation derived from Starlight.
It offers a non-colored SCALAR lighting mode like Starlight and a full RGB colored lighting mode like SuperNova.
Features
- RGB colored lighting: Calculates block light and sky light per RGB channel, accounting for light source colors and filtering through blocks such as stained glass.
- SCALAR mode: Uses conventional, non-colored lighting calculations, like Starlight.
- Asynchronous and parallel processing: Runs server-side light propagation on separate worker threads.
- Batched lighting updates: Groups lighting updates caused by large numbers of block changes.
- Light data caching: Saves calculated light data in chunk NBT to avoid recalculation when chunks are loaded.
- Various additional bug fixes and quality-of-life improvements not listed here.
- Natural lighting for Thaumcraft crystals.
Fixed Bugs
Compatibility
- JSON Paintings: Applies smooth lighting to paintings added by the mod.
- SpongeForge: Includes compatibility support for asynchronous lighting.
- Fluidlogged API: Accounts for the opacity and light emission of fluids stored inside blocks.
- CBMultipart: Standard microblocks inherit their materials' light source colors. Custom parts retain neutral emission unless handled by a dedicated integration.
- ProjectRed: RGB emission for full-block lamps, multipart fixtures, light buttons, and light microblock materials, preserving their actual brightness and power state.
- Depths Update: Supports extended world height ranges.
- Thaumcraft: Adds smooth lighting to crystals.
- Celeritas: Supports its rendering pipeline.
- Demonica Shader: Tested and confirmed working with Complementary Reimagined.
- Compatibility with forks such as Actinium, Pintonium, and Impetus is not guaranteed.
Incompatibilities
Pulsar completely replaces the lighting engine and is incompatible with other lighting engine mods.
- Alfheim
- Phosphor
- Hesperus
- Starlight-1.12
- OptiFine: Use Celeritas instead. Demonica Shader provides shader support, while Celeritas Extra and Celeritas Leaf Culling should cover the additional video options.
- The Aether II: Use The Aether II: Phosphor Not Included instead.
Configuration
config/pulsar.cfg: Selects the lighting mode and configures additional features.
lightingMode: RGB (default, RGB colored lighting) or SCALAR (conventional, non-colored lighting).
rgbGameplayLight: RGB_MAX (default, uses the brightest RGB component as gameplay brightness; per-channel attenuation affects light checks such as mob spawning) or VANILLA (calculates non-colored lighting separately for gameplay light checks).
rgbBlendMode: Includes an optional MAXIMUM mode that combines block and sky light by taking the brightest value per channel. Full daylight stays neutral around colored sources. This controls normal rendering; shader packs handle their own shading.
debug.traceLightUpdates: Opt-in diagnostics for lighting queues, render requests, and Celeritas rebuilds. Logs a bounded summary every 200 client ticks; caller and position samples cover 1 in 64 requests.
config/pulsar-colors.cfg: Defines light source colors.
config/pulsar-filters.cfg: Defines attenuation for each RGB channel.
Mods with RGB presets
Pulsar includes RGB presets for selected light sources from the following mods:
- Actually Additions
- Advanced Chimneys
- Applied Energistics 2
- Ars Magica 2: Rekindled
- BiblioCraft
- Biomes O' Plenty
- Botania
- BuildCraft
- Charm
- Chisel
- Coloured Sea Lanterns
- Deep Mob Learning
- Embers / Embers Construct
- Ender IO
- Exotic Birds
- Extra Utilities 2
- Forestry
- Future MC
- Galacticraft
- GregTech CE Unofficial (GTCEu)
- Immersive Engineering
- Inspirations
- Mekanism / Mekanism Generators
- Natura / Natura Legacy
- NetherEx
- OpenComputers
- Pam's HarvestCraft
- ProjectRed
- Quark
- Railcraft
- TAIGA
- Thaumcraft
- Thermal Expansion
- Thermal Foundation
- Tinker I/O
- Tinkers' Construct
- Twilight Forest
Benchmarks
Measured on 2026-10-30 with Minecraft 1.12.2 / Cleanroom 0.6.13-alpha, comparing vanilla lighting, Alfheim 1.6, and Pulsar 0.6.0 in SCALAR and RGB (RGB_MAX) modes.
The charts measure dedicated-server latency from a block change through completed lighting, including the completion adapter. Each value is the median of four fresh-JVM run means; whiskers show the minimum and maximum. The CPU is a Ryzen AI MAX+ 395, with Java 25 and a fixed 4 GiB heap. Lower is better; axes use a logarithmic scale.


Vanilla passes the open-sky block-light test, but fails the roof fixture's initial stored sky-light validation, so no vanilla sky-update time is scored. RGB computes additional colored-light information. These repeated, individually awaited updates do not measure FPS, chunk generation, or concurrent update throughput.
See the measured values and run ranges and raw measurement results for the full comparison.
See lighting validation notes for compatibility probes and the opt-in empty-section experiment.
Credits
- Starlight: The foundation for the lighting engine's architecture and core algorithms.
- SuperNova: The source of the ported lighting engine, per-world task management, and packed RGB propagation code.
- Alfheim: A reference for various lighting bug fixes.
- CleanroomDevEnv:
- CleanroomVersioning: Build plugin for version management.
- TokenEnvoy: Build plugin for embedding metadata at build time.
评论 0
登录后参与评分
还没有评论,来抢沙发吧