RimWorld

RimWorld

317 ratings
Psychic Harmonizer Lag Fix
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.2, 1.3, 1.4, 1.5
File Size
Posted
Updated
42.464 KB
15 Apr, 2021 @ 3:59pm
11 Apr, 2024 @ 2:21am
4 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
Psychic Harmonizer Lag Fix

Description
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.
Popular Discussions View All (1)
0
9 Sep, 2021 @ 12:44pm
Bug/Error Reports
Arcanant
55 Comments
Cyber Witch ~ 2 Sep @ 7:49am 
Yeah you better be, hmpf 😡😡😡
FNEFAN 2 Sep @ 6:37am 
Sorry
Cyber Witch ~ 2 Sep @ 5:30am 
Yea it git fixed
avil  [author] 2 Sep @ 5:06am 
Wasn't it reported that it's not needed in 1.6 anymore?
FNEFAN 2 Sep @ 2:02am 
Will there be a 1.6 mod update?
heafm 8 Aug @ 10:12am 
1.6?
Caramel 10 Jun @ 10:54am 
@tide{S}haper industries thanks
tide{S}haper industries 23 May @ 2:43am 
@Visoth

Ludeon fixed -half- of the harmonizer overhead a while ago. The main issue this mod adresses has been resolved, another aspect that's still eating up more TPS than necessary is still around though, but wasn't addressed by this mod to begin with iirc.

Fortunately Performance Fish takes care of it. So if you're using that one (ideally the original version from Github) you should be fine and don't need this mod anymore.

Technically using both shouldn't create issues either, but as usual with software - redundancy is better avoided.
Visoth 11 Feb @ 10:04am 
Does this have any compatibility issues or overlap with other performance mods such as "Rocket Man", "Performance Fish" and "Performance Optimizer"? I use all three of those and have no idea how I would check if there is any overlap or issues working together.
avil  [author] 3 Jan @ 10:49am 
I've tested emonator and it doesn't really do that because it's nailed to the ground. Problem is with moving generators.