[多线程优化]Multi-Threading Pawns
[Multi-Threading Pawns]
Overview
Improve tick time and FPS by safely offloading enemies/mechanoids to background sampling with main-thread application. Designed to keep gameplay behavior identical while smoothing spikes. Can be used alongside other performance mods (e.g., RocketMan).
Key Features
[list]
[*] Safe scheduling for enemies/mechs: background sampling & budgeting, main-thread execution to smooth spikes
[*] Main-thread queue de-duplication + priority: prioritize critical actions, merge duplicates
[*] Dynamic adaptive budgets: auto-tune sampling/callback/hash interval by frame-time (no longer overwrites your saved settings)
[*] Enemy prioritization: assault/close-range/aggressive states get higher priority
[*] Lighting optimization: debounce + batched dirty updates, precomputed attenuation LUT
[/list]
Usage Notes
[list]
[*] Aggressive changes; recommended to test on a new save. Mid-save add/remove can be risky
[*] If you see red errors or odd pawn behavior, disable and roll back
[*] If settings exist, tune gradually and observe stability/perf impact
[/list]
Compatibility
[list]
[*] Intended to work with most content mods
[*] Potential conflicts: mods that heavily patch Pawn Tick, AI, JobDriver, work assignment, pathing/thinking systems
[*] Other performance mods may stack or interfere; test in your setup
[/list]
Supported Versions
RimWorld 1.4 / 1.5 / 1.6
Early Access
This is the pioneer beta version, and after multiple rounds of testing, it will be stable before it will be overloaded to this version, updated alternately, and linked at once
[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3559581146]https://steamcommunity.com/sharedfiles/filedetails/?id=3559581146[/url]
Performance Expectations
Gains depend on CPU cores, colony size, workload, and other mods. Parallelization has overhead; not all scenarios see big improvements.
Known Risks
[list]
[*] Avoid aggressive settings with heavy AI/Job mods; disable experimental features first if issues occur
[*] In extreme cases, minor behavior desyncs may occur; rollback and attach logs if needed
[/list]
Load Order
Typically after most content mods. If conflicting with deep AI/Job mods, follow their guidance or choose one.
Feedback & Bug Reports
Please include Player.log, mod list, repro steps, and a save if possible. The more detail, the better.
Credits
[list]
[*] Author: LingXing
[*] Special thanks to all testers and feedback providers
[/list]
License
Follows the license terms specified by the author on the mod page or repository.