Castle Story

Castle Story

View Stats:
Can we get a quick and dirty fix for the memory leak?
So in my exsperiance with the game there is a pretty bad memeory leak that makes evreything sluggish forever, until you save and load; for me that seems to fix the problem for a while. If I could get a one-button Save and reload, or have saving and reloading happen evrey 2-5 min, it would go a long way to make the current version more playable.
I am sympothetic to the workload of the dev team but this is realy a S.M.O.C.
< >
Showing 1-12 of 12 comments
GUC Nov 13, 2013 @ 12:54pm 
Just press the Delete key, its not a memory leak, its particles laying around (wood,rocks,debris from enemies if you are playing survival) taking up all your memory.

I press Delete every few minutes and I get no lag at all.
Last edited by GUC; Nov 13, 2013 @ 12:55pm
Cheechako Nov 13, 2013 @ 2:10pm 
Originally posted by illidian:
lol, if you bought a fishtank and it leaked, would you be fine with just filling it up over and over or would you like that leak to just go away and not have to deal with it......I'm waiting for the devs to fix issues and not just find workarounds.......

Why are you putting water in a fishtank when it had a sign saying, "Broken. Will fix one day"? I'm no genius, but I would wait to put water in it or buy one that isn't going to leak. There is a disclaimer on this game. It is worth a read.
The_Box Nov 13, 2013 @ 2:32pm 
They aren't just finding workarounds. The leaks that have been emerging have been different leaks. And honestly, I'm not entirely sure a memory leak is to blame here, I need to start the game up and actually watch it's memory use and see if it's balooning. I have 24gb of RAM, so most memory leaks don't effect me, so I need to watch for them in other ways.
nccvoyager Nov 13, 2013 @ 2:46pm 
For me, it's never really been a memory leak exactly...
In my case, the game uses 400 MB of physical memory, and then won't grow from there which eventually leads to a crash from a lack of available memory.
I'm still running an old dual-core with 4GB of RAM, and apart from my RAM not being used as needed and a little delay upon giving orders to Bricktrons, I never run into any really noticeable issues. (A few block placement errors, graphical glitches, but no game-breaking bugs really.)
From my testing with friend's computers, some issues I have seen were caused by trying to run the Unity engine on a 64-bit system. (Unity doesn't have a native 64-bit version, and that can cause some... Issues.)
The_Box Nov 13, 2013 @ 3:00pm 
I'm not sure about that either NCC. The game runs like a dream for me with almost no issues at all aside from the minor ones you mentioned, and I'm on a 64-bit platform.

That's why it's so hard to track down the actual cause here. There doesn't seem to be many common factors.
nccvoyager Nov 13, 2013 @ 3:19pm 
Yeah... Entirely true.
Just throwing out that while testing on my friends computers, those with 64 bit had higher incidences of game-breaking bugs than those with 32-bit systems.
Dunno though. Could just be coincidence. :P
Cheechako Nov 13, 2013 @ 3:23pm 
Originally posted by nccvoyager:
(Unity doesn't have a native 64-bit version, and that can cause some... Issues.)

I did not realize that. I currently have 3 Unity games. One is a simplistic FPS that I haven't put much time into. The second is early access, and is also FPS. I personally haven't see much lag, but there are various early stage quirks and glitches and whatnot.

In CS, I had lag at times, which the DEL key would often fix. I think sometimes a save and reload was needed. It seems the white box task is inevitable even for one session of play. I could never get very far in sandbox or survival, so I don't know how bad it would get in a elaborate castle or waves past the teens.

Overall, that makes it 2 Unity games that seem technically playable for me and 1 that has lag coming and going. Castle Story is also the one that seems to push the UI beyond "basic" FPS and has this fancy UI which shows the need for optimization as well.

Oh well. It just goes to show that a pre-made engine isn't a simple solution to the many development issues.

@illidan: No, you were comparing physical products to entertainment software. That is never a valid comparison. You were also stressing the fact that you are pissed off. But seriously, this is EARLY software. The developers have every right to say, "Memory leak? No clue. We'll fix it one day." All the disclaimers add up to that. Instead, they give us a temp fix and you pick that to bash upon? Sigh.
Last edited by Cheechako; Nov 13, 2013 @ 3:24pm
Haardvark Morgan Nov 13, 2013 @ 5:09pm 
I just assumed it was a memeory leak because reloading seemed to resolve it, it could be anything; From what I understand unity 3D is a tricky tool to workwith from a hardware perpsective :KScared:
I have no idea what is causing it to be so sluggish, My first 3 games where unplayaby sluggish, but now I seem to be chugging along at a better rate; Very strange its like I wished hard enough and got a playable game.
The_Box Nov 13, 2013 @ 5:28pm 
Originally posted by IChangedMyNameAgain:
I just assumed it was a memeory leak because reloading seemed to resolve it, it could be anything; From what I understand unity 3D is a tricky tool to workwith from a hardware perpsective :KScared:
I have no idea what is causing it to be so sluggish, My first 3 games where unplayaby sluggish, but now I seem to be chugging along at a better rate; Very strange its like I wished hard enough and got a playable game.

Really? That works? Quick, start wishing hard enough that I had more money! And blackjack! And waffles!

But no, seriously, there might be a memory leak. That sort of issue is incredibly common in software development. The source just hasn't made itself known just yet, if there is one. :)
Maybe it's not a memory leak you may have an Overfilled Fishtank so to speak. Upgrade the Virutal Page Memory to 1GB min and 2GB Maxium works for me with 2GB of RAM plus page file 32 Bit so it should work for you.
My computer used to run like crap then when I did this it ran amazingly well
I get no lag problems and pretty much unless I run minecraft I have no memory problems plus I stopped playing minecraft a while back anyway
So to change virutal Page File since someone might ask me do the following Steps
1. Click on Start
2. Right Click on Computer
3. Click on Propterys
4. Click On Advanced System Settings
5. Click on the Advanced Tab
6. Select Performance and click settings
7. Goto Settings first things first change Adjust to best performance of Programs if it ain't already
8. Select Change under Virutal Memory and turn off system mange pageing file.
9. Change it to around 1GB min to 2GB Max I have it currently set on 1024 to 4404 you can set it to anything but make sure it's at least 1GB to 2GB and then click set and you may have to restart computer.
10. Restart Computer and Enjoy Playing!
Last edited by The_Box; Nov 15, 2013 @ 10:07pm
The_Box Nov 15, 2013 @ 10:08pm 
That's a tremendously good walkthrough on that. I'd honestly forgotten about increasing the page file size, I haven't had to do that in ages. But for people without much RAM, that's a very good idea.

Outstanding idea, Fullmetalalchemist. :)
FireWaran Nov 16, 2013 @ 2:34am 
A short notice on the "virtual memory", best - in my opinion - is:

Create the "virtual memory" and give it a fixed size. With that steps you have one large block on your disk. Second, if its a fixed size the system does not waste resources in maintining the virtual memory, e.g. make it larger or smaller.

Additionally with older OS than Windows Vista (not entirely sure), you could disable virtual memory at first and then reboot. Then "defrag" the drive you want the virtual memory to be stored on. In some cases a drive has not enough free continuous space available then you risk a split file. This steps helps to ensure that the virtual memory file stays in one piece. Of course you may do this before creating the virtual disk.

WIth Vista and newer the system should do this automatically for you.

I dont know, but these mechanics could also work on other OS's.

Sure there are more advanced techinques like placing the file on the fastest spot on your drive but these - for my taste - not necessary here.
< >
Showing 1-12 of 12 comments
Per page: 1530 50

Date Posted: Nov 13, 2013 @ 11:33am
Posts: 12