SampleAndHoldSim
Reduce the update rate of remote planets to improve UPS (warning: may disable Milkyway upload).
Screenshots 2 screenshots
About this mod Machine translation
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.
Simulation Frame - Modify the game calculation method to improve the logical frame rate
This Mod is a performance optimization module designed to significantly reduce the computing pressure on factories on planets other than the player's home planet. By changing the game simulation mechanism, the UPS (logical frame rate) of late-stage archives is greatly improved, and the lag problem caused by the excessive scale of the factory is solved.
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.
Users can set the ratio (Ratio) in the performance test panel to determine the update cycle of the remote planet. Values exceeding 20 can be entered in the input box.
Check Focus Local to keep the local factory running to maintain the game experience.
Warning: This mod changes statistics and void artifacts. It may prevent archives from being uploaded to the galaxy.
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.
Differences from the original version:
- In order to maintain a balance between internal and external item accounting, the quantity of goods in the logistics tower may be negative.
Currently, the following modifications have been made to the combat system, which may affect the balance:
- The attack power of lances in remote galaxies is reduced according to the multiplier to prevent planets in remote galaxies from being breached
- The damage of missiles and plasma cannons on remote planets is increased according to the multiplier, but there may be spillover damage problems
- The black mist drops from remote planets will last longer so that the battlefield analysis base station can pick them up immediately
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).
The setting .cfg file needs to be run once before the game will appear. After modification, the game will need to be restarted to take effect.
Manager installation: left option Config editor -> find starfi5h.plugin.SampleAndHoldSim -> Edit Config
Manual installation: Change BepInEx\config\starfi5h.plugin.SampleAndHoldSim.cfg file
- UpdatePeriod (default: 10)
Update period: Run the actual calculation every x logical frames
- SliderMaxUpdatePeriod (default: 20)
The maximum value of the update cycle slider
- UIStationStoragePeriod (default: 600)
Display the inflow or outflow rate of goods passing through the conveyor belt in the logistics tower in the past …
Install & use Install: BepInEx plugin
- The archive from playbuff is the mod itself — usually a BepInEx plugin (a .dll or a plugin folder once unzipped).
- Recommended: use a community mod manager (such as r2modman) — pick this game, import the mod, and the manager sets up BepInEx and its dependencies for you.
- Manual route: install the BepInEx loader in the game folder, then drop the unzipped .dll or plugin folder into BepInEx/plugins/.
- Launch the game — the BepInEx console logs every plugin it loads; seeing this mod in the log means it is installed.
Mods with listed dependencies need those installed too, or they will not load. Options are usually changed in-game or in the plugin's config file.
Install these first, or the mod will not work: