边缘世界 RimWorld

边缘世界 RimWorld

319 个评价
Psychic Harmonizer Lag Fix
2
2
   
奖励
收藏
已收藏
取消收藏
Mod, 1.2, 1.3, 1.4, 1.5
文件大小
发表于
更新日期
42.464 KB
2021 年 4 月 15 日 下午 3:59
2024 年 4 月 11 日 上午 2:21
4 项改动说明 ( 查看 )
您需要 DLC 才能使用该物品。

订阅以下载
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.
热门讨论 查看全部(1)
0
2021 年 9 月 9 日 下午 12:44
Bug/Error Reports
Arcanant
55 条留言
Cyber Witch ~ 9 月 2 日 上午 7:49 
Yeah you better be, hmpf 😡😡😡
FNEFAN 9 月 2 日 上午 6:37 
Sorry
Cyber Witch ~ 9 月 2 日 上午 5:30 
Yea it git fixed
avil  [作者] 9 月 2 日 上午 5:06 
Wasn't it reported that it's not needed in 1.6 anymore?
FNEFAN 9 月 2 日 上午 2:02 
Will there be a 1.6 mod update?
heafm 8 月 8 日 上午 10:12 
1.6?
Caramel 6 月 10 日 上午 10:54 
@tide{S}haper industries thanks
tide{S}haper industries 5 月 23 日 上午 2:43 
@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 2 月 11 日 上午 10:04 
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  [作者] 1 月 3 日 上午 10:49 
I've tested emonator and it doesn't really do that because it's nailed to the ground. Problem is with moving generators.