RimWorld

RimWorld

303 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
Apr 15, 2021 @ 3:59pm
Apr 11, 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
Sep 9, 2021 @ 12:44pm
Bug/Error Reports
Arcanant
48 Comments
tide{S}haper industries May 23 @ 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 Feb 11 @ 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] Jan 3 @ 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.
mr WEST Jan 3 @ 4:55am 
can you touch on psychic emanator too? i heard it too lags like harmonizer
avil  [author] Apr 28, 2024 @ 8:34am 
Idk. Updated it just in case so people won't start complaing :p
kar5ten Apr 28, 2024 @ 12:07am 
Is it still needed for 1.5 ? Or did they update the mechanic ?
Ribera Apr 11, 2024 @ 4:39am 
My game lagged more with this mod than without ;s
turkler Dec 2, 2023 @ 11:06am 
I love downloading more tps op thank you
Enlonwhite Dec 1, 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 Nov 18, 2023 @ 3:28am 
1.4?