Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Updates
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Possible Memory Leak Fix - Worked for me


FX2K
 Share

Recommended Posts

Ive just played for 3 hours without a crash but I didn't use the memrestrict fix as these commandlines did not work for me. Normally I couldn't last for 30 minutes without a CTD and a GTA IV has stopped working error. If you are using Vista 64 go to your C: folder. If there is a file called msdia80.dll in there it is in the wrong place and causes issues with the programs that need the C++ 2005 Redistributable Package to run. It was a bug in the microsoft installer which put it in the wrong place. GTA IV does need C++ in one form or another.

 

You should put the file into:

 

C:\Program Files\Common Files\Microsoft Shared\VC.

 

This is the correct folder for this file.

 

Next you need to register the files location so open a command prompt and type this exactly:

 

regsvr32 "C:\Program Files\Common Files\Microsoft Shared\VC\msdia80.dll"

 

You should get a message saying it was completed and you're all set. Could somebody try this and confirm it works? It seems a coincidence that once I've done this I don't get a crash.

 

More info here on the issue:

 

http://support.microsoft.com/kb/927665

Edited by kitch9
Link to comment
Share on other sites

using -memrestrict has definately the best commandline switch for me.

 

I started using it again 2 nights ago and I have a much longer time before any issues with textures and lagging, in fact it has pretty much made the game stable for me dare I say it.

 

I use the 'high' settings as that's how I like to play smile.gif

Link to comment
Share on other sites

howto set those commands, what do i have to do?

 

add commandline.txt to gta directory with the commands !??!

Link to comment
Share on other sites

tried this fix and it didnt do much for me. im still in the 30fps range all the time and up at 60 while in alleys or indoors.

 

I use 8gb of ram tho and uses the line -nomemrestrict so the overall system usage goes up to about 4.5gb or so

 

the best FPS boost I have ever seen was goin from 2.4 to 3.4ghz and then using -minspecaudio

 

GIVE -minspecaudio a try, it really helped before and after the overclock.

Link to comment
Share on other sites

Specimen Yarp

sadly, this did not help me either. I tried low, medium, and high.

 

My computer should be able to play this.

Vista 32 bit 4 gigs ram

AMD Phenom II X4 940

ATI 4870X2

 

But the game stutters so much it is completely unplayable. You heard me rockstar toronto. COMPLETELY UNPLAYABLE.

 

Fix this f*cking game already.

Link to comment
Share on other sites

Situation is as follows.

Fresh game ran ok for me with -nomemrestrict to fix texture pop ups.

 

Patch 1 -nomemrestrict now caused huge freezes and stuttering, gladly i found this thread and used the line here for medium, worked perfect again, hours without texture pop ups and stuttering.

 

Patch 2 , now i have to play without any commandline and with those pop ups which are simply ugly, any kind of nomemrestrict line causes game to stutter and freeze again.

 

Has anyone found decent solution against texture pop ups that works with patch 2?

 

P.S going from [email protected] (Core 2) --> [email protected] (quad core)

doubled my fps from 20-30 to 40-70 (lowest ive seen now is 35, very rare) and as someone stated if you dont want that good audio quality use -minspecaudio, helps a lot. I prefer better quality.

Link to comment
Share on other sites

This might seem a bit odd...

 

Anyone that generally gets good fps, but after playing for a while you start getting dropped frames and bad and uneven fps, please install Fraps and as soon as you start getting uneven fps, before its even bad, start recording.

 

Set the fraps settings to 30fps(to limit hd hit), half size and no sound(to limit cpu hit), and i think youll find that as long as your recording, the stuttering stops completely, all you lose is the fps you normally would from frapsing(depending on your system) and a bit of hd space.

 

Please confirm if this works for you! This is obviously not a fix, but if fraps can fix this game, R* can too.

Edited by Psymn321
Link to comment
Share on other sites

This might seem a bit odd...

 

