In XNA, when calling Content.Load() to load in a resource, if you load the same resource into multiple objects (i.e. the texture for a projectile of which there can be many) are you getting a copy for each object, or is the system just internally referencing the same memory for each one?
I was realizing that having a separate Texture2D object in each item may be a memory issue down the line.
The ContentManager will cache the object and return the reference to that object when you try to load it again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With