Update Territory.Load() to only create one Texture2D instance per texture file. Have render objects share them instead of creating their own instances of each texture. Will be important once building importing is ported.
As for texture lifetime. Its simple for now. NF only loads assets when the map is opened and destroys them when its closed. There's no dynamic loading/unloading of assets yet so we don't need to keep track of how many live objects are dependent on each texture before deleting them.
Update
Territory.Load()
to only create oneTexture2D
instance per texture file. Have render objects share them instead of creating their own instances of each texture. Will be important once building importing is ported.As for texture lifetime. Its simple for now. NF only loads assets when the map is opened and destroys them when its closed. There's no dynamic loading/unloading of assets yet so we don't need to keep track of how many live objects are dependent on each texture before deleting them.