Mod «Psychic Harmonizer Lag Fix» for Rimworld (v1.2 - 1.4)

+8
00:36
1.21K
Psychic Harmonizer Lag Fix

Fixes the reason why psychic harmonizer slows down the game when looking at a mood tab.

Possible to add mid game. If you do, you have to clear all the old harmonizer memories for a mod to take effect (i. e. isolate harmonizer carriers from the rest of colonists once).

So why exactly vanilla harmonizer creates a lag?
If you look at why harmonizer slows the game, the whole thought mechanic could use an update. While thoughts are USED and UPDATED only each 250 TICKS, mood tab tries to do it every FRAME. Harmonizer uses difficult rules for it to work, one of them is proximity, so in combination it takes sizable amount of time to calculate. But when it's done only each 250 ticks it's not noticeable, that's why it's usually fine as long as you don't look at a mood tab.
What I did is cached a thought value. Value is updated only at slow ticks (when it's checked if thought should be removed or not), and used everywhere where it's needed. That's why difficulty of the calculation doesn't matter for GUI, especially when game is paused.

Requires: DLC Royalty

File info

  • Added by: Den Martin
  • Author: avil
  • Mod version: 02.12.23
  • File format: ZIP
  • File size: 0.1 mb
  • Source: Go to
Download links will be available via s

You can log in to your account or register on the site to download mods without waiting.

RSS
No comments yet. Be the first to add a comment!
Loading...