Anyone that generally gets good fps, but after playing for a while you start getting dropped frames and bad and uneven fps, please install Fraps and as soon as you start getting uneven fps, before its even bad, start recording.

 

Set the fraps settings to 30fps(to limit hd hit), half size and no sound(to limit cpu hit), and i think youll find that as long as your recording, the stuttering stops completely, all you lose is the fps you normally would from frapsing(depending on your system) and a bit of hd space.

 

Please confirm if this works for you! This is obviously not a fix, but if fraps can fix this game, R* can too.

o_O

 

this is just causing a 30fps cap... which you can just use http://rapidshare.com/files/160642187/FPS_Limiter_0.2.rar instead of wasting hard drive & cpu space & time

 

other game devs (NFSprostreet patch2, saintsrow2 before patch1, ETQW default, etc) cap to fairly low fps to avoid the uneven feel or stuttery jumps, though 30 annoys me

Link to comment
Share on other sites

sadly, this did not help me either. I tried low, medium, and high.

 

My computer should be able to play this.

Vista 32 bit 4 gigs ram

AMD Phenom II X4 940

ATI 4870X2

 

But the game stutters so much it is completely unplayable. You heard me rockstar toronto. COMPLETELY UNPLAYABLE.

 

Fix this f*cking game already.

you're trying to run 32bit with a 1gb (usable) gfx card & 4gb ram!?

 

you need to get vista64 or at least be using catalyst drivers 8.12 or newer, as any older ones (including those on the cd of the card) stutter

Link to comment
Share on other sites

 

this is just causing a 30fps cap...

 

Its not JUST that. When its not stuttering, 30/40fps is very smooth. When stuttering starts, it can be felt at 30/40fps, if you watch the motion of the camera as it follows the car. When my computer is stuttering, 30fps with fraps running is PERFECTLY SMOOTH (as 30fps ever is), while 30/40fps without fraps is jumpy and stutters. (sorta like 3 bursts of frames per second)

 

As a fps fan since wolfenstien, im usually very sensitive to fps/framedrops and all im sayingis that if you get stutters, high fps/low fps, it doesnt matter, recording with fraps WILL reduce your fps, BUT ALSO will resore an even framerate (all frames split evenly over each second rather than in 3 bursts of frames per second).

 

If this was just acting as a 30hz vsync, then you would expect that it would have no effect when recording and getting less than 30, but it cures ALL stuttering, at all framerates and even 20fps is more playable with fraps recording than 20fps without.

 

I dont expect people to use this fix for ever, but if a few can try it and see if my computer is a freak or if fraps cures stutters at the cost of a few fps, then we can start confidently asking R* to fix it without them telling us our PC's are sh*te. tounge.gif

Edited by Psymn321
Link to comment
Share on other sites

hey folks!

 

