DoesPotatoTick — 概述
DoesPotatoTick 通过暂停(“冻结”)那些不需要每 tick 更新的远距离实体来提升性能。借助可配置规则和安全性检查,它能降低服务器 CPU 负载,并在保持正常游戏玩法的同时提高客户端 FPS。
1. 目的
Minecraft 每秒更新所有实体 20 次,这在拥有大型世界、大量玩家或重型整合包时可能会使服务器过载。原版设置无法区分重要实体和无关紧要的实体。 DoesPotatoTick 引入了一套受控的系统,仅更新必要的实体。
2. 核心机制
每个实体都被分配一个 可 ticking(tickable) 状态。服务器基于位置、类别和上下文在每个 tick 评估此状态;客户端可选择跳过渲染非 ticking 实体。
2.1 基于距离的激活
- 玩家定义一个活跃区域(以区块为单位的可配置半径)。
- 位于该区域之外的实体将成为被暂停的候选对象。
- 区域仅在玩家在不同区块间移动、登录或切换维度时更新。
2.2 维度与领地支持
- 优化可以限制在选定的维度内。
- 在被领地的实体(FTB Chunks, OpenPartiesAndClaims)始终会被 ticking。
- 如果未安装领地模组,玩家会收到通知。
2.3 实体例外
某些实体永远不会被冻结:
- 玩家、下落中的方块、原版 Boss
- 广泛列出的模组 Boss 和机械系统
- 整个模组可以被列入白名单 列表会在配置更改时自动重新加载。
2.4 过滤规则
可配置规则允许忽略或包含:
- 敌对生物、动物、袭击者
- 掉落的物品
- 投射物(具有可选逻辑以强制命中目标进行 ticking) 濒死实体被允许完成其死亡序列。
2.5 怪物农场检测
定期扫描区块密度;如果检测到类似农场的模式,受影响实体会被强制 ticking 以确保农场继续正常运行。
2.6 袭击处理
在活跃的袭击期间,优化可以根据配置禁用或调整。
3. 客户端功能
3.1 渲染跳过
非 ticking 实体可能会被隐藏以提高 FPS。 拉弓时会暂时重新启用渲染,以避免瞄准问题。
3.2 Embeddium 集成
当安装 Embeddium 时,添加专用的配置界面。
3.3 同步
轻量级数据包告知客户端哪些实体应该显示。
4. 配置
- doespotatotick-common.toml:核心服务器行为
- doespotatotick-client.toml:渲染控制
- 默认值优先考虑安全性和兼容性。
- 所有逻辑都在服务器线程上运行;更改在 ticks 和重载之间一致应用。
5. 让 DPT 变得更好
当您:
- 认为某种特定类型的实体永远不应停止 ticking
- 有配置选项请求
- 由于实体的 ticking 冻结遇到意外情况
请毫不犹豫通过 GitHub Issues 或电子邮件 670067575@qq.com 联系我
6. 设计考量
该模组旨在:
- 在不改变游戏玩法的情况下减少服务器负载
- 保留 Boss 战、农场和模组机制
- 与现有模组生态系统保持兼容
其行为类似于一个受控的、感知上下文的调度系统,而不是一个简单的“禁用远处实体”开关。
7. 历史与演变
DoesPotatoTick 并非一开始就是你现在看到的这种精良的模组。
它最初是作为 Txni 的 DoesItTick 的一个分支开始的,纯粹是为了 Lithium/RoadRunner 生态系统创建的临时兼容性修复。原始版本坦白说相当粗糙:只有寥寥几个配置选项,并且每个实体在每个 tick 都会遍历所有在线玩家来检查“是否有人足够近?”
那是 O(实体数 × 玩家数) 每 tick —— 在一个拥有 20k 个实体和 50 名玩家的服务器上,这本身就增加了每秒数百万次不必要的迭代。纯粹的残酷。
旧的 dpt$checkAlwaysTick() 同样令人痛苦:它在每个 tick 对所有实体运行昂贵的配置和标签检查,没有任何缓存。
也没有客户端渲染修复——冻结的实体只是卡顿并原地“鬼影”,看起来损坏了。
当我们更新模组后,一切发生了变化:
- 用当前的PlayerTracker替换了天真的玩家循环:这是一个维度 → 区块 → Y 范围的空间映射,仅在移动时惰性更新。复杂度从 O(n×m) 降至每次更新 essentially O(玩家数)。
alwaysTick标志现在在实体类型注册时计算一次并永久缓存。- 添加了适当的网络数据包和客户端剔除(加上拉弓的安全阀),这样冻结的实体会干净地消失而不是出现故障。
- 怪物农场检测、袭击意识、领地模组集成、Embeddium GUI……这些当时都不存在。
今天的 DoesPotatoTick 已不再是“又一个实体淘汰模组”。它是经过多次全面重构、以及对正确实现方式的执着追求的成果——同时确保不会破坏你的 Boss、农场或 Create 机械装置。
感谢 Txni 提供了最初的灵感,也感谢每一位测试者和贡献者,以及 Grok 和 ChatGPT 在帮助我设计、撰写并润色本描述时的支持(独自撰写 README 时真的感觉精疲力竭 lol)。
享受丝滑般的 tick 处理(或完全无 tick)吧!
DoesPotatoTick — Overview
DoesPotatoTick improves performance by suspending (“freezing”) distant entities that do not need to update every tick. Through configurable rules and safety checks, it reduces server CPU load and may also increase client FPS while preserving normal gameplay behavior.
1. Purpose
Minecraft updates every entity 20 times per second, which can overload servers with large worlds, many players, or heavy modpacks. Vanilla settings cannot distinguish important entities from irrelevant ones. DoesPotatoTick introduces a controlled system that updates only what is necessary.
2. Core Mechanism
Each entity is assigned a tickable state. The server evaluates this state every tick based on location, category, and context; the client optionally skips rendering non-tickable entities.
2.1 Distance-Based Activation
- Players define an active region (configurable radius in chunks).
- Entities outside this region become candidates for suspension.
- Regions update only when a player moves between chunks, logs in, or changes dimensions.
2.2 Dimension and Claim Support
- Optimization can be restricted to selected dimensions.
- Entities in claimed areas (FTB Chunks, OpenPartiesAndClaims) are always ticked.
- Players are notified if no claim mod is installed.
2.3 Entity Exceptions
Certain entities never freeze:
- Players, falling blocks, vanilla bosses
- A broad list of modded bosses and mechanical systems
- Entire mods can be whitelisted The list reloads automatically on configuration changes.
2.4 Filtering Rules
Configurable rules allow ignoring or including:
- Hostile mobs, animals, raiders
- Dropped items
- Projectiles (with optional logic to force-hit targets to tick) Dying entities are allowed to complete their death sequence.
2.5 Mob Farm Detection
Periodically scans chunk densities; if a farm-like pattern is detected, affected entities are forced to tick to ensure farms continue functioning.
2.6 Raid Handling
During active raids, optimization can be disabled or adjusted according to configuration.
3. Client Features
3.1 Render Skipping
Non-tickable entities may be hidden to improve FPS. Drawing a bow temporarily re-enables rendering to avoid aiming issues.
3.2 Embeddium Integration
Adds a dedicated configuration screen when Embeddium is installed.
3.3 Synchronization
A lightweight packet informs the client which entities should be displayed.
4. Configuration
- doespotatotick-common.toml: core server behavior
- doespotatotick-client.toml: rendering controls
- Defaults prioritize safety and compatibility.
- All logic runs on the server thread; changes apply consistently across ticks and reloads.
5. Make DPT Better
When you:
- Feel that an specific entity type should never stop ticking
- Have a config option request
- Encounter unexpected situation because of entities' ticking freezing
Don't hesitate to contact me by GitHub Issues or email 670067575@qq.com
6. Design Considerations
The mod aims to:
- Reduce server load without altering gameplay
- Preserve boss fights, farms, and modded mechanics
- Remain compatible with existing mod ecosystems
Its behavior resembles a controlled, context-aware scheduling system rather than a simple “disable distant entities” toggle.
7. A Bit of History & Evolution
DoesPotatoTick didn’t start as the polished mod you see today.
It began life as a fork of Txni’s DoesItTick, created purely as a stop-gap compatibility fix for the Lithium/RoadRunner ecosystem. The original version was, frankly, quite crude: only a handful of config options, and every single entity, on every single tick, looped through all online players to check “is anyone close enough?”
That’s O(entities × players) per tick — on a 20k-entity server with 50 players, that alone added millions of unnecessary iterations per second. Pure brutality.
The old dpt$checkAlwaysTick() was equally painful: it ran expensive config and tag checks on every entity every tick, with zero caching.
No client-side rendering fixes either — frozen entities would just stutter and “ghost” in place, looking broken.
Everything changed when we updated the mod:
- Replaced the naïve player loop with the current PlayerTracker: a dimension → chunk → Y-range spatial map, updated lazily only on movement. Complexity dropped from O(n×m) to essentially O(players) per update.
alwaysTickflags are now computed once at entity-type registration and cached forever.- Added proper network packets and client-side culling (plus the bow-drawing safety valve) so frozen entities simply vanish cleanly instead of glitching.
- Mob-farm detection, raid awareness, claim-mod integration, Embeddium GUI… none of these existed back then.
Today’s DoesPotatoTick is no longer “just another entity culling mod.” It’s the result of multiple full refactors and an obsession with doing it right — without ever breaking your bosses, farms, or Create contraptions.
Thanks to Txni for the original spark, and to every tester and contributor, as well as Grok and ChatGPT for helping me design, write and polish this description (I'm just feeling dead when writing readme by myself lol).
Enjoy the buttery-smooth ticks (or lack thereof)!
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 DoesPotatoTick?
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
5.6.2
修复
5.6.3
修复 Embeddium 视频设置无法正常工作的情况
5.6.4
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