SampleAndHoldSim

版本 v0.7.7·更新於 2026-02-02

Reduce the update rate of remote planets to improve UPS (warning: may disable Milkyway upload). 模擬幀-降低遠端星球工廠的運算頻率以提升幀率(可能會無法上傳銀河系)

截圖 共 2 張

模組介紹 作者原文

Sample and Hold Simulation

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(邏輯幀率),解決由於工廠規模過大導致的卡頓問題。

UI

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.

Difference with Base Game

The difference between vanilla behavior:

  • Stations' storage may have a negative item count to maintain the cargo balance.
  • Lancers' attack damage will be scaled down in remote systems.
  • Turrets that attack Dark Fog space units will be scaled up damage in remote systems.
  • Dark Fog drops on remote planets will exist longer for BAB to pick up.

和原版不同之處:

  • 爲了保持內部與外部間的物品記帳平衡, 物流塔內的貨物數量可能爲負數

目前對戰鬥系統進行了以下的修改, 可能會影響平衡:

  • 遠程星系的槍騎攻擊力依照倍率縮減, 避免遠程星系的星球被攻破
  • 遠程星球的導彈和電漿炮傷害依照倍率增加, 但可能有溢傷的問題
  • 遠程星球的黑霧掉落會存在更久,好讓戰場分析基站可以即時撿取

Configuration

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: 不允許

Compatibility

(✅) 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.

MOD相容性:

(✅) DSPOptimizations(優化mod)

(✅) NebulaMultiplayer(聯機mod) - 只有主機可使用, 客戶端會自動停用並關閉介面

(🛠️) CheatEnabler - 修復啓用'跳過子彈階段'時造成的衝突。切換設置後需重啓遊戲纔會套用兼容

(🛠️) Auxilaryfunction - 在停止工廠時會將倍率暫時調爲1避免產物異常

(⚠️) PlanetMiner - 修復星球礦機速率不正確的問題, 使其不隨FPS變動。

(⚠️) GenesisBook - 量子箱的跨星球運輸可能會異常。

(⛔) Multfuntion mod(多功能OPmod) - 兼容問題: 在跳過子彈時,太陽帆的數量沒有被倍增。其他某些改機制功能(星球礦機等)不兼容。

(⛔) Weaver - 不兼容。

FAQ / 常見問題

General Questions / 一般問題

Q: What does this mod actually do? / 這個mod到底做什麼?

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

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

xiaoye97-BepInEx

檔案與校驗

檔案名稱
SampleAndHoldSim-0.7.7.zip
檔案大小
105.4 KiB