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、区块生成或并发更新吞吐量。
请参阅 测量值和运行范围 以及 原始测量结果,以获取完整的对比信息。
有关兼容性探测和可选的空区块实验,请参阅 光照验证说明。
鸣谢
- Starlight:光照引擎架构与核心算法的基础。
- SuperNova:移植后的光照引擎、按世界管理的任务处理以及打包的 RGB 传播代码的来源。
- Alfheim:多种光照修复方案的参考来源。
- CleanroomDevEnv:
- CleanroomVersioning:用于版本管理的构建插件。
- TokenEnvoy:用于在构建时嵌入元数据的构建插件。
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) orSCALAR(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) orVANILLA(calculates non-colored lighting separately for gameplay light checks).rgbBlendMode: Includes an optionalMAXIMUMmode 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.
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
下载 Pulsar Lighting Engine
修复
- 在原版渲染器中重建详细地形(如密集的 ArchitectureCraft 形状)时,减少帧停顿和直接缓冲区耗尽的问题。
- 修复与 Expanded World Height 在多块更新发送时的冲突。
变更
- 支持由
World.getHeight()报告的具有扩展高度的从零开始的维度。 - 减少重试延迟区块发送时的内存分配,并在初始 RGB 区块光照扫描期间跳过不必要的光照读取。
修复
- 修复当 Celeritas 替换原版地形渲染器时导致的启动崩溃。 已在 Celeritas 2.5.0-dev 和 2.6.0-dev 中验证(#32)。
变更
- 减少 Forge 和 Celeritas 光照计算期间的临时内存分配。 RGB 地形渲染在构建每个网格时会复用附近区块的光照数据。
- 通过在不同颜色通道间共享相同的遮挡数据,并在构建和传输光照数据时避免冗余副本,降低动态光源的内存占用。
- 在加载已保存的 RGB 光照时,通过在某个通道发生变化前共享相同的光照数组来降低内存占用。加快检测全零光照数组的速度,从而优化区块保存过程。
- 借助 Fluidlogged API 3.3.3,通过跳过那些块调色板和存储的流体数据排除了光源的区块,加速初始方块光照的计算。
新增
- 为动态光照添加以下设置项:移动更新频率、玩家与实体光源、活塞携带的方块发出的光、对水敏感的物品的发光,以及点燃的火药和苦力怕的闪光。
更改
- 通过将仅光照更新的调度安排到后台区块分发器上针对现有的原版地形网格执行,减少手持光源行走时的卡顿现象。
- 减少地形渲染期间重复的光照采样,并将 RGB 地形更新限制在受光照值变化影响的区域内。
修复
- 在纯视觉模式下,将手持光源效果应用于 Fancier 和 Fanciest Block Particles 粒子特效。
更改
- 在新配置中将动态光照默认设置为
GAMEPLAY,使移动的光源影响服务器光照检查(例如生物生成)。现有模式设置保持不变。
新增
- 为 SCALAR 和 RGB 模式添加了实验性的动态光源功能。手持或掉落的发光物品(如火把、熔岩桶)以及着火的生物和玩家会照亮周围环境。在 RGB 模式下,染色玻璃会对光线颜色进行过滤。
- 动态光源默认设置为
VISUAL,仅产生视觉效果(类似于 Celeritas Dynamic Lights)。若要在实体生成等检查中包含动态光源的影响,请在服务器配置中将dynamicLights.mode设为GAMEPLAY;若要禁用该功能,请设为OFF。修改后需重启客户端以生效。启用这两种模式均需要兼容的 Pulsar 客户端。
修复
- 在使用光影包时,平滑了相邻 RGB 光源之间的颜色过渡。此修复解决了在 Demonica 0.9.0 和 Complementary Reimagined 中平坦表面上出现的明显色带问题。
新增
- 将 RGB 预设扩展到 20 个模组,以覆盖更多水晶、发光植物、蜡烛、灯笼、工作机械以及发光液体,来源包括 Actually Additions、Botania、Thaumcraft、Quark 和 Thermal Foundation。 预设保留了原生光照等级、基于上下文的开/关行为以及自定义颜色 API。
修复
- 使用实际的石质方块状态注册 Thaumic Augmentation 的 Ancient Light,并添加其发光的结壳石头变体。
- 将 Quark 水晶玻璃板的颜色应用到九个单独注册的玻璃板方块上。
- 防止因失败的照明任务和耗尽的重试次数而将区块标记为就绪,或允许发送不完整的灯光数据并将其保存为有效缓存。
- 在配置的限额处停止 RGB 边缘重试,并向等待的调用者报告重新照明的失败。来自较早重新照明请求的失败不再影响较新的请求。
- 在 VANILLA 玩法的光照模式中,在宣布照明完成之前发布 RGB 颜色数据。
新增
- 为 Mekanism 的发光塑料、精炼方块、充能熔炉、过热元件以及热/气/生物发电机添加工业 RGB 预设。
- 在世界线程中采样 Mekanism Glow Panel 染料颜色与 GTCEu 电缆温度,包括无需更改方块状态即可实现的颜色变化。
- 添加全部 32 种 GTCEu 普通/无边框灯预设,保留亮度、反转、泛光及发光设置。
- 为 Ender IO 的电灯、光源节点、冷火、彩绘萤石、Liquid Sunshine 以及特定染色的透光玻璃/石英添加预设。
- 为 Actually Additions 的彩色灯、微型火把和双熔炉添加预设。所有预设均保留原生亮度及现有的 API/用户覆盖设置。
[0.6.2]
新增
- 为 Fancier Block Particles 和 Fanciest Block Particles 添加 RGB 灯光效果, 包括其自定义批量粒子渲染器。
[0.5.2]
修复
- 防止在使用 Fluidlogged API 时初始区块数据包无限期等待。 跳过原版冗余的随机玩家光照修复请求,否则会在每次发送尝试前创建新的待处理样本。方块/流体更新以及 Thaumcraft 水晶使用的上下文光照门控功能保持正常运行。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
评论 0
登录后参与评分
还没有评论,来抢沙发吧