Now it optimizes caches and ticks as well, not just the GUI!
WOWGAG's Performance Patch removes unnecessary work from RimWorld's windows and interface, and adds a range of cache and tick options on top of that.
It targets modded windows as well as vanilla ones, and works by skipping elements that are off screen and by reusing GUI results that would otherwise be recomputed every frame.
Settings
General tab
- Window profiling
- Detailed log
- Periodic report
- Report when a window opens or closes
- Auto-lift log limit
- Set ticks per frame manually
- Reuse patch results
- Reuse type name lookups
- Preload mod content
- More parallel patch file reading
GUI tab
- Reuse text measurements (global)
- Omit the draw pass that never reaches the screen (global, modded windows included)
- Omit off-screen text (global)
- Omit off-screen table separators
- Limit tooltip search range
- Reuse colonist bar icon text
- Reuse log message text
- Suppress tooltip text that would be discarded
- Narrow thing tooltip search
- Reuse inspect pane text
- Omit off-screen entries in the Factions tab
- Omit off-screen entries in the Ideoligions tab
- Omit off-screen precept entries
- Omit off-screen research links
- Reuse the sort order of the Storage tab
- Minimise bill lookups in the Storage tab
- Remove duplicate capacity calculation in the Health tab
- Reuse condition names in the Health tab
- Batch-draw designation marks
- Reuse Numbers dropdown lists (Numbers)
- and 3 more
Caches tab
- Reuse corpse rendering
- Reuse material info when drawing pawns
- Skip duplicate color setup when drawing pawns
- Skip futile merge scans
- Reuse invisibility checks
- Reuse parent transforms when drawing pawns
- Start pawn and thing draw preparation early
- Reuse appearance refresh checks
- Skip idle status mark math above pawns
- Reuse fall color factor
- Reuse colonist bar mood check
- Reuse component lookups
- Omit off-screen effects
- Tick cache for stat call sites
- Reuse stat calculation results
- Reuse item drawings
- Skip idle carried-item math on pawns
- Optimise body part lookups
- Reuse gear stat offsets
- Reuse shambler checks
- Minimize style score calculation
- Reuse thought acquisition checks
- Reuse market value recipe scan
- Deduplicate path connectivity updates
- Reuse terrain and building values
- Reuse texture lookup results
- Reuse material base color property IDs
- Reuse hauling reachability check
- Reduce graphics-ready checks before drawing
- Reuse render node workers
- Skip graphic check when drawing pawns
- Reuse silhouettes
- Skip empty map section pass
- Skip redraws when only the stack count changes
- Optimise range indicator drawing
- Streamline world occlusion check
- Skip idle ideology precepts
- Deduplicate construction reach checks
- Leave buildings without hit points out of the repair list
- Lighter deep drill checks
- Replace Kyulen render refresh (Kyulen - NinetailFox)
- Minimize facial animation calculation (Facial Animation)
- Skip drawing empty face layers (Facial Animation)
- Skip repeated head layer search (Facial Animation)
- Skip render tree rebuild during animations (Melee Animation)
- Pick Up And Haul storage capacity fix (Adaptive Storage Framework)
- and 8 more
Tick rate tab
- Skip empty world map object updates
- Reuse surrounding beauty and comfortable temperature checks
- Colonist bar icon check interval
- Wider dormancy for world characters
- Delay haulable list refresh
- Delay mood updates
- Omit off-screen visual and sound effects
- Gas grid update interval
- Delay world component updates
- Skip empty character component updates
- Map environment update interval
- Role activity recheck interval
- Delay updates for off-screen characters
- Reuse mood total
- Bed usability check interval
- Skip duplicate mood total calculations
- Skip power-on checks
- Reuse full storage checks
- World character dormancy check interval
- Delay health updates for off-screen characters
- Faster thing list removal
- Plant long-update interval
- Hostility response decision interval
- Lying-down urgent job check interval
- Delay health updates for on-screen characters
- Batch item redraws
- Reuse forbidden checks
- Noise propagation region limit
- Longer update interval for on-screen characters
- Delay urgent work switch checks
- Hold back empty haul searches
- Extend idle wander waits
- Firing position re-search interval in combat
- Target reselect interval in combat
- Target check interval while aiming
- Update plant sway per frame
- Skip off-screen melee idle animations (Melee Animation)
- Use character image cache when zoomed out (Facial Animation)
- and 7 more
Experimental tab (multicore parallel processing)
- Parallel worker threads
- Parallel map environment update
- Parallel character health and needs
- Parallel character components
- Precompute constant behavior checks
- Precompute job interruption conditions
- Precompute job decisions
- Parallel work search
- Parallel world path cost recalculation
Real-world gains vary a lot depending on your mod list and which parts of the UI you actually use.
Rather than handling one named mod at a time, it works on the shared structure of the GUI, so windows added by other mods can be covered automatically.
"Reuse patch results" shortens the loading time when the game starts.
On the very first run you will not notice it, because the cache is being built; from the next run on the patch results are reused and loading is faster.
If your mod list changes, the cache is rebuilt, so the loading time goes back to normal for that run.
※ Items on the "Tick rate" tab change how the game behaves. You gain ticks per second in exchange for some processing - such as off-screen pawns or job decisions - happening as late as the interval you set. The "GUI" and "Caches" tabs produce the same results as vanilla.
Q1. Does it need any other mod?
Only Harmony.
Q2. What about CE?
Yes - CE explosions and other parts that build on vanilla are optimised as well.
Using it together with
Combat Extended Performance Patch gives even better results.
Q3. Can I add it to an existing save?
Yes, you can add it to a save in progress at any time.
Removing the mod does not affect your save data either.
Q4. Does it apply to windows added by other mods?
Yes. It is not built for one specific mod - it works on the common structure of the GUI.
That said, if a window is slow because of calculations inside that mod itself, the gain may be small.
Q5. Is it safe to use alongside other optimization mods?
Yes. This mod detects overlapping work automatically and disables its own patch there.
That said, used on its own without any other optimization mod, it already gives the same effect.
Q6. It is an AI-made optimization patch - can I trust it?
I tested it myself, saw enough of a gain, and am simply sharing what I made for my own use.
If an AI-made optimization patch bothers you, just ignore it.
Bug reports are always welcome.
Enabling the detailed log and sharing the log file helps a great deal with further optimization.
Support
▶Discord