

This mod reduces the computational load of factories on planets where the player is not currently present. By changing how simulations update, significantly increase UPS (Updates Per Second) in late-game saves where the CPU struggles to simulate all planets simultaneously.
这个 Mod 是一个性能优化模组,旨在大幅降低玩家非所在星球上工厂的运算压力。通过改变游戏模拟机制,大幅提升大后期存档的 UPS(逻辑帧率),解决由于工厂规模过大导致的卡顿问题。

The mod main control panel is on the statistics panel (P) - performance test.
Ratio - The remote planets are updated every x ticks. The input field can set the value higher than 20.
Focus Local - When enabled, the local planet will always be active. It can give a better gaming experience.
Warning: Because this mod manipulates stats data and item generation, it may disable Milkyway upload.
使用者可以在性能测试面板设定倍率(Ratio),决定远端星球更新的周期。在输入框可以输入超过20的值。
勾选Focus Local可让本地工厂保持运行来维持游戏体验。
警告: 此mod会改动统计资料和虛空產物。可能会让存档无法上传银河系。

Additional UI for displaying flow-in/flow-out rate of cargo in stations. Configurable in options.
The difference between vanilla behavior:
和原版不同之处:
目前对战斗系统进行了以下的修改, 可能会影响平衡:
Run the game one time to generate BepInEx\config\starfi5h.plugin.SampleAndHoldSim.cfg file.
You can also find it in mod manager's config editor.
UpdatePeriod (Default:10)
Compute actual factory simulation every x ticks.
SliderMaxUpdatePeriod (Default:20)
Max value of upate period slider.
UIStationStoragePeriod (Default:600)
Display item flow in/out from belts in station storages in x ticks. 0 = no display
UnitPerMinute (Default:false)
If true, show the rate per minute. otherwise, show the rate per second.
EnableRelayLanding (Default:true)
If true, allow Dark Fog relays to land on planet (vanilla).
.cfg文件需要先运行过游戏一次才会出现,修改后要重启游戏才会生效。
管理器安装: 左边选项Config editor -> 找到starfi5h.plugin.SampleAndHoldSim -> Edit Config
手动安装: 更改BepInEx\config\starfi5h.plugin.SampleAndHoldSim.cfg文件
UpdatePeriod (默认:10)
更新周期: 每x逻辑帧运行一次实际计算
SliderMaxUpdatePeriod (默认:20)
更新周期滑动条的最大值
UIStationStoragePeriod (默认:600)
显示过去x帧内物流塔经传送带的货物的流入或流出速率, 0 = 不显示
UnitPerMinute (默认:false)
true: 显示单位设为每分钟速率 false: 显示每秒速率
EnableRelayLanding (默认:true)
true: 允许黑雾中继器登陆星球(原版逻辑) false: 不允许
(✅) CommonAPI
(✅) DSPOptimizations
(✅) NebulaMultiplayer - SampleAndHoldSim will be diabled in client mode. Only host can use it.
(🛠️) CheatEnabler - Fix the error when enabling 'skip bullet' function. Need to restart the game after switching.
(🛠️) Auxilaryfunction - Temporarily set ratio to 1 when stopping factory.
(⚠️) PlanetMiner - Fix mine rate on idle factories, let it not be affected by FPS.
(⚠️) GenesisBook - Quantum box may have abnormal behavior.
(⛔) Multfuntion mod - Some game-breaking features are not compatible.
(⛔) Weaver - Not compatible.
(✅) DSPOptimizations(优化mod)
(✅) NebulaMultiplayer(联机mod) - 只有主机可使用, 客户端会自动停用并关闭介面
(🛠️) CheatEnabler - 修复启用'跳过子弹阶段'时造成的冲突。切换设置后需重启游戏才会套用兼容
(🛠️) Auxilaryfunction - 在停止工厂时会将倍率暂时调为1避免产物异常
(⚠️) PlanetMiner - 修复星球矿机速率不正确的问题, 使其不随FPS变动。
(⚠️) GenesisBook - 量子箱的跨星球运输可能会异常。
(⛔) Multfuntion mod(多功能OPmod) - 兼容问题: 在跳过子弹时,太阳帆的数量没有被倍增。其他某些改机制功能(星球矿机等)不兼容。
(⛔) Weaver - 不兼容。
EN: This mod improves game performance by reducing how often distant factories are calculated. Instead of updating every factory every tick, it updates them in rotation (e.g., every 10 ticks) and multiplies their input/output accordingly. Think of it like turning down the simulation frequency for planets you're not watching, while keeping the overall production the same.
CN: 这个mod通过减少远程工厂的计算频率来提高游戏性能。它不是每帧更新所有工厂,而是轮流更新(例如每10帧更新一次),并相应地倍增输入/输出。可以理解为降低你不关注的星球的模拟频率,同时保持总体产量不变。
EN: No, the mod is safe to add and remove from existing saves. However:
CN: 不会,该mod可以安全地添加到现有存档或从中移除。但是:
EN: The more planets you have, the greater the benefit. Late-game megabases with 20+ developed planets see the more improvements.
On the other hand, it doesn't have much improvement with early game <4 developed planets.
Higher Ratio = more performance, less accuracy. Choose based on your tolerance for "spiky" behavior.
For example, if your "Planet Factroy" takes 80% of the time, then setting ratio to 20 will make about 4x UPS.
Adjust the ratio to have stable 60 logical frames per second. It's recommended not to set it above 100.
| Aspect | Ratio 10 | Ratio 20 |
|---|---|---|
| Accuracy | High | Medium |
| Statistics | Slightly sparse | Very sparse |
| Internal storage lag | Low | Noticeable |
**CN: 拥有的星球越多,收益越大。拥有20+开发星球的后期存档会看到显著的改善。
相对地,对于早期游戏(已开发星球<4)来说,它并没有太大的改进。
Ratio更高 = 更多性能,更低准确性。根据你对"波动"行为的容忍度选择。
举例来说,如果你的“星球工厂”占用 80% 的时间,那么将Ratio设置为 20 将使 UPS 提高至约 4 倍。
Ratio调到可以稳60逻辑帧就好。建议不要设超过100。
| 方面 | Ratio 10 | Ratio 20 |
|---|---|---|
| 准确性 | 高 | 中 |
| 统计 | 略显稀疏 | 非常稀疏 |
| 内部存储延迟 | 少 | 明显 |
EN: Yes, for a better user experience
CN: 是的,为了更好的游玩体验
EN:
Settings take effect immediately without restarting the game.
CN:
设置立即生效,无需重启游戏。
EN: Yes, in the long term.
The mod sacrifices short-term accuracy for long-term consistency and performance.
CN: 是的,长期来看。
该mod牺牲短期准确性以换取长期一致性和性能。
EN: This is normal and expected behavior.
Think of it as "credit" - the station owes items that will be delivered soon.
CN: 这是正常且预期的行为。
可以理解为"借用" - 物流塔欠的物品很快会被运送过来。
EN: Dyson Sphere construction works normally:
You may see sails/rockets launch in bursts rather than continuously, but total throughput is identical.
CN: 戴森球建造正常工作:
你可能会看到帆/火箭突发式发射而非连续发射,但总吞吐量相同。
EN: Combat mechanics are adjusted automatically:
Combat balance may differ from vanilla - backup saves and report issues!
CN: 战斗机制会自动调整:
战斗平衡可能与原版不同 - 请备份存档并报告问题!
EN: This is usually cosmetic:
If numbers are drastically wrong), report as a bug.
CN: 这通常只是视觉问题:
如果数字严重错误,请报告为bug。
EN: Check these common causes:
Most issues resolve within a few production cycles.
CN: 检查这些常见原因:
大多数问题会在几个生产周期内解决。
EN: Troubleshooting steps:
BepInEx/LogOutput.log for errors mentioning SampleAndHoldSimBepInEx/config/starfi5h.plugin.SampleAndHoldSim.cfgIf issues persist, report with log files and mod list.
CN: 故障排除步骤:
BepInEx/LogOutput.log 中提到SampleAndHoldSim的错误BepInEx/config/starfi5h.plugin.SampleAndHoldSim.cfg如果问题持续,请附带日志文件和mod列表报告。
EN: Simplified explanation:
Example with Period = 10:
CN: 简化说明:
周期 = 10 的例子: