Server
Operating system: Windows
Resources: Default resources and one custom for the repro (shared bellow)
Player needed : Yourself is enough
Incident
The SetStreamedTextureDictAsNoLongerNeeded doesn’t do the job, the streamed texture will stay forever in the memory.
[Script] https://github.com/CookayGaming/reprotexture
[Video] https://streamable.com/lhq59h
- As you can see, the first time starting the resource will load the texture (being visible in strmem).
- As expected the texture dict isn’t loaded so the script will request it.
- The sprite is displayed and everything seems good.
- After the 2sc timer we stop displaying the sprite and we call SetStreamedTextureDictAsNoLongerNeeded.
- You can clearly see that the dict is still in the memory (strmem menu)
- I restart the script, when it goes in the : HasStreamedTextureDictLoaded it return true, that means it isn’t a visual problem, texture is still loaded.
Another thing, if you disconnect from the server but don’t quit the game and the reconnect the texture will still be in the memory, so even disconnecting doesn’t correctly unload the texture.
Repro
- Connect on your server (even vanilla)
- While being connected, start the reprotexture resource
- Wait 2-3sc, you should see the sprite on your screen for 2 sc and then it should disappear
- Open strmem 1 and see that the texture dict is still loaded.
- Restart the resource to see the HasStreamedTextureDictLoaded returning false, confirming that the texture dict is still loaded.