关于 Liubai
Liubai 是一款客户端图形优化模组。它会监控游戏的运行流畅度,并仔细减少由墙体后方物体、远处细节、粒子效果、阴影和名称标签所引发的图形处理工作。当游戏开始变得卡顿(挣扎)时,Liubai 会逐渐减少绘制远处或次要对象所消耗的工作量。一旦游戏恢复流畅,Liubai 会在性能保持稳定后等待片刻,再逐步恢复细节,从而防止设置帧率目标附近的频繁切换。
Liubai 仅更改客户端图形表现。它不会停止生物或实体的 AI、红石、配方或机器运作,也不会减少服务器端的逻辑处理或提升服务器 TPS(服务器速度)。
Liubai 可以与 Entity Culling 以及 Create / Flywheel 等模组共存使用。
功能特性
基于游戏性能的自动调整
- 根据目标 FPS 和近期的游戏流畅度,在
NORMAL(普通)/HIGH(高)/CRITICAL(严重)三种压力等级之间自动切换; - 在降低压力等级前等待性能稳定,以减少频繁切换;
- 如果游戏自身的帧率限制低于 Liubai 的目标值,Liubai 会使用较低的那个值,以避免错误地保持在高压状态。
对墙体后方物体的细致检查
- 当未安装其他遮挡优化模组时,Liubai 可以使用其自身的检查机制来识别被墙体隐藏的物体;
- 使用游戏记录的真实可见区域来判断每个物体,而不是将所有物体视为相同大小;
- 只有完整的实心方块才算作可靠的遮挡物;当区块未加载、可见区域异常或结果不确定时,物体仍会被绘制;
- 默认情况下,必须确认某物体被隐藏两次后,Liubai 才会暂时停止绘制它;
- 每帧中运行的检查数量有限且耗时有限;过于复杂无法在一帧内完成的检查会延续到下一帧,同时不会丢弃之前已获得的可靠结果;
- 玩家移动后,Liubai 会检查旧墙体是否仍然遮挡视线,并优先处理这些物体,从而减少因所有旧结果突然失效而导致的卡顿。
远处细节与大量相似物体
- 当游戏处于压力状态下时,Liubai 会观察远处物体在屏幕上显示的大小,并处理那些几乎不可见的物体;
- 为远处的掉落物和经验球设定稳定的区域上限,减少因处理顺序变化导致的闪烁;
- 保护重要物体,如玩家、Boss、投射物、载具、发光或燃烧的实体,以及准星指向的物体;
- 在近处的安全范围内,不会因为物体显得太小或相似物体过多而跳过它们。
粒子效果、阴影与名称标签
- 在创建粒子前判断远处的粒子是否需要显示,减少不必要的创建工作;
- 对现有粒子使用建议的限制,并限制每帧可以添加的远处粒子数量;
- 在游戏处于压力状态下时,减少普通实体阴影和名称标签的显示距离;
- 保护重要粒子效果(如爆炸、不死图腾、音爆),以及重要实体的阴影和名称标签。
设置与性能信息
- 提供简体中文和英文的配置界面;
- 可通过 ESC 暂停菜单右上角的“Liubai Settings”按钮直接进入设置;
- 可选的屏幕性能面板(HUD)可显示当前压力等级、活跃的工作模式、每秒未绘制的物体数量、检查隐藏物体及超时检查所花费的时间、粒子状态以及 P95/P99 帧时间(有助于展示最慢的 5% 和 1% 的帧);
- 性能面板默认关闭,可在需要时在设置中启用。
模组兼容性
Entity Culling
默认的遮挡模式为 AUTO:
- 安装了 Entity Culling 时,由 Entity Culling 决定普通物体是否完全被隐藏,Liubai 不再重复相同的墙体可见性检查;
- 未安装 Entity Culling 时,Liubai 使用其自身的细致可见性检查;
- 无论哪种情况,Liubai 均可继续处理微小的远处物体、粒子效果、阴影、名称标签,以及支持模组的远处物体在屏幕上的更新频率。
已测试 Entity Culling 1.10.5 版本。Entity Culling 跳过的物体不计入 Liubai 的性能信息中,因此当两个模组一起使用时,Liubai 显示的“跳过的隐藏物体”数量可能为 0。这是正常现象。
Create 和 Flywheel
以下版本拥有专用支持和测试:
Create 6.0.10
Flywheel 1.0.6
当游戏处于压力状态下时,Liubai 会与 Flywheel 自身的规则配合,使远处的机器在屏幕上更新的频率降低。近处的机器则保持原有的更新速率。Liubai 不会移除或重建 Flywheel 用于绘制机器的对象,也不会停止机器的逻辑运算。
其他 Create / Flywheel 版本不自动视为受支持。如果它们的运行方式与 Liubai 的预期不同,Liubai 将禁用此额外优化,并保持 Flywheel 的原始行为不变,以确保游戏仍能安全启动。
Sable 和 Create Aeronautics
当前的安全兼容模式是针对以下组合设计的,并且已确认这些版本可以共同启动并进入世界:
Sable 2.0.3
Create Aeronautics 1.3.0
Create 6.0.10
Flywheel 1.0.6
Iris
Liubai 使用 Iris 公开提供的信息来判断游戏何时正在渲染阴影。在生成阴影期间,Liubai 避免应用通常用于隐藏物体的视图规则,从而降低生物、其他实体、特殊渲染的方块或原版实体阴影丢失的风险。
Iris 已确认可与 Liubai 协同工作并进入世界。实际光影效果仍需使用不同的光影包进行单独测试,因此这并不意味着所有光影包都完全兼容。
推荐设置
- 进入世界后,从暂停菜单(ESC)右上角打开“Liubai Settings”。
- 将遮挡模式保持为默认的
AUTO设置。 - 使用 Entity Culling 时,不要强制两个模组同时检查普通对象是否被隐藏。
- 要检查优化是否生效,可临时启用屏幕上的性能面板(HUD)。
- Liubai 无需安装在标准专用服务器上。在多人游戏中,仅在客户端安装它即可使用其图形优化功能。
配置文件:
config/liubai-client.toml
常见问题
Can I use Liubai with Entity Culling?
可以。默认的 AUTO 模式由 Entity Culling 决定普通对象是否完全隐藏,从而避免重复检查。Liubai 继续控制对剩余可见对象的图形处理工作。
Does it affect machines, redstone, or entity logic?
不会。Liubai 仅调整客户端的图形以及支持渲染的对象在屏幕上的更新频率。它不会影响游戏逻辑。
Why does Liubai show 0 hidden objects skipped in the performance panel?
当 Liubai 与 Entity Culling 协同工作时,可见性检查由 Entity Culling 执行,Entity Culling 跳过的对象不计入 Liubai 的性能统计信息中。当压力级别仍处于 NORMAL 或附近没有符合条件的远处对象时,其他优化计数器也可能保持为 0。
Why is little change in average FPS after installing Liubai?
结果取决于每位玩家的世界和整合包。在某些情况下,Liubai 可能会带来明显的 FPS 提升,而在其他情况下则可能几乎没有变化或无明显变化。
About Liubai
Liubai is a client-side graphics optimization mod. It watches how smoothly the game is running and carefully reduces the graphics work caused by objects behind walls, distant details, particles, shadows, and name tags. When the game starts to struggle, Liubai gradually reduces the work spent drawing distant or less important objects. Once the game is smooth again, it waits for performance to remain stable before restoring detail step by step, which prevents settings from constantly switching near the target frame rate.
Liubai only changes client-side graphics. It does not stop mob or entity AI, redstone, recipes, or machines, and it does not reduce server-side game processing or improve server TPS (server speed).
Liubai can work alongside mods such as Entity Culling and Create / Flywheel.
Features
Automatic adjustment based on game performance
- Uses the target FPS and recent game smoothness to switch automatically between
NORMAL / HIGH / CRITICALpressure levels; - Waits for performance to remain stable before lowering the pressure level, reducing frequent switching;
- If the game's own frame-rate limit is lower than Liubai's target, Liubai uses the lower value so it does not incorrectly remain in a high-pressure state.
Careful checks for objects behind walls
- When no other occlusion optimization mod is installed, Liubai can use its own checks for objects hidden behind walls;
- Uses the real visible area recorded by the game for each object instead of treating every object as the same size;
- Only complete solid blocks count as reliable cover; objects are still drawn when chunks are not loaded, their visible area is unusual, or the result is uncertain;
- By default, an object must be confirmed as hidden twice before Liubai temporarily stops drawing it;
- Only a limited number of checks can run for a limited amount of time each frame; checks that are too complex to finish continue next frame without discarding an earlier reliable result;
- After the player moves, Liubai checks whether the old wall still blocks the view and gives these objects priority, reducing stutter caused when all old results suddenly become invalid.
Distant details and large groups of similar objects
- When the game is under pressure, Liubai looks at how large a distant object appears on screen and handles objects that are barely visible;
- Uses a stable per-area limit for distant dropped items and experience orbs, reducing flicker caused by changes in processing order;
- Protects important objects such as players, bosses, projectiles, vehicles, glowing or burning entities, and whatever the crosshair is pointing at;
- Inside the nearby safety range, objects are not skipped because they appear too small or because too many similar objects are present.
Particles, shadows, and name tags
- Decides whether a distant particle needs to be shown before creating it, reducing unnecessary creation work;
- Uses a suggested limit for existing particles and limits how many distant particles can be added each frame;
- Reduces the display distance of ordinary entity shadows and name tags when the game is under pressure;
- Protects important particles such as explosions, Totems of Undying, and sonic booms, as well as the shadows and name tags of important entities.
Settings and performance information
- Provides configuration screens in Simplified Chinese and English;
- Opens directly from the “Liubai Settings” button in the upper-right corner of the ESC pause menu;
- An optional on-screen performance panel (HUD) shows the current pressure level, active working mode, number of objects not drawn per second, time spent checking hidden objects and timed-out checks, particle status, and P95/P99 frame times, which help show the slowest 5% and 1% of frames;
- The performance panel is disabled by default and can be enabled in the settings when needed.
Mod compatibility
Entity Culling
The default occlusion mode is AUTO:
- With Entity Culling installed, Entity Culling decides whether ordinary objects are completely hidden, and Liubai does not repeat the same wall-visibility checks;
- Without Entity Culling, Liubai uses its own careful visibility checks;
- In either case, Liubai can continue handling tiny distant objects, particles, shadows, name tags, and how often distant objects from supported mods update on screen.
Entity Culling 1.10.5 has been tested. Objects skipped by Entity Culling are not included in Liubai's performance information, so Liubai's “hidden objects skipped” number may be 0 when both mods are used together. This is normal.
Create and Flywheel
The following versions have dedicated support and testing:
Create 6.0.10
Flywheel 1.0.6
When the game is under pressure, Liubai works with Flywheel's own rules so distant machines update on screen less often. Nearby machines keep their original update rate. Liubai does not remove or rebuild the objects Flywheel uses to draw machines, and it does not stop machine logic.
Other Create / Flywheel versions are not automatically considered supported. If they work differently from what Liubai expects, Liubai disables this extra optimization and leaves Flywheel's original behavior unchanged so the game can still start safely.
Sable and Create Aeronautics
The current safe compatibility mode was made for the following combination, and these versions have been confirmed to start together and enter a world:
Sable 2.0.3
Create Aeronautics 1.3.0
Create 6.0.10
Flywheel 1.0.6
Iris
Liubai uses information made publicly available by Iris to tell when the game is drawing shadows. While shadows are being generated, Liubai avoids applying the normal-view rules that hide objects, reducing the risk that mobs, other entities, specially rendered blocks, or vanilla entity shadows will be missing.
Iris has been confirmed to start with Liubai and enter a world. Actual shadow results still need separate testing with different shader packs, so this does not mean that every shader pack is fully supported.
Recommended settings
- After entering a world, open “Liubai Settings” from the upper-right corner of the ESC pause menu.
- Keep the occlusion mode on the default
AUTOsetting. - When using Entity Culling, do not force both mods to check whether ordinary objects are hidden at the same time.
- To check whether the optimization is active, temporarily enable the on-screen performance panel (HUD).
- Liubai does not need to be installed on a standard dedicated server. For multiplayer, install it only on the client to use its graphics optimizations.
Configuration file:
config/liubai-client.toml
Frequently asked questions
Can I use Liubai with Entity Culling?
Yes. The default AUTO mode lets Entity Culling decide whether ordinary objects are completely hidden, avoiding duplicate checks. Liubai continues controlling the graphics work spent on the remaining visible objects.
Does it affect machines, redstone, or entity logic?
No. Liubai only adjusts client-side graphics and how often supported rendered objects update on screen. It does not stop game logic.
Why does Liubai show 0 hidden objects skipped in the performance panel?
When Liubai is working with Entity Culling, Entity Culling performs the visibility checks, and the objects it skips are not included in Liubai's performance information. Other optimization counters may also remain at 0 when the pressure level is still NORMAL or when there are no qualifying distant objects nearby.
Why is there little change in average FPS after installing Liubai?
The result depends on each player's world and modpack. Liubai may provide a noticeable FPS improvement in some situations and little or no noticeable change in others.
下载 Liubai
下载 Liubai
下载 Liubai
下载 Liubai
下载 Liubai
下载 Liubai
下载 Liubai
下载 Liubai
下载 Liubai
下载 Liubai
- 发布适用于 Minecraft 26.1.2 的 NeoForge 版本。
- 修复了因烟花粒子被剔除而导致的间歇性崩溃问题。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
评论 0
登录后参与评分
还没有评论,来抢沙发吧