Super Factory Manager Optimizer An unofficial, server-friendly add-on for Super Factory Manager (SFM) 4.34.0+ — Minecraft 1.20.1, Forge.
Do you run large SFM factories that lag on every redstone pulse? This mod is for you.
SFM is a powerful logistics mod, but on big setups the built-in ROUND ROBIN mode can be a major source of tick lag. This add-on completely rewrites how that distribution is executed — without changing your programs, labels, cables, or inventories.
What it does
- ROUND ROBIN → Instant Even Split
The original mode "rotates" one destination per tick and probes every pair over and over. Now, items / fluids / energy / gases are split mathematically across all destinations in a single tick (base = total ÷ n, with the remainder spread to the first few targets), so the whole distribution completes instantly instead of stuttering across many ticks. 2. Smart Sleep & Slot Memory
Full destinations and empty sources temporarily "sleep" for a configurable cooldown, so the network stops re-checking slots that can't move anything. The network remembers the last slot it successfully used, avoiding a full rescan of huge inventories every tick. 3. Faster default (non-round-robin) paths
Ordinary OUTPUT statements keep their original greedy behavior, but redundant simulated insertions are skipped and slot scanning is reduced. What does NOT change SFML programs, syntax, manager GUI, disks, labels — all unchanged. Round robin semantics are intentionally different: instead of one destination per tick, all targets now receive their share every tick. Recipes like output 10 to each ... keep working as before; you may see machines fill more evenly and faster. If you prefer the original behavior, disable enableEvenSplit in the server config (sfm-optimizer-server.toml). Configuration (server config) enableEvenSplit (default true) — master switch for even-split distribution. sleepCooldownTicks (default 20) — how many ticks a full/empty slot sleeps before re-checking. enableSlotMemory (default true) — remember last successful slot to reduce rescanning. Requirements & compatibility Minecraft 1.20.1, Forge 47.4+, Super Factory Manager 4.34.0 (older 4.x may work; tested against 4.34.0). Client and server. Licensed under GPLv3. 超级工厂管理器优化 (Super Factory Manager Optimizer) Super Factory Manager (SFM) 的非官方性能优化附属 mod —— Minecraft 1.20.1,Forge,需 SFM 4.34.0+。
如果你的 SFM 工厂规模很大、每个红石脉冲都会造成卡顿,这个 mod 就是为你准备的。
SFM 是功能强大的物流 mod,但在大型布局下,自带的 ROUND ROBIN(轮询)模式往往是服务端卡顿的主要来源。本 mod 彻底重写了该分发方式的执行逻辑——无需改动你的程序、标签、线缆或容器。
功能
- 轮询 → 瞬时数学均分
原版模式每 tick 只"轮"到一个目标,并在输入/输出槽位之间反复试探,开销巨大。 现在物品 / 流体 / 能量 / 气体会在一个 tick 内按数学方法均分到所有目标(每份 = 总量 ÷ 目标数,余数摊给靠前的目标),一次完成分配,不再逐 tick 卡顿。 2. 智能休眠与槽位记忆
已满的目标与已空的源会进入可配置时长的"休眠",不再每 tick 反复检查无法移动的槽位。 记录上次成功使用的槽位,避免每次都对大型容器从 0 号槽开始全量扫描。 3. 普通 OUTPUT 提速
非轮询的 OUTPUT 语句保持原有的贪心行为不变,但跳过冗余的模拟插入、减少槽位扫描。 不改变什么 SFML 程序语法、Manager 界面、磁盘、标签等均不受影响。 注意:轮询语义有意改变——不再是"每 tick 给一个目标",而是"每个目标每 tick 都拿到应得份额"。像 output 10 to each ... 这类写法行为不变,机器会更均匀、更快地被填满。 若想保留原行为,可在服务端配置 sfm-optimizer-server.toml 中关闭 enableEvenSplit。 配置项(服务端) enableEvenSplit(默认 true)—— 均分功能总开关 sleepCooldownTicks(默认 20)—— 满/空槽位休眠多少 tick 后再检查 enableSlotMemory(默认 true)—— 记录上次成功槽位以减少重复扫描 环境要求 Minecraft 1.20.1、Forge 47.4+、Super Factory Manager 4.34.0 (已按 4.34.0 测试) 客户端与服务器端均需安装 开源协议 GPLv3

