BREAKTHROUGH!
I have found most of the remaining memory leakage, and I have got the total memory leakage down from [200mb+ every single time you reload] to only [100mb once the first time you reload], and that’s it (and this only happens if you exit your current save and then reload the same save). This is about a 90%+ reduction in memory leakage, and since it now only happens once, and this is only the case under specific circumstances, and it’s such a small amount by the standards of modern games – I’m calling this done. The issue was in the game creating large temporary files for handling and manipulating data when generating map grids and buildings before then moving that data into proper data structures – but the temporary structures were not being deleted. These were surprisingly huge, and when coupled with the globals that weren’t being cleared out, and the unused planetary data – this appears to be almost all the remaining memory leakage! (As above, a tiny bit still remains, but I can’t find the source and it’s such a small amount that it doesn’t feel as vital to address).
I am therefore incredibly pleased to say that both of the major remaining issues (no Windows 10 functionality, extreme memory leaks) have been fixed!
Now, I need to do several things from this point on. I need to remove a ton of debug messages that are still in the game, as those shouldn’t really be in the final version. I need to remove the console from the final version for the same reason. I need to do some double-checking of a few things to make sure that things which work in Python itself continue to work when combined into an executable. I also need to do one thing in world generation to stop the game looking like it has frozen, since some people before mentioned this and I don’t want it to give that impression while it’s doing a large calculation. Oh, and I found a new crash bug with some NPCs not being given “home” coordinates and thus not being able to answer questions about their homeland, home environment, etc; this needs sorting out as well. (And of course there are some extremely minor non-crash bugs I know are in there, but I am only dealing with essentials – anything else can be fixed in 0.8.1 or whatever).
So, yeah.
It… actually looks like it’s going to happen.
My goodness.
Yes, my friends – I am as shocked as you are.
So it’s on to the final stretch now, clearing out the stuff above. I’ll aim to clear all this out in the next three days, but it’s always contingent on a) how hard this stuff is and b) my head / health behaving. I’ll aim to post an update on Sunday regardless, but after that Monday and Tuesday are my teaching days, and teaching is demanding, so I cannot promise an update immediately, but the next one will be very soon, all being well.
MORE VERY SOON.
Congrats! I cant wait to see and try out the result!
Thanks Adrian!
So excited, and very glad to see you are doing well!
Thanks Jay, I appreciate the message! It’s a slow road back, but things are improving.
incredibly excited!!!!!
Yes!!!
This is amazing! Keep it up!
Thank you Jeremy!
Incredible work! Can’t wait to see the new version 🙂
Thanks Silencess!
Congratulations! Incredible perseverance on your part to see this thing through!
Thanks Lowbeer, I really appreciate it. It’ll be a huge load off my mind to get 0.8 out there.
Awesome! Been waiting on this for years.
Thanks Jonathan! (Me too…!)
I’m so excited! Happy you were able to have this breakthrough. Can’t wait to try 0.8!
Thanks Kirk! I’m so relieved it didn’t turn into a total nightmare, these final two major bugs.
Fantastic to see you back at it Mark. Can’t wait to learn more!
Thank you Ysbaddaden! It’s really nice to BE back at it.
Very exciting stuff!
Thank you Tristan!
Wonderful news! Congrats! 😀
Thanks Roberto! 🙂
Your stamina is exemplary. This is something I really look forward to. So happy for you and URR.
CONGRATS!
Thank you Jan, I really appreciate the kind words! It has been a long road, no doubt.
Very exciting! It’s always satisfying to squash a big bug like this, isn’t it?
It IS! I’m so glad neither of these turned into something critical / unsolvable.
Thank God
Hahaha
cant wait for windows to work!
Yes! Not sure what it is about Win 10 which caused the issue, but I think it’s all fine now.
Hope you bring back solar system generation soon, just for exploratory fun. Maybe keep the generated system in the save game and not the memory, because I don’t know of any other game that does that 😉
Anyway excited to play the game for the first time 🙂
Haha, yes, that is also an option!
Congratulations! Wonderful to hear that you were able to sort out the major issues. All of the new changes will be very interesting to see.
Thank you DL! I’m super pleased – and yes, definitely, it’s easy for me to forget how big this version is and how much is new from the last…