Forge 已不再受支持,下载文件按原样提供。
此后,我们仅会为 Fabric 版 Phosphor 提供更新。您可以前往 新的 CurseForge 页面 下载 Fabric 版的 Phosphor。本页面提供的版本不再受支持,也不会收到更新。如果您决定使用它们,请自便!
Phosphor for Forge
Phosphor 是一款 Minecraft 模组,旨在优化游戏中效率最低的部分之一——光照引擎。它同时在客户端和服务器端运行,并且可以安装在服务器上,无需客户端也安装该模组。使用 Phosphor,在某些维度中游戏生成区块的时间可减少一半,并且在穿越世界时经历的帧率卡顿也会显著减少。这是一个在单人游戏或大型多人服务器中提升性能的不妥协方案,且不会改变原版游戏的任何功能或行为。
如果您还没有使用的话,Lithium(另一款优化模组)与 Phosphor 搭配效果极佳,且完全兼容。
听起来好得令人难以置信?Phosphor 已经默认启用并随广为人知的 Aether II 模组一起发布。可以在这里查看,也许考虑今天就安装上吧!
安装方法
Minecraft 1.15+ 的 Forge:您必须将 MixinBootstrap 1.0.2(或更高版本) 下载并安装到您的 mods 文件夹中。之后,安装 Phosphor 就像安装任何其他 Forge 模组一样简单,只需将其放入您的 mods 文件夹即可。
Minecraft 1.12 的 Forge:不需要额外的依赖项,只需像其他 Forge 模组一样,将模组放入您的 mods 文件夹即可。
您无需创建新世界即可利用该模组的优势。
它是如何工作的?
对于技术爱好者,展开下面的折叠区域以了解我们究竟做了什么来提升性能。请注意,这适用于 Minecraft 1.12 的版本,相对于 Minecraft 1.15+ 而言已过时。
负责在世界中传播光照变化的代码已被完全重写,比原版实现高效得多。
光照更新会被推迟到查询其影响的区域时才执行。这使得区块的光照更新可以批量处理,并显著减少了区域内重复计划的光照更新次数。光照更新批处理为拥有大量遮挡阳光的植被的模组维度(如暮色森林)的世界生成时间提供了难以置信的缩减,同时仍为原版生成和其他模组维度提供了显著的改进。
垂直轴上的天光传播已修复,以考虑来自相邻区块的天光入射,修复了在世界生成以及涉及大量方块的操作过程中产生的一系列光照问题。
当光照数据非平凡时(即并非完全由天光照亮),现在会将光照数据发送给客户端用于空的区块部分。这修复了一些天空空段中光照显示不正确的错误。
通过修复原版光照引擎实现中的各种错误,许多之前在放置或重新照亮方块时执行的昂贵检查现在被跳过,从而显著降低了这些操作的开销。
Phosphor 在过去几个月里已经成熟,因此模组不兼容性和错误非常罕见。
该模组不做什么?
虽然这是对原版光照引擎实现的重大改进,但它并未对 Minecraft 中光照模型的工作方式做出任何更改。用通俗的话来说,此模组不会改变光照的渲染方式(除非修复了错误),也不会为 Minecraft 添加新功能。这使得该模组无需在对端的客户端或服务器上安装即可工作。Phosphor 提供的修复和优化专门针对改善光照引擎,使其保持小巧且自成一体。此模组并不能治愈所有的世界生成延迟或客户端小故障,因为光照只是其中的一部分。
模组兼容性
OptiFine 兼容性
Phosphor 与 OptiFine 完全兼容,包括 OptiFine 实现的动态光照功能。
OpenCubicChunks 兼容性
由于 OpenCubicChunks 实现了自己的光照传播系统,Phosphor 不幸与该模组根本不相容。
DynamicLights 兼容性
独立版 Forge 模组 DynamicLights 与 Phosphor 同时安装时将无法正常运行。有关更多信息,请参阅相关的 GitHub Issue。
Albedo 兼容性
Albedo 和 Phosphor 都实现了各自的照明系统,这会导致 Albedo 的灯光系统被覆盖。虽然将 Phosphor 与 Albedo 一起安装不会导致游戏崩溃,但彩色灯光将无法正常工作。未来可能会添加支持,但目前仍需进行研究。
SpongeForge 兼容性
Phosphor 已在 Minecraft 1.12.2 的最新版本 SpongeForge 上测试通过,但你必须使用最新版的 SpongeForge(1.12.2-2838-7.1.8-RC3844 或更高版本)以及最新版的 Phosphor(0.2.3+)。如果使用旧版本的 SpongeForge,Phosphor 将拒绝运行。此外,你必须在 Sponge 的配置文件中禁用异步光照功能,否则性能将会下降。
其他 Forge 模组
目前,我没有发现与其他任何 Forge 模组的兼容性问题!Phosphor 不应与未修改游戏光照引擎的模组发生冲突。如果你遇到了兼容性问题,请在项目的问题追踪器中报告。
整合包权限
这是一个在 CurseForge 上免费且开源的项目,因此——当然你可以将其包含在你的整合包中!虽然不是必须的,但如果你在模组列表或致谢页面中链接回 Phosphor 的项目页面和 Patreon 页面,我们将不胜感激。
特别感谢
如果没有 Mathe172 和 PhiPro95 的贡献,本模组是不可能实现的。本模组的部分组件灵感来源于他们之前的作品,并基于其工作开发。
问题反馈
请使用页面顶部链接提供的问题追踪器来报告 Bug、崩溃及其他问题。CurseForge 评论区不是报告此类问题的地方,在那里留言很可能只会收到让你转至问题追踪器的回复。
Forge is no longer supported and downloads are provided as-is.
Going forward, we will only provides updates to Phosphor for Fabric. You can download Phosphor for Fabric over on the newer CurseForge page. The releases on this page are unsupported and will not receive updates. You are on your own if you decide to use them!
Phosphor for Forge
Phosphor is a Minecraft mod which works to optimize one of game's most inefficient areas-- the lighting engine. It works on both the client and server, and can be installed on servers without requiring clients to also have the mod. With Phosphor, the amount of time the game takes to generate chunks can be halved for some dimensions, and frame stuttering experienced while traversing the world can be significantly reduced. It's a no-compromises solution for improving performance either in single-player or large multi-player servers, and changes no features or behaviors of the vanilla game.
If you aren't using it already as well, Lithium (another optimization mod) pairs great with Phosphor and is fully compatible.
Sounds too good to be true? Phosphor has already shipped enabled by default in the very widely known Aether II mod. Check it out here, and maybe considering installing it today!
Installation
Forge on Minecraft 1.15+: You must download and install MixinBootstrap 1.0.2 (or newer) to your mods folder. Afterwards, installing Phosphor is as simple as installing any other Forge mod, simply drop it into your mods folder.
Forge on Minecraft 1.12: No extra dependencies are required, simply drop the mod into your mods folder like any other Forge mod.
You do not need to create new worlds in order to take advantage of the mod.
How does it work?
For the technically inclined, expand the spoiler below to see what exactly we do to improve performance. Note that this pertains to the version for Minecraft 1.12 and is outdated in lieu of Minecraft 1.15+.
The code responsible for propagating light changes through the world has been completely rewritten to be significantly more efficient than the vanilla implementation.
Light updates are postponed until the regions they touch are queried. This allows light updates for blocks to be batched together and reduces the number of duplicated scheduled light updates for an area significantly. Light update batching provides an unbelievable reduction to world generation time for modded dimensions like the The Twilight Forest with lots of light-occluding foliage while still providing significant improvements for vanilla generation and other modded dimensions.
Skylight propagation on the vertical axis has been fixed to take into account incoming skylight from neighboring chunks, fixing a variety of lighting issues created during world generation and operations involving large volumes of blocks.
Light data is now sent to the client for empty chunk sections when it is non-trivial (i.e. not completely lit by skylight.) This fixes a few bugs where light would appear incorrect in empty sections of the sky.
Through fixing various errors in vanilla's lighting engine implementation, many expensive checks previously performed when placing or relighting blocks are now skipped, reducing the overhead of these operations significantly.
Phosphor has had a lot of time to mature the last few months, and as such, mod incompatibilities and bugs are very rare.
What doesn't the mod do?
While this is a significant improvement of vanilla's lighting engine implementation, it does not make any changes to how the light model in Minecraft works. In layman's terms, this mod does not change how light is rendered (except where bugs are fixed) or add new features to Minecraft. This allows the mod to work without being installed on the opposite end client or server. The fixes and optimizations provided by Phosphor are specific to improving the lighting engine, keeping it small and self-contained. This mod doesn't cure all world generation lag or client-side hiccups, as lighting is only one part of the equation.
Mod compatibility
OptiFine compatibility
Phosphor is fully compatible with OptiFine, including the Dynamic Lights feature implemented by OptiFine.
OpenCubicChunks compatibility
Due to the fact that OpenCubicChunks implements its own light propagation system, Phosphor is unfortunately fundamentally incompatible with this mod.
DynamicLights compatibility
DynamicLights (the standalone Forge mod) will not function correctly with Phosphor installed. Please see the relevant GitHub issue for more information.
Albedo compatibility
Both Albedo and Phosphor implement their own lighting system, causing Albedo's light system to be overwritten. While installing Phosphor alongside Albedo will not crash the game, it will prevent colored lights from working. In the future, it may be possible to add support, but research is needed.
SpongeForge compatibility
Phosphor has been tested to work with the latest versions of SpongeForge on Minecraft 1.12.2, but you must use the latest releases of SpongeForge (1.12.2-2838-7.1.8-RC3844 or newer) and the latest releases of Phosphor (0.2.3+.) Phosphor will refuse to run if an older version of SpongeForge is being used. Additionally, you must disable asynchronous lighting in Sponge's configuration file or you will suffer degraded performance.
Other Forge mods
Currently, I'm not aware of incompatibility issues with any other Forge mods! Phosphor shouldn't cause conflicts with mods which do not modify the game's lighting engine. If you run into an compatibility issue, please report it on the project's issue tracker.
Modpack Permissions
This is a free and open-source project on CurseForge, and as such-- of course you can include it in your modpack! While not required, it's much appreciated if you link back to Phosphor's project page and Patreon in your mods list or credits page.
Special thanks
This mod would not have been possible without the contributions made by Mathe172 and PhiPro95. Some components of this mod are inspired and/or based off their previous work.
Reporting issues
Please use the issue tracker linked at the top of the page to report bugs, crashes, and other issues. The Curseforge comments section is not the place to report these kinds of problems and will likely result in you being asked to forward it to the issue tracker.
评论 0
登录后参与评分
还没有评论,来抢沙发吧