ZTex

Engaged Member
Apr 3, 2019
2,953
4,261
Surely it can't be just me, but this game is a RAM eater! I have 16GB of RAM and this game is using 8GB minimum and constantly freezing lol. Me thinks me needs a new pc.
You're not and you don't.
The game needs a real optimization pass. It's trying to do way to much at the same time leading to memory out of bound errors and leaks. There's also a real problem with save files becoming to big to actually load due to recursive data storage.
 

mrkhing

Khing Orchestra
Game Developer
Feb 20, 2018
129
1,051
For those that are having issues with game freezing and consuming more than 1gb of RAM, what are some values in your save files that seem to be getting out of hand? I will add a cap to the amount of money in the wallet since that seems to be the main suspect. You can try it out with this small patch I attached that only adds the money cap.
 

ZTex

Engaged Member
Apr 3, 2019
2,953
4,261
For those that are having issues with game freezing and consuming more than 1gb of RAM, what are some values in your save files that seem to be getting out of hand?
Let me just do a thing real quick here.
I haven't tried the patch but here's a side by side of the size of a save file from your game vs another equally as large game. (Yours is at the top). Nearly 8x the file size.
BMC file size.png

COBD save size.png
 
  • Like
Reactions: MC Johnsson

mrkhing

Khing Orchestra
Game Developer
Feb 20, 2018
129
1,051
Let me just do a thing real quick here.
I haven't tried the patch but here's a side by side of the size of a save file from your game vs another equally as large game. (Yours is at the top). Nearly 8x the file size.
View attachment 2570739

View attachment 2570741
Well, this tends to happen because of very large numbers somewhere in your save. Having trillions of MCT is just an example. The same might apply if you have thousands of heirs or even corrupted values with a lot of decimals. My biggest late game save files are sitting around at 7 mb. Unless I can narrow down which variables are causing bloating in these specific save file there is nothing I can do in terms of optimization.
 

Pr0GamerJohnny

Conversation Conqueror
Sep 7, 2022
7,561
11,398
My mind is blown at how large those saves are, what exactly is going on here?

Clearly there's something outside just "large wallet sizes", since even quadrillion bucks (10^15) is well within the 10^38 limit for a single float. I mean these are just trival number calculations....nothing should be slowing down a modern computer here.

Like ZTex suggested prior - I'm guessing there's some kind of repeating or recursive calculation running far too often, some "non-expected behavior", because none of this is normal for what's basically a glorified calculator. I'll redownload when I get some time this week and poke around these saves because I'm curious, or I might add renpy log notifications to the major calculation labels and see what's slowing it down.

(Don't get me wrong to the dev; that's not to disparage your game as a mere calculator; obviously there's a lot more here as a game, I'm referring to under the hood at it's core it's basically a big calculator-most of the game focuses on money and its generation and spending in different forms)

-edit: I know nothing about python, was always raised in c, but I can't help wonder if dynamic variable type casting plays a role given that values OFTEN hop back and forth around the int limit of 2,147,483,647 in this game; the low trillions to high billions is commonly seen.
 

ZTex

Engaged Member
Apr 3, 2019
2,953
4,261
Well, this tends to happen because of very large numbers somewhere in your save. Having trillions of MCT is just an example. The same might apply if you have thousands of heirs or even corrupted values with a lot of decimals. My biggest late game save files are sitting around at 7 mb. Unless I can narrow down which variables are causing bloating in these specific save file there is nothing I can do in terms of optimization.
Well here you go. I've attached a save and persistent post patch.
Hopefully that helps you narrow things down.
 

mrkhing

Khing Orchestra
Game Developer
Feb 20, 2018
129
1,051
Well here you go. I've attached a save and persistent post patch.
Hopefully that helps you narrow things down.
Not 100% sure what it is but I suspect you went a bit too crazy with the shares in the portfolio (tens of thousands of some of the most expansive shares in the game). Perhaps I need to tune down the amount of money people get from the money cheat to prevent this sort of thing from happening.
 
  • Thinking Face
Reactions: PapaPhat

JoeHiggins1949

Active Member
Dec 14, 2017
914
834
Not 100% sure what it is but I suspect you went a bit too crazy with the shares in the portfolio (tens of thousands of some of the most expansive shares in the game). Perhaps I need to tune down the amount of money people get from the money cheat to prevent this sort of thing from happening.
I have not installed your fix, but I am not having the issues with my save sizes or my ram usage.
 

mrkhing

