Create your AI Cum Slut -70% for Mother's Day
x

Charastudio Ram optimization Issue

Szarpidrut

Newbie
Aug 8, 2021
15
7
Hello, I would like to ask for help related to koikatsu and more specifically charastudio well, I came to a reason that carried stuttering in scenes, this is caused in my case by the garbage collector which every time it reset caused a micro stutter which was annoying. To better illustrate, the scene was taking ~4600mb of ram, the garbage collector started using ~1300mb and when it reached ~1700mb a stutter appeared and then the gc reset to 1300mb. And now I don't know which plugin to refer to because resource unload optimization seems to be only modular in plugin options. my previous intervention related to clearing a few game files reduced the intensity of the stutters but in more demanding scenes these are too frequent,
before I was blaming the processor, but now after upgrading my computer I can't blame anything like the game itself. Please could someone give me some advice?
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,785
18,247
[...] the garbage collector started using ~1300mb and when it reached ~1700mb a stutter appeared and then the gc reset to 1300mb.
I agree that "GC" should refer to the garbage collection, but the numbers shown, as well as the behavior, make no sense. 1GB of garbage is astoundingly high, 3MB/s of new garbage is the sign of a really bad codding, and keeping 1GB of unused and none freed RAM when the garbage collector do its cleanup is not really rational. That the garbage collector only clean ~400MB is understandable, it limit the cleanup impact on the software, but it should have started to do it once the garbage collector reach 500MB, not when it's above 1GB.
Therefore, are you really sure that it's what GC mean here ?


And now I don't know which plugin to refer to because resource unload optimization seems to be only modular in plugin options.
I'm tempted to say that the question is more to know which plugin you stop to use because it generate way too many garbage.


before I was blaming the processor, [...]
The garbage cleanup don't use much of the CPU, its the RAM speed that is the important factor here; yet it's relative since only the "index" is actually addressed. It stutter because there's a lot of small memory zone to free, more surely than because the CPU need times to process the garbage collector code.
 

Szarpidrut

Newbie
Aug 8, 2021
15
7
Well, I really don't know what to do, surely the plugins are behind it, because on my own I tried to at least see how the scene behaves after removing many mods I don't need and removing all but a few scenes from the directory, but all scenes caused stuttering every time the garbage collector was cleaned. I have repeatedly tested RAM and all hardware for stability after replacing or overclocking and only in charastudio have I encountered this problem. I'll even give my specs, which confirm that the game itself is behind it.
Rx 7900xt
ryzen 9 5950x 4.4ghz set in bios on all cores
32 gb ram 3800mhz in OC
The game is on a ssd with a read speed of 7000mb/s and write speed of 6000mb/s.
 

Szarpidrut

Newbie
Aug 8, 2021
15
7
I agree that "GC" should refer to the garbage collection, but the numbers shown, as well as the behavior, make no sense. 1GB of garbage is astoundingly high, 3MB/s of new garbage is the sign of a really bad codding, and keeping 1GB of unused and none freed RAM when the garbage collector do its cleanup is not really rational. That the garbage collector only clean ~400MB is understandable, it limit the cleanup impact on the software, but it should have started to do it once the garbage collector reach 500MB, not when it's above 1GB.
Therefore, are you really sure that it's what GC mean here ?




I'm tempted to say that the question is more to know which plugin you stop to use because it generate way too many garbage.




The garbage cleanup don't use much of the CPU, its the RAM speed that is the important factor here; yet it's relative since only the "index" is actually addressed. It stutter because there's a lot of small memory zone to free, more surely than because the CPU need times to process the garbage collector code.
Here I recorded the part that best illustrates this
 

Szarpidrut

Newbie
Aug 8, 2021
15
7
Anyway, I've resigned myself to the fact that I won't be able to do anything to prevent stuttering, so is there an option in the game file configuration to increase the amount in which the gc is cleaned?
I wonder if everyone who uses charastudio has encountered this problem, because if it's normal for stutters to occur in charastudio, then it would put my mind at ease.
2132.gif
 
Last edited: