Author Topic: Virtual Memory Issues  (Read 3233 times)

0 Members and 1 Guest are viewing this topic.

Offline Fineus

  • ...But you *have* heard of me.
  • Administrator
  • 212
    • Hard Light Productions
Virtual Memory Issues
This may well have been raised before - but I'm running into serious problems running FSO with all the features turned on.

Obvious answer? Turn them off.

But I'd still like to find out if there's a way around this... no other game has this issue at the moment - and after playing one of Lightspeeds nebula preview missions to test out the newly skinned Perseus - I ended the mission and suffered a Crash To Desktop along with the message that virtual memory was seriously low.

Opening task manager I found that the standard Windows task Explorer had ballooned from around 10mb to over 200mb in memory usage. Shutting down and restarting the task fixed the low memory problems.

I'm imagining that there's a lot of textures and what have you being booted up now - what with high res ship, nebula and weapon textures as well all the other stuff.

I'm running the latest version of all files (FSO version 3.6) and have a 1GB virtual memory paging file (...going to up this to 3GB in an attempt to solve the problem).

 
This is a problem I get with it too.  I don't run any of the fancy stuff.  But if I start and end the program several times my system starts to degrade from the low virtual memory.

 

Offline Fineus

  • ...But you *have* heard of me.
  • Administrator
  • 212
    • Hard Light Productions
Mm, understandable - I've upped the VM to about 3.0GB and haven't experienced any slowdowns or crashes (which is nice). However I still get the feeling there's a memory leak somewhere...

 

Offline Lightspeed

  • Light Years Ahead
  • 212
Well, seeing as FS2open uses ~1500 MB of memory (!!!) there has to be something really wrong somewhere.
Modern man is the missing link between ape and human being.

 

Offline SA22C

  • 26
Yeah, I usually get out of memory crashes after five or six consecutive missions.  I've also started getting the stutter when new ships appear again.

 

Offline Starman01

  • 213
  • Mechwarrior
    • Wing Commander Saga
I have the same problems. Most errors related to this are enormous
performance drops in the game right after mission start (And I use
more or less standard-flags).

Reloading the missions, or re-exiting the game solves this matter.
Looks like FS has problems loading stuff correctly. (I even encountered
this matter inside a newly created mission, where I switch the models from
5 capships to nav-bouys and back the other way).

When Exiting the game, the PC seems to be heavy busy deleting
temporary files from the HD.
« Last Edit: June 20, 2004, 04:19:59 pm by 1072 »
MECHCOMMANDER OMNITECH

9 out of 10 voices in my head always tell me that I'm not insane. The 10th is only humming the melody of TETRIS.

 

Offline Turambar

  • Determined to inflict his entire social circle on us
  • 210
  • You can't spell Manslaughter without laughter
we should direct our efforts to fixing this before we do anything else.

we being the coders..... (wonders why he said we)
10:55:48   TurambarBlade: i've been selecting my generals based on how much i like their hats
10:55:55   HerraTohtori: me too!
10:56:01   HerraTohtori: :D

 

Offline jdjtcagle

  • 211
  • Already told you people too much!
My problem is that when I exit freespace 2, it takes a long time for me to run anything else, because it's so slow...
"Brings a tear of nostalgia to my eye" -Flipside
------------------------------------------
I'm an Apostolic Christian (Acts: 2:38)
------------------------------------------
Official Interplay Freespace Stories
Predator
Hammer Of Light - Omen of Darkness
Freefall in Darkness
A Thousand Years

 

Offline Lightspeed

  • Light Years Ahead
  • 212
Thats all the memory being freed again.

Seriously - there's no way it should take up such extreme amounts of memory.

There's some really really fishy things going on, and we need to fix them.... but how?
Modern man is the missing link between ape and human being.

 

Offline Kosh

  • A year behind what's funny
  • 210
I got the same thing as Lightspeed. Definate memory leak somewhere.
"The reason for this is that the original Fortran got so convoluted and extensive (10's of millions of lines of code) that no-one can actually figure out how it works, there's a massive project going on to decode the original Fortran and write a more modern system, but until then, the UK communication network is actually relying heavily on 35 year old Fortran that nobody understands." - Flipside

Brain I/O error
Replace and press any key

 
I don't remember this being a problem with FS2.  It has to be somewhere in the code updated for DX8.

 
LS: "but how" isn't there a project to rewrite the engine from the ground up to use the same data files but with a more modern and stable engine? if not, there should be :)

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
It might be useful to know how much the difference is between fs2_open and retail fs2 using vanilla data *cough cough*.

My contribution is the currently-faulty load-only-used-weapons code. :p
-C

 

Offline Lightspeed

  • Light Years Ahead
  • 212
Quote
Originally posted by ShadowDrakken
LS: "but how" isn't there a project to rewrite the engine from the ground up to use the same data files but with a more modern and stable engine? if not, there should be :)


dream on.

That will a) never get finished b) be just the same as buggy c) not be FS2 anymore.
Modern man is the missing link between ape and human being.

 
SD: Ferrium
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Quote
Originally posted by ShadowDrakken
LS: "but how" isn't there a project to rewrite the engine from the ground up to use the same data files but with a more modern and stable engine? if not, there should be :)


If Ferrium comes out, it's much more likely the game will use formats optimized for newer stuff and you'll have to use a converter.
-C

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Just a note that I'm working on finding these leaks.  I've found and fixed almost 1Meg of recurring memory loss (lost each mission load) but there looks to be about 3 times that getting lost.  It's not enough to explain the 1500+ Meg mem usage but I'll keep working on it.

Can someone with this huge memory usage please post a set of numbers with and without the media VPs (and no mods) for me to compare against.  With every option on and all of the media VPs I can't get above 630Meg.  A plain FS2_Open is about 1/3 that number for me.  Even with the memory leaks I'm seeing it would be very hard to hit 1.5 Gig (you'd have to load over 200 levels) so there has to be something else going on.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
I'm seeing a 100 MB increase per mission with the Media VPs and Derelict. It seems to drops down about 150 MB, then goes back up 250, after the first mission loading, when I load the same mission.

A thought...Are preloaded sounds being freed?

Edit: command line stuffs
Quote
E:\games\freespace2\fs2_open_ex.exe -glow -jpgtga -phreak -ship_choice_3d -targetinfo -nomotiondebris -snd_preload -pcx2dds -d3d_no_vsync -fps  -mod derelictdata
-C

 
I used to have a lot of Virtual Memory problems on my laptop (it has 256MB worth of ram and it is trying to run windows XP pro….. yeah…). I then downloaded a RAM defragmenter program all I haven’t had much of a problems since. Here is the link to the one I use.

http://www.amsn.ro/index.php?action=8
Si Vis Pacem Para Bellem
         "If you wish for peace, prepare for war."