Khing Orchestra
Game Developer
Feb 20, 2018
129
1,051
I have not installed your fix, but I am not having the issues with my save sizes or my ram usage.
Indeed, this problem only seems to affect some players that did specific things (usually involving the money cheat). But it's hard to tell what these things are in each situation and or if it can be done organically without using cheats and exploits.
 

PapaPhat

Engaged Member
Mar 31, 2022
3,337
5,629
Not 100% sure what it is but I suspect you went a bit too crazy with the shares in the portfolio (tens of thousands of some of the most expansive shares in the game). Perhaps I need to tune down the amount of money people get from the money cheat to prevent this sort of thing from happening.
It's NOT the money cheat. I only used that to avoid borrowing from the bank in the earliest part of the game. The trouble is the vast sums of credits we accrue with multiple multipliers stressing our CPU's and RAM! The entire financial system needs to be rescaled to more manageable figures as I previously suggested.

I was able to resolve the crashing and total freezes just by returning my GRADE in company management from the over inflated 50K to which I had pumped it back to a more reasonable 30K. I went from 102 billion per day to 53 billion net profit and have avoided crashes and freezes since. However, it is still slow as molasses in load/save mode and during gameplay after only a few minutes.

I even got Shannon up to spouse level 5 and must say a hearty, "THANK YOU" my friend for that amazing sex scene with our new wife! Also, I really need to shower her with gifts and attention to earn the extra 300 affection to "visit the other spouse" and share some sexy good times with both Sophia and Shannon. That was an unexpected and pleasant, wish fulfilling surprise!:love::love::love::love::love:

While I am here, my friend, I don't mind the need to retrain the girls at grade B for their basic four skills. However, wiping out their raid skills also takes their special items granted during previous raids, doesn't it? I will be pleasantly surprised to find those unique items return if my suspicions are incorrect but that big, fat ZERO in their raid skills and the fact that if you remove or replace one of those unique items it gets destroyed leads me to believe that Caroline and Julia have lost their raid extras. Julia had +4 to Initiative and Caroline had +5 to her initiative! Had I known this, I may not have allowed either of them to become pregnant! I have retrained both post maternity leave but have not yet redone their raid skills as there is no current need for that.

I'm spending my in game time primarily with Shannon while still letting Sophia know that she will always be first... in doing so, Sophia is now pregnant with number 11!!! So, I'm about to have five and a half dozen kids! Hahaha:ROFLMAO: I drove an Amish framing crew around and worked along side those men all summer one year. One of the oldest sons had me going all day when he told me he had five and a half dozen kids, totally unaware that he meant eleven! Considering their father, our foreman, had fathered at least 16 children, once I was let in on the joke... well, it stuck with me. Anyway... Phat is just rambling now.

Adventure ever on my friend, Phat;)(y)

PS: Afterthought... If you are going to cap anything, the bonus multipliers for RevMod for the girls and the GRADE in company management would likely be better than the money cheat. I used the money cheat ONCE. Those multipliers are ALWAYS running. I can reduce the GRADE in the company management screen but my courtesans all have RevMod over 40, several nearly 50 and I have no way to reduce those now. They just continue to grow each and every time I have to train them. I will likely reduce the GRADE again back to the 20K or 25K where it was set before the level 4 upgrade took it back to 1 again. I ran a deficit for a couple days and went ???WTF??? then remembered to readjust my GRADE. After running a six million credit deficit for two days, I am sure jacking it to 50K was an over compensation! Hahaha:ROFLMAO::ROFLMAO::ROFLMAO::ROFLMAO::ROFLMAO:
 
Last edited:

JoeHiggins1949

Active Member
Dec 14, 2017
914
834
Indeed, this problem only seems to affect some players that did specific things (usually involving the money cheat). But it's hard to tell what these things are in each situation and or if it can be done organically without using cheats and exploits.
I used the money cheat, and I used the energy cheat constantly to train the courtesans.
 
  • Like
Reactions: PapaPhat

PapaPhat

Engaged Member
Mar 31, 2022
3,337
5,629
I used the money cheat, and I used the energy cheat constantly to train the courtesans.
I used the money cheat only once to avoid borrowing from the bank but I ALWAYS use the energy cheat! Training the girls would take months of in game time without it! Capping the money cheat to a max of like one billion total for the whole game isn't a bad idea but reducing the amount per click just means those who would abuse it will merely make more clicks. Just Phat's two cents worth...

Adventure ever on my friend, Phat;)(y)
 
3.30 star(s) 40 Votes