Lazy Chunk Load
原版区块加载系统会一次性调度玩家周围的大量区块,导致服务器 CPU 瞬间过载和 TPS 崩溃。 Lazy Chunk Load 改进了这一过程:它像水龙头一样控制区块加载速度——CPU 繁忙时自动调低,空闲时放开——让探索新地形不再卡顿。
模组功能
? 防卡顿探索
安装此模组后,服务器 会根据当前 CPU 使用率自动调整区块加载频率。低负载时全速运行,负载飙升时自动降速——全程保持 TPS 稳定。
- 它不会加快区块加载速度——而是让加载更平滑。牺牲一点瞬时速度,换取无卡顿的体验。
- 真正的预防性措施,而非事后补救。
? 后台预加载
当你静止不动时,模组 会自动利用闲置 CPU 预加载你周围的未生成区块。
优先级:脚下的区块优先,其次是视线方向的区块,然后是两侧和后方的区块。
- 默认启用,待机时即可工作。
- CPU 繁忙时自动暂停——绝不抢占资源。
- 每 5 秒向日志输出状态信息。
?️ 额外保护机制
- 登录预热:加入世界后的前 10 秒内不设限制,确保初始地形快速加载。
- 保存安全:在世界保存期间自动暂停所有区块加载,防止存档卡死。
- 紧急绕过:当玩家踏入未加载的区块时,所有限制被绕过,该区块立即加载。
- 热点区块追踪:频繁访问的区块会被标记为热点;预加载会延长它们的保留时间。
- 维度白名单/黑名单:通过
dimension_blacklist/dimension_whitelist限制预加载范围,避免在自定义维度中浪费 CPU。
安装方法
将其放入 mods 文件夹即可开箱即用,无需任何配置。仅服务端需要安装;客户端无需安装。
单人游戏同样完美支持。
| 平台 | 支持版本 |
|---|---|
| Fabric | 1.21.x |
| Fabric | 26.1+ |
| Forge | 1.20.1 |
| NeoForge | 1.21.1 |
? 完全兼容 C2ME、Lithium 和 VulkanMod 等优化模组。不修改区块生成算法——仅调整加载节奏。
?️ 自动检测 Chunky 预生成任务,并在生成期间解除 CPU 限制以实现全速运行;完成后自动恢复。
监控日志
每 5 秒会在 logs/latest.log 中记录一行状态信息:
[LazyChunkLoad] Tick:1200 CPU:45% Sched:3/t Warmup:N Preload:ON Main:OK
| 字段 | 含义 |
|---|---|
Tick |
当前刻数 |
CPU |
CPU 使用率百分比 |
Sched |
上一刻加载的区块数 |
Warmup |
Y=预热中 / N=正常 |
Preload |
ON=激活 / OFF=禁用 / PAUSED=CPU 过高 |
Main |
OK=全速 / SLOW=限流 |
配置说明
配置文件位于 config/lazychunkload.json(自动生成,修改后立即生效)。
如果你只想正常使用模组,无需阅读以下内容——默认值已经是最佳实践。
? 完整配置参考(点击展开)
| 选项 | 默认值 | 描述 |
|---|---|---|
cpu_threshold |
0.85 | 限流的 CPU 使用阈值(0~1,数值越高越宽松) |
warmup_ticks |
200 | 登录后跳过限制的刻数(20 刻 = 1 秒) |
preload_enabled |
true | 启用后台预加载 |
preload_radius |
64 | 预加载半径(以区块为单位) |
preload_delay_seconds |
1 | 静止多少秒后开始预加载 |
distance_weight |
0.5 | 距离优先级权重(越近优先级越高) |
direction_weight |
0.4 | 方向优先级权重(面向前方优先级更高) |
aging_weight |
0.1 | 老化优先级权重(长时间未加载优先级更高) |
direction_multiplier |
5.0 | 方向奖励乘数 |
aging_factor_ms |
10000 | 多少毫秒被视为“已老化” |
log_loading |
false | 向控制台记录详细信息 |
performance_tips |
true | 当 CPU 或 MSPT 超过阈值时输出调试日志(不再发送到聊天栏) |
还有一个运行时配置文件 config/lazychunkload-runtime.json:
| 选项 | 默认值 | 描述 |
|---|---|---|
limit_enabled |
false | 设为 true 可完全禁用 CPU 限制(全速模式) |
tips_disabled |
false | 设为 true 可禁用聊天中的性能提示 |
工作原理
- 每刻检查一次 CPU 使用率(缓存时间为 1 秒,开销几乎为零)。
- CPU 低于 85%:区块正常加载,无任何限制。
- CPU 高于 85%:自动降低区块加载频率——CPU 越高,限制越强,但在最坏情况下,每 0.2 秒仍允许至少加载一次——确保地形永远不会永久卡住。
- 当你静止不动时:扫描你周围的未生成区块,并按优先级批量加载。
- 当你正在探索时:踏入空区块会触发紧急绕过,立即应用无限制加载。
Lazy Chunk Load
The vanilla chunk loading system schedules a massive number of chunks around the player all at once, causing instant server CPU overload and TPS collapse. Lazy Chunk Load improves this process: it controls chunk loading speed like a faucet — automatically turning down when the CPU is busy and opening up when idle — so exploring new terrain no longer stutters.
What This Mod Does
? Anti-Lag Exploration
With this mod installed, the server automatically adjusts chunk loading frequency based on current CPU usage. Full speed when usage is low, automatically slows down when usage spikes — TPS stays rock-solid throughout.
- It doesn't make chunk loading faster — it makes it smoother. Trade a bit of instant speed for a stutter-free experience.
- True prevention, not an after-the-fact fix.
? Background Preloading
When you're standing still, the mod automatically uses idle CPU to preload ungenerated chunks around you.
Priority: chunks under your feet first, then in your line of sight, then to the sides and behind.
- Enabled by default, works while idling.
- Automatically pauses when the CPU is busy — never steals resources.
- Status output to log every 5 seconds.
?️ Additional Protections
- Login Warmup: No limits for the first 10 seconds after joining a world, ensuring initial terrain loads quickly.
- Save Safety: Automatically pauses all chunk loading during world saves to prevent save stalling.
- Emergency Bypass: When the player steps on an unloaded chunk, all limits are bypassed and the chunk loads immediately.
- Hotspot Chunk Tracking: Frequently-accessed chunks are marked as hotspots; preload extends their retention time.
- Dimension Whitelist/Blacklist: Restrict preloading scope via
dimension_blacklist/dimension_whitelistto avoid wasting CPU in custom dimensions.
Installation
Drop it into your mods folder — no configuration needed to work out of the box. Server-side only; clients do not need to install it.
Singleplayer works perfectly fine too.
| Platform | Supported Versions |
|---|---|
| Fabric | 1.21.x |
| Fabric | 26.1+ |
| Forge | 1.20.1 |
| NeoForge | 1.21.1 |
? Fully compatible with optimization mods like C2ME, Lithium, and VulkanMod. Does not modify chunk generation algorithms — only adjusts loading rhythm.
?️ Automatically detects Chunky pre-generation tasks and lifts CPU limits during generation for full speed; restores automatically when complete.
Monitoring
Every 5 seconds a status line is logged to logs/latest.log:
[LazyChunkLoad] Tick:1200 CPU:45% Sched:3/t Warmup:N Preload:ON Main:OK
| Field | Meaning |
|---|---|
Tick |
Current tick count |
CPU |
CPU usage percentage |
Sched |
Chunks loaded last tick |
Warmup |
Y=Warming up / N=Normal |
Preload |
ON=Active / OFF=Disabled / PAUSED=CPU too high |
Main |
OK=Full speed / SLOW=Throttled |
Configuration
The config file is located at config/lazychunkload.json (auto-generated, takes effect immediately on changes).
If you just want to use the mod normally, you don't need to read any of this — the defaults are already best practice.
? Full Configuration Reference (click to expand)
| Option | Default | Description |
|---|---|---|
cpu_threshold |
0.85 | CPU usage threshold for throttling (0~1, higher = more lenient) |
warmup_ticks |
200 | How many ticks after login to skip limits (20 ticks = 1 second) |
preload_enabled |
true | Enable background preloading |
preload_radius |
64 | Preload radius (in chunks) |
preload_delay_seconds |
1 | Seconds of standing still before preloading begins |
distance_weight |
0.5 | Distance priority weight (closer = more priority) |
direction_weight |
0.4 | Direction priority weight (forward-facing = more priority) |
aging_weight |
0.1 | Aging priority weight (long-unloaded = more priority) |
direction_multiplier |
5.0 | Direction bonus multiplier |
aging_factor_ms |
10000 | How many milliseconds count as "aged" |
log_loading |
false | Log detailed info to console |
performance_tips |
true | Output debug log when CPU or MSPT exceeds threshold (no longer sent to chat) |
There is also a runtime config at config/lazychunkload-runtime.json:
| Option | Default | Description |
|---|---|---|
limit_enabled |
false | Set to true to completely disable CPU limits (full speed) |
tips_disabled |
false | Set to true to disable chat performance tips |
How It Works
- Checks CPU usage once per tick (1-second cache, near-zero overhead).
- CPU below 85%: chunks load normally, no restrictions.
- CPU above 85%: chunk loading frequency is automatically reduced — the higher the CPU, the stronger the limit, but even in the worst case, at least one pass is allowed every 0.2 seconds — ensuring terrain never gets permanently stuck.
- When you're standing still: background scanning of ungenerated chunks around you, loaded in prioritized batches.
- When you're exploring: stepping on an empty chunk triggers an immediate emergency bypass with no limits applied.
下载 Lazy Chunk Load
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lazy Chunk Load
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lazy Chunk Load
下载 Lazy Chunk Load
下载 Lazy Chunk Load
下载 Lazy Chunk Load
下载 Lazy Chunk Load
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lazy Chunk Load
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Lazy Chunk Load
下载 Lazy Chunk Load
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
暂无更新日志
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