Jump to content

Memory Leak question


Recommended Posts

I just read through the changelog on the forum, and I only saw "memory leak" mentioned wrt ground scatter; not with scene change or with tweakables.

I might have read over it, but …any thoughts?

"Memory Leak" is "human readable", not really a programming term (it's a symptom of a problem, not the problem itself)

For instance, lets say a few resources never unloaded correctly between VAB switching but at the start of the switch you call to load the resources again, while this does create a "memory leak" the leak is a symptom, the problem was that resources were never fully unloaded. Why they weren't unloaded can also turn the not-unloading into a symptom, given the way unity and C# works; if the "problem" lies with how C# handles variables, then making work arounds to that would fix a "memory leak" but now we're barely talking about the initial leak but improvements on garbage collection.

Edited by Fel
Link to comment
Share on other sites

so... the big question since im at work and cant test it myself:

is it fixed?

I don't see a memory leak in 1.0 :) It has consistently stayed under 2 GB useage and has never peaked past that. It also drops when I go into the VAB, etc. after flight.

Link to comment
Share on other sites

I don't see a memory leak in 1.0 :) It has consistently stayed under 2 GB useage and has never peaked past that. It also drops when I go into the VAB, etc. after flight.

that is the best news i have heard all day.

thanks!

Link to comment
Share on other sites

Well, the 'memory leak' is not a leak per se :)

It's just that in some cases, the game does not free memory it no longer needs. So when these unfreed memory starts to accumulate, while the game keeps requesting new free memory, you soon hit the 32bit memory limits (for the 32 bit client of course) once that happens, the OS will start using the hard drives as a cache, slowing down the game tremendeously (most os's aren't suited to address more memory than that) - or outright crashing the game.

Just so that everyone is on the same page, not freeing memory that you no longer need is the very definition of a memory leak.

Link to comment
Share on other sites

So far my old XP is bugging like hell, I can't access any building in KSP if I don't -force-opengl and I lag like hell as soon as atmospheric effect kick-in.

Still looking for the right option to play normally.

Edit : My problems was solved doing this.

Open up your Settings.cfg file in Notepad and look for the TEXTURE_QUALITY line. Change this value to 1 (so it reads TEXTURE_QUALITY = 1) and save the file. Then try to run KSP again.

Some of the default settings were overwritten in 0.90, causing the textures to take up more memory than necessary in some cases.

Edited by Kegereneku
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...