have u got any idea why when i use -memrestrict 629145600 command (or any other - i'd like 900mb preferably) it doesnt change? i mean, the limit in options does not increase?

Link to comment
Share on other sites

If you want to change the limitations in the options menu, this command is not the one.

 

If you want to increase the available resources in the options menu to show 900MB, use the "-availablevidmem 1.8" command providing you have a video card with 512MB of VRAM.

 

Or you could use the "-norestrictions" command to simply remove all restrictions so that you can adjust your settings to whatever you want wink.gif.

FIOszpJ.gif

Link to comment
Share on other sites

Why isn't this a sticky post yet? It solved my problems when game was crashing.

 

Charlie didn't even include this in his FAQ.

Link to comment
Share on other sites

I have had the "memory leak" problem ever since I bought the game (5 days ago). I tried what the first post in this thread suggested, but had no luck. I did however used the "-availablevidmem 0.9" as my ONLY commandline item ALONG with MemTurbo 4 fix (it's in this forum somewhere, just search it) and managed like one hour and a half of game time, before I quit to go to bed, no slow downs or stutters whatsoever.

 

I assume it is the combination of the two since I tried with "-availablevidmem 0.9" only with negative results. I might be wrong, maybe I got lucky for this session only. I will post again latter when I play again.

 

So for me this seemed to do it, at least until a new patch emerges, so I leave you with my specs so that maybe someone can also fix their memory leak problems:

 

OS: WinXP 32 bit Sp3

MOBO: A8N SLI Premium

CPU: Athlon 64 X2 4200+ @ 2.2 GHZ

GPU: Nvidia 8800 GT 512 MB

RAM: 3GB DDR 400

 

BTW I know nothing of the inner working of these settings, just did trial and error for like 5 days until something worked.

Link to comment
Share on other sites

I have a GTX 285 with 1 GB and -memrestrict 629145600 didnt work, i got resc10 again. But -memrestrict 4612608000 worked!

 

Thats somehow funny, because 600 MB restriction does not work with 1 GB vram? but 4612608000 should be around 400 MB +- something...and this works oO I cant see any connection between the performance and that number after memrestrict...

 

In my settings there is 870/1001 usage, so both 600 and 400 MB are below that. And what happens to the "data-garbage" of the memory leak when the vram is restricted? (because i think the leak is still there, just restricted...)

 

btw: GTA4 ate after an hour of playing 1,5 GB (is that normal? oO), so i think the stuttering of some people just comes from their full RAM, and then windows uses the hard disk, which is much slower than RAM. After that hour 4,5 of my 6 GB were full...

Edited by schidin
Link to comment
Share on other sites

But these values didnt jump out of my head^^ I had the task manager open on a second monitor and my G15 showed it on the display, GTA4 just eates more and more RAM. What settings do you play? Or is it another bug of GTA or some driver problems with my computer?

 

I play with 1920*1200 and everything on "high", only the settings with bars (shadow-density, view distance and so on) are low at 30 or so and I only use -memrestrict 4612608000.

Edited by schidin
Link to comment
Share on other sites

guys any one knows if this works with the 2nd update coz i used it then the game freezed again.. angry.gif

also when i try to make a mission i got a loading screen and nothing happen so does this command fix this issue.. dozingoff.gif

 

 

Edited by DoXz40
Link to comment
Share on other sites

Worked for me on High Textures...

 

Athlon 64 X2 6000+

4Gb OCZ RAM

9800GTX+ (1Gb) / 8600GT (PhysX)

Vista Ultimate...

NVidia Driver: 182.06

Playing on 1680x1050

 

Thanks...

Link to comment
Share on other sites

It should be added to FAQ ASAP, solve all my problems! (a long while ago, but I'm shocked, that it still isn't sticky, or even in FAQ...)

Link to comment
Share on other sites

It should be added to FAQ ASAP, solve all my problems! (a long while ago, but I'm shocked, that it still isn't sticky, or even in FAQ...)

It should be NOT added because it doesn't work

Link to comment
Share on other sites

It should be added to FAQ ASAP, solve all my problems!  (a long while ago, but I'm shocked, that it still isn't sticky, or even in FAQ...)

It should be NOT added because it doesn't work

It doesn't work for you.

It works for plenty of others including myself.

Try this for getting it to work.

 

pinky  Posted: Feb 18 2009, 11:28

What I did is resolution you play at multiplied by VRAM amount shown used by the game for your graphic settings and then the answer is multiplied by 2.

Should look something like this. (((1920 x 1200) x 512) x 2) = -memrestrict 235929600. That method works for me but I ain't promising anything, I have fine tuned it a little later to improve FPS as well.

If you are using the -memrestrict commandline DO NOT use -nolimits or -nomemrestrict commandlines. To get your graphics above the limit use -availablevidmem method found elsewhere in the forum.

Those are numbers for example purposes and not my current ones in use BTW. wink.gif

 

This worked for my 285s but may be different depending on what card you have. The standard R* settings crashed all the time too.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.