I am developing a game that uses a massive amount of textures. Therefore I need to correctly unload textures when they are no longer used.
What is the corrrect way to unload textures (also vertex buffers, shaders, and other graphic resources)
I have heard that calling Dispose() is not the correct way to do so.
All textures are loaded via Texture2D.FromStream so I don’t use ContentManager at all.
You should unload content that a ContentManager has loaded by using ContentManager.Unload().
Textures and some other resources that you create yourself without going through ContentManager should be disposed (using Dispose()) in the Game.UnloadContent function.