Skip to content
View in the app

A better way to browse. Learn more.

LCPDFR.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Working memory leak (missing textures) fix

Featured Replies

Anyone knows of any good way to fix the memory leak a.k.a. missing textures in GTA IV? I've tried multiple commandlines, so I'm pretty much out of ideas at this moment.

I know it's not related to how good your computer is, since GTA IV is a piece of shit *clears throat* port.

 

Anyway what you should know about my GTA IV, is that all of the cars are replaced with high poly car mods (wfts are at an average 2 MB size, while wtds are at a 1 MB), so it's a pretty heavily modded GTA, and textures are on high. I don't wish to put the textures down to medium, since GTA's graphics is already kind of outdated, what I'd like is to fix the memory leak in a way so at least I could play through the missions.

What I can do right now is pretty much like 1 or 2 missions if I'm very lucky, and then everything disappears, cutscenes won't load etc.

Unfortunately I'm stuck in the story, because no matter what I do the mission just can't load at this point, that's how bad my memory leak is.

 

I've tried these commandlines so far:

-nomemrestrict
-norestrictions
-percentvidmem 100

-memrestrict 629145600   (from gtaforums.com)

-availablevidmem 4.0         (4.0 seemed to work best)

 

I've tried some of them all on their own and some combined with others.

 

TL;DR version:

If anyone knows a possible or known working fix for this, no matter if it reduces FPS or not, please share it with me.

 

 

Ps.:

For reasons unknown to mankind, my EFLC works like a charm, no memory leak at all, no matter what map mod / car mod I use there.

EFLC is a lot stabler than GTA IV indeed and I've numerous times finished its storyline with a 250+ MB vehicles.img, fully customized weapons.img, HD city textures and a heavy ENB. Add to that the ped mods, sound mods, script mods and other miscellaneous mods.

 

My GTA IV, on the other hand, freezes on the second mission with a vehicles.img containing only modded police vehicles. So yeah, GTA IV is pretty much a bad port for sure.

 

 

Also, God knows I have rebuilt my .imgs everytime I change a vehicle/weapon. Maybe even more. But the problem with IV still persists. I never got missing textures (maybe on some specific missions for a limited period of time) but most of the time it was just freeze and/or crash.

[img]http://i59.tinypic.com/2v0db9x.png[/img]

  • Author

