Custom clothings doesn't get unloaded properly or are taking too long to get unloaded

  1. Client (production/canary) and FXServer version
    Canary (B2612) | Latest FXServer
  2. What you expected to happen
    To clothings get properly unloaded from VRAM memory
  3. What actually happens
    They doesn’t get unloaded properly, or are taking too long to get unloaded, leading to load issues (world, animations, vehicles, etc)
  4. Category of bug (eg. client, server, weapons, peds, native)
    Client
  5. Reproducible steps, preferably with example script(s)
  • Repro script:
    UnloadRepro.rar (632 Bytes)
    (this script will preload all the ped components one by one and release them after the component is ready and is set to the current player ped)

  • It doesn’t matter if you are adding clothings in new YMTs, or replacing vanilla ones.

  • If you don’t replace or add any add-on and use the repro with Vanilla clothings only, everything gets unloaded properly.

  • It seems like the VRAM usage goes down after some minutes running the repro, but it might be just a normal behaviour, or the game take too long to release those assets and being broken in the end? (just a assumption)

  • Photos showing high VRAM usage & assets not getting released properly


  • Photo running the repro script after 5 minutes (showing world loading issues & showing streaming list)

  • Photo running the repro script after 10 minutes (showing world loading issues & showing streaming list)

OBS.: I know i’m using NVE in those screenshots, but it doesn’t matter if i’m using NVE or not, the problem still happens without it.
OBS.2: Doesn’t seems to be a issue with the drawables itself, as i tried to re-export them using latest CodeWalker and the issue persisted.

I’m unsure what else information would be useful, so please let me know if you need any extra information :slight_smile: