RimWorld

RimWorld

275 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 @ 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
44 Comments
avil  [author] 28 Apr @ 8:34am 
Idk. Updated it just in case so people won't start complaing :p
kar5ten 28 Apr @ 12:07am 
Is it still needed for 1.5 ? Or did they update the mechanic ?
Ribera 11 Apr @ 4:39am 
My game lagged more with this mod than without ;s
turkler 2 Dec, 2023 @ 11:06am 
I love downloading more tps op thank you
Enlonwhite 1 Dec, 2023 @ 3:35am 
I feel like I am hearing the voices of the seagulls off of the movie "Finding Nemo" mine, mine, mine, mine, 1.4, 1.4, 1.4.......
Gosh people read the comments and see the author is at least been informed and investigating, but they don't have to answer you.

Thank you Avil for your time and for you mod. If it is still an issue I am sure some would like to know. But you owe us nothing, and we owe you for you efforts you have given us to enjoy.
2962342497 18 Nov, 2023 @ 3:28am 
1.4?
Computica 28 Apr, 2023 @ 6:22am 
You don't need it for 1.4
Tawnylure 19 Apr, 2023 @ 9:09am 
needs a 1.4 port
qc 24 Mar, 2023 @ 11:25am 
Is this still required for 1.4?
avil  [author] 24 Mar, 2023 @ 9:56am 
Right, I didn't update it for 1.4, did I?