I already tried rebuilding my vehicles.img, however that still didn't fix the problem. (I used OpenIV's rebuilder, so I might just try it with SparkIV too). I believe my vehicles.img is still too big after rebuilding. It's currently 338 MB instead of being ~90 MB like the vanilla. I do have all the weapons modded, some peds modded (once again my wtds rarely exceed 1 MB), a new visualsettings.dat, timecyc.dat, ENB and some other .dat mods I can't remember right now (although these are stuff like material changes, so it wouldn't effect performance).

 

I have very similar mods in EFLC, except for the car mods. In EFLC, I only modded all of my police cars + added like 6 new vehicles. I even have HQ map mods in EFLC, but I don't get the texture bug there.

 

I even wanted to add DKT70's road textures to GTA IV, but I'm afraid I wouldn't be able to move out of the house, without losing textures.

 

Also I'm not very sure it's just GTA IV, since my friends reported, GTA IV being superstable for them, while EFLC was the one that kept crashing for them every 5 minute. I guess it depends on the OS + the computer.

I already tried rebuilding my vehicles.img, however that still didn't fix the problem. (I used OpenIV's rebuilder, so I might just try it with SparkIV too). I believe my vehicles.img is still too big after rebuilding. It's currently 338 MB instead of being ~90 MB like the vanilla. I do have all the weapons modded, some peds modded (once again my wtds rarely exceed 1 MB), a new visualsettings.dat, timecyc.dat, ENB and some other .dat mods I can't remember right now (although these are stuff like material changes, so it wouldn't effect performance).

 

I have very similar mods in EFLC, except for the car mods. In EFLC, I only modded all of my police cars + added like 6 new vehicles. I even have HQ map mods in EFLC, but I don't get the texture bug there.

 

I even wanted to add DKT70's road textures to GTA IV, but I'm afraid I wouldn't be able to move out of the house, without losing textures.

 

Also I'm not very sure it's just GTA IV, since my friends reported, GTA IV being superstable for them, while EFLC was the one that kept crashing for them every 5 minute. I guess it depends on the OS + the computer.

 

Have you installed Area Livery Mod V2.0 into IV? I have, and for me texture loss in my case is an necessary evil, I can't play with out my liveries.

 

Cheers.

0uYcObx.jpg

Less car mods, obvious fix.

 

Other than that, you can try my commandline that I personally use. One or more of these commands (availablevidmem/norestrictions) does the trick for me. I used it to fix the disappearing roads but it also seems to *delay* or get rid of missing textures and keeps my game stable for a while.

 

I've attached it. Don't use any -memrestrict commands, as far as I'm concerned thats used for seperate issues. But if this doesn't work you can always take out the -norestrictions and -nomemrestrict for a -memrestrict (value).

 

 

Another weird issue related to tetxure loss and invisible world(s) happened to me when I adjusted my pagefile. I made it as big as my RAM and set the max a little higher, and I couldn't play without the same issue you are having, Try making a system managed pagefile or a fairly large one if you haven't already got one in use.

 

That's just my experience, There's also one other thing that somebody posted where you can "unlock" the game in a sense letting it utilize more memory, you'd have to search for it. I use that + I have my memory autoclean every 5 minutes and I get no FPS nor memory leak issues, but it's also safe to assume its just GTAIV's terrible port causing memory leakage, and there's not much you can do about that.

 

 

 

Also I'm not very sure it's just GTA IV, since my friends reported, GTA IV being superstable for them, while EFLC was the one that kept crashing for them every 5 minute. I guess it depends on the OS + the computer.

Yeah, GTA loves doing that. It's fine with some builds and not others, Sucks too  :teehee:

Edited by Sonny236

  • Author

Well tbh deleting car mods is not an option for me. I've spent a tremendous time adding all the car mods and make handlings for all of them 1 by 1, and also I've decided to replay GTA IV in a way that the whole game looks like a 2012+ NYC.

I did notice how some commandlines can expand the time you lose your textures (for example by using -norestrictions and -nomemrestrict at the same time), however that still only gives me time to finish one or two missions. I might try your commandline, however you seemed to have lowered a few graphic options (like shadowdensity 0, and minspecaudio). Also I believe -novblank and -novsync is the same thing.

Also I remember having a program that clears my memory whenever I wanted to do that, but I also remember that thing, not helping with GTA IV. It was like, even when I alt tabbed out of IV, and then cleared my memory, then went back to IV, my textures were still gone.

I guess I'll have to face the terrible truth, that GTA IV is a sith lord... what? ... I mean that it's a piece of shit port and there's no way of fixing the texture bug with car mods. Hell I even had the texture bug when all of my cars were vanilla, but it only happened after like 1 hour of playing.

Well tbh deleting car mods is not an option for me. I've spent a tremendous time adding all the car mods and make handlings for all of them 1 by 1, and also I've decided to replay GTA IV in a way that the whole game looks like a 2012+ NYC.

I did notice how some commandlines can expand the time you lose your textures (for example by using -norestrictions and -nomemrestrict at the same time), however that still only gives me time to finish one or two missions. I might try your commandline, however you seemed to have lowered a few graphic options (like shadowdensity 0, and minspecaudio). Also I believe -novblank and -novsync is the same thing.

Also I remember having a program that clears my memory whenever I wanted to do that, but I also remember that thing, not helping with GTA IV. It was like, even when I alt tabbed out of IV, and then cleared my memory, then went back to IV, my textures were still gone.

I guess I'll have to face the terrible truth, that GTA IV is a sith lord... what? ... I mean that it's a piece of shit port and there's no way of fixing the texture bug with car mods. Hell I even had the texture bug when all of my cars were vanilla, but it only happened after like 1 hour of playing.

 

Oh I didn't know you were playing the actual game, as you mentioned missions. Anyways you can take out the lower-graphic settings stuff like the shadow/texture and rendering as well as the FPS-limit. I barely average 25-30 FPS on my low-end computer so I keep things at a minimum, however that seems not to be your case.

 

As for alt tabbing, that personally messes up my game and if anything causes short-term FPS drop after tabbing in. Use CleanMem and set it to automatically clear your Cache file as well as memory every 5 minutes or so, I've set this with windows as well so after booting it starts cleaning every 5 minutes, It really helps me (I'm not sure about you, it varies by PC) and the only noticeable thing is a 1 second or less freeze every time it's set to clean.

 

Having any ENB's/Excessive car mods will have a 90% chance of causing issues, but if your okay with keeping them in then I guess you'll have to find a workaround still.

 

Thats just my experience, If none work then hopefully you find a way. Good luck!

Edited by Sonny236

This is a support topic.
Only reply here to offer help or assistance to Sgt.Kanyo. Off-topic or "me too" replies will be removed.

Need support yourself? Make a new topic instead.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.