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.

[WIP] Free GTA Memory (no more ghost car, improve GTA stability)

Featured Replies

I agree with @BejoIjo. For me this plugin did fix the "ghost car" issue and it has also improved stability as I haven't had a CTD for a while now. Btw, when do you plan on doing a public release of this plugin? And one more thing, just want to thank you for all your hard work lately. It's very much appreciated. :thumbsup:

  • 1 month later...
  • Replies 24
  • Views 11.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • You're fine then. I guess your rig is pretty new and high end one.     Yes. Please give it a try. You'll not regret it. You will also feel that your surrounding will be more dense and

  • PNWParksFan
    PNWParksFan

    I find it surprising that this is any more than placebo effect. Entities which are not marked persistent already get cleaned up (very aggressively!) by the game engine when they are not within view of

  • Hi, I disagree with you saying this is just a placebo effect. It does have an effect, especially fixed my "ghost car" issue. If you scroll up a few threads, there are users who also found this pl

Posted Images

I have issues with my GTA where I get "Game ran out of memory" errors after about an hour to 3 hours of gameplay on LSPDFR. Usually happens when I hit pause but would also sometimes happen trying to perform tasks for a callout or traffic stop.

 

I have an i7 6700K, 16GB 2800Mhz DDR4 RAM and a 6GB 1060. My RAM usage typically peaks around a little under 8GBs before a crash occurs. Would this plugin actually help me? Friend of mine recommended this plugin to help.

Edited by SanguinemLuna

Trooper Luna, Unit# 3C15/3-Charles-15, Liberty State Trooper

  • 1 month later...
On 12/30/2017 at 6:51 PM, BejoIjo said:

Hi,

 

I just wrote a simple RPH plugin to overcome my issue with the "ghost car".

What is it? "Ghost car" is car without driver that might appear after you play the game for a while (30-60 minutes).

 

This strange phenomena happens because GTA has a bug which somehow it doesn't clean up all entities properly.

When GTA runs out of allocated memory to display peds, it can't create new ped to be spawned as a vehicle drivers.

 

This GTA bug affects LSPDFR traffic stop functionality as well as some other issues (e.g. unable to stop walking peds with E key).

 

There's a cure for this which is included in RagePluginHook. You can always open the console and type "CleanWorld".

This cure is indeed working. But I don't like it because it is a brute solution.

Sometimes, I got flickering or missing textures a while after submitting "CleanWorld" command.

 

The plugin that I wrote will overcome the GTA bugs by periodically cleaning up entities which is already out of sight.

Don't worry. It is safe because it only cleans up non-persistent entities. 

Other than that, it will not clean up a blipped entities, which is usually spawned by callouts. So, your callouts will still work fine.

 

I've tested using it and after 2 hours, I didn't  encounter any "ghost car". (usually, after 1 hour I would see them)

 

I haven't released it on the mod download page, because I want to have your feedback first.

 

Please try this out:

 

Since this is an RPH plugin (not LSPDFR), simply put it in the "Plugins" folder and make sure to check it in RPG plugins settings to be loaded during startup.

Otherwise, you can also load it manually from RPH console by typing: LoadPlugin FreeGTAMemory.dll

 

Please try and give me your feedback. Enjoy!

 

BR.

 

 

 

On 1/9/2018 at 8:42 PM, Sgt.Kanyo said:

Anyone tried this with a heavily car modded GTA?

 

Last time I tried to mod all of my cars to real cars (even taking into consideration not using insanely high polygoned or oversized .ytd cars), I got major texture bug, but I believe this mod might be able to solve that issue.

 

Hi man, I just signed up to this forum only to thank you for this amazing script 😍. It saved my ass! I was getting crazy trying to figure out how to keep all my mods without crashing every 15-20mins. 

I have a heavily modded game: almost any terrain vehicle has been replaced with huge files; I have graphics mods such as natural vision remastered, la roads, la vegetations, time scripts, weather scripts and so on... Also I have installed the enchanted native trainer, which does is part to make the game heavier. 

My vechicles are only ADDONS, and I have 5 (if not more) scripthookvdotnet plugins installed.

 

I was running always in the "err_mem_embeddedalloc_alloc" error, but I also expanded the memory heap of the game to 650MB... Better, but didn't fix the problem. Now, with the bigger memory heap, your script and the gameconfig you suggested in the previous comments, I managed to run the game for over 1h without any crashes (I had no time for playing more, but I'll notify you for any updates). Also, I tried to stress my game by firing rockets in places with a lot of vehicles, but the game was still stable. So, well, thank you a lot and keep it up! 💪

 

Here are my system specs:

- i7-4770k OC 4.4Ghz (4ghz cache)

- 24GB RAM DDR3 OC 2133MHz CL11 (stock were 1600)

- GTX 1070 OC (2050MHz clock, 9200MHz memory)

- native 4K monitor... so huge amount of VRAM used 🤔

 

Some pics... 😎 https://drive.google.com/drive/folders/13SSwkjRhYo1sHUYpaXqGLmNMTmI7vVxD?usp=sharing

 

Desktop Screenshot 2018.07.03 - 11.30.36.99.png

Edited by GhRacer
corrections

@BejoIjo UPDATE: played for almost 2h without any issue. Great fix 🤩 The only little issue I found is that some objects are despawning too quickly, such as trailers if I move a little around without looking them (but trailers despawn frequently also in the vanilla game, so that's not totally your fault). So you could try to improve this, but you made a great job anyway. Thank you a lot!

 

I also overclocked a bit more my gpu memory (making it less stable), bringing it to 9600MHz. No problems anyway! The game is more stable than usually.

Edited by GhRacer

  • 2 years later...
On 12/30/2017 at 6:51 PM, BejoIjo said:

Hi,

 

I just wrote a simple RPH plugin to overcome my issue with the "ghost car".

What is it? "Ghost car" is car without driver that might appear after you play the game for a while (30-60 minutes).

 

This strange phenomena happens because GTA has a bug which somehow it doesn't clean up all entities properly.

When GTA runs out of allocated memory to display peds, it can't create new ped to be spawned as a vehicle drivers.

 

This GTA bug affects LSPDFR traffic stop functionality as well as some other issues (e.g. unable to stop walking peds with E key).

 

There's a cure for this which is included in RagePluginHook. You can always open the console and type "CleanWorld".

This cure is indeed working. But I don't like it because it is a brute solution.

Sometimes, I got flickering or missing textures a while after submitting "CleanWorld" command.

 

The plugin that I wrote will overcome the GTA bugs by periodically cleaning up entities which is already out of sight.

Don't worry. It is safe because it only cleans up non-persistent entities. 

Other than that, it will not clean up a blipped entities, which is usually spawned by callouts. So, your callouts will still work fine.

 

I've tested using it and after 2 hours, I didn't  encounter any "ghost car". (usually, after 1 hour I would see them)

 

I haven't released it on the mod download page, because I want to have your feedback first.

 

Please try this out:

 

Since this is an RPH plugin (not LSPDFR), simply put it in the "Plugins" folder and make sure to check it in RPG plugins settings to be loaded during startup.

Otherwise, you can also load it manually from RPH console by typing: LoadPlugin FreeGTAMemory.dll

 

Please try and give me your feedback. Enjoy!

 

BR.

 

 

 

 

 

 

Is it still working? Can you update it? @BejoIjo

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.