RimWorld

RimWorld

MuteGC - Avoid Save Corruption
31 Comments
SoulDRoul 10 Sep, 2024 @ 9:15pm 
所以,1.5了有可替代的吗
小賊一匹狼 8 Feb, 2020 @ 10:09pm 
怎麼使用?? 加載即可麼??
1BreathTaken 28 Oct, 2019 @ 4:33pm 
not currently compatible and throws errors on init
原地起飞蹦迪 19 Nov, 2018 @ 8:02am 
dalao power up!
Funny 3 Nov, 2018 @ 4:40am 
thanks!
user19990313  [author] 2 Nov, 2018 @ 9:23pm 
MuteGC and MuteCL are already integrated into RuntimeGC 1.0.

If you do want a standalone version, I'll update it the next week.
Funny 2 Nov, 2018 @ 3:48am 
1.0 update?
The_Godchild 26 Oct, 2018 @ 12:34pm 
1.0 update?
RΞΛPΞRisONLINE 15 Oct, 2018 @ 4:21am 
update? <3
Mur Derer 10 Sep, 2018 @ 5:04am 
update pls
越抵抗越兴奋 5 Jun, 2018 @ 5:35am 
nice mod thx 4 made it
越抵抗越兴奋 5 Jun, 2018 @ 5:34am 
我布吉岛这果是干嘛滴,但是好多银都有推荐,所以就下载咯。6666666
Deyon 13 Jan, 2018 @ 3:04am 
i already fixed it, it seems that MedEvac caused the crash even tho i didnt even had it active and it wasnt ciompatible with my version xD thanks anyway for the confirmation
user19990313  [author] 12 Jan, 2018 @ 10:51pm 
@Deyon Surely NOT this mod... I didn't modify any graphic functions.
Deyon 9 Jan, 2018 @ 7:28am 
idk if it is this mod causing it
Deyon 9 Jan, 2018 @ 7:28am 
i have included some mods to my list, including this one, since i was playing everytime some colonist gets the slighest cut my screen goes gray and freezes
user19990313  [author] 7 Dec, 2017 @ 10:44am 
@k1rin Well... I'm not disabling neither System.GC, nor a part of it.
The GC I mentioned in this mod is an additional part called WorldPawnGC. It used to be a mod, but the author gave it up, however Tynan put it into vanilla game. This GC runs every 1/4 day in game, and it really takes time to recycle the worldpawns, so you might encounter no-response 4 time a day later in the game.
What's worse, the compatibility and stability of this part is unknown. You may say developer should have tested it, but they SHOULD HAVE FOUND the no-responding issue already if they tested THOROUGHLY.
If it really corrupt your save one day, you will find it impossible to recover it, since the save will corrupt at exactly the same tick after your loading prev one.

So for the sake of your saves, you should disable "GC", the built in WorldPawnGC, using this MuteGC. An alternative is RuntimeGC, manual, customized and controllable cleaning.
k1rin 6 Dec, 2017 @ 2:20pm 
GC = Garbage Collector - a generic definition is that a GC basically finds any instances where there's data stored in memory that is no longer needed, and frees that memory up. This can also improve performance in the long run, for example, when it removes list objects in lists that get iterated, etc.

Now, based on what the author is saying here, this mod doesn't disable garbage collection on a whole - it simply disables garbage collection for one specific subset of objects, which he's found to be problematic. I've also noticed the brief lag hit when it executes, so clearly this could be done better, at least. I'm an old C guy, so we don't bother with GC - we just free() our crap when we're done with it like real men. :2016weiner:

@user19990313 I'd be really interested in a write up of how the vanilla world pawn GC sucks and maybe how it could be approached better if you ever were inclined to write such a thing.
Abby 4 Dec, 2017 @ 5:48pm 
点赞+1
Fuglypump 3 Dec, 2017 @ 3:00pm 
RuntimeGC is a great mod, I've been meaning to ask how these two mods might interact when used together. (since i have no idea how either work or what "GC" even stands for) Disabling the automatic process and using runtimeGC to be able to still do it manually sounds ideal.
user19990313  [author] 3 Dec, 2017 @ 2:39pm 
@Sixdd
I'm not denying this idea, but vanilla GC is still raw and is actually yielding negative effects for a long-term player. The worst feature of this system is that GC runs AUTOMATICALLY, in other word, once it went wrong, you would never be able to recover your save, since GC will corrupt your reloaded save again at the same tick.

Actually I dont want to mention this, but, since you've asked, there is a better solution. Go search the mod called "RuntimeGC".
Maybe you don't think this can make any difference, but there must be someone in need of this anyway. If you are interested in this topic, guess we could discuss it out of comments.
user19990313  [author] 3 Dec, 2017 @ 2:39pm 
@Sixdd Firstly, this GC is not System.GC, this one is WorldPawnGC that is integrated into vanilla game. Secondly, disabling GC will not make your game crash anyway, instead, it would make your game more stable. I don't want to explain the whole vanilla GC, the point is the GC is not secured. A world pawn cleaning might be good, but all the conditions are based on vanilla environment, and might not be really tested - or Tynan would have detected the following issue: some players find out that GC would take exceptionally long time to process, so they encounter no-response 4 times a day.
#6 3 Dec, 2017 @ 3:24am 
I'm not exactly a trained programmer but wouldn't disabling garbage collection seriously hurt the games stability? I mean the game is designed to clean-up after itself for a reason so you really shouldn't disable garbage collection or you get a heap error, but I'm no pro... Also if you disable garbage collection and the game crashes while it is saving you will lose the entire save, so dasabling gc really isn't a good idea, but I'm no pro...
user19990313  [author] 1 Dec, 2017 @ 12:45pm 
@Fuglypump Disable built-in scheduled cleaning system, as it may corrupt a save and cannot be turned off in game.
Fuglypump 1 Dec, 2017 @ 9:54am 
What exactly does this mod do?
Luinithil 1 Dec, 2017 @ 7:09am 
Thanks. AFAIK the framework is x64, and RAM-- well I only have 8GB. Gotta upgrade soon LOL.
user19990313  [author] 1 Dec, 2017 @ 6:27am 
@Luinithil You will encounter this problem only when your RAM is drained... The game don't have enough memory to run correctly and the .NET Framework crashed because of insufficient memory. You should upgrade your RAM and make sure your OS/.NET Framework are x64 to eliminate this problem.
And...this "GC" is the system GC, not my mod, not the vanilla GC.
Meanwhile don't leave your game with a UI on, your memory space will be drained quickly.
Luinithil 1 Dec, 2017 @ 4:34am 
Left game on idle in a Prepare Carefully screen for 4 hours today with this mod active. When I came back, the game had thrown a "GC: Too many heap sections" error and crashed. Is it this mod that caused the issue? I've left the game overnight before and never encountered such an error.
小咲QAQ 30 Nov, 2017 @ 7:28am 
点赞
MADxingjin 30 Nov, 2017 @ 3:35am 
真棒!
scarlet_vermillion 30 Nov, 2017 @ 3:08am 
萬歲!