Question about textures from loaded XAML files
Posted: 18 Nov 2024, 21:03
Suppose I have a XAML file that has a very large full screen background texture. That Xaml is my loading image that is used when launching the game.
Once that xaml is removed, is the texture memory associated with that huge background texture also supposed to be freed?
I might be mistaken, but it looks like right now that huge texture is staying resident, even though it's not used and no xaml is actively referencing it. Is there a recommendation here? It seems like I could probably do the texture through a data binding and then manage the memory myself, but I imagine this is a pretty common case, so I was curious what the recommendation is.
thanks,
sam
Once that xaml is removed, is the texture memory associated with that huge background texture also supposed to be freed?
I might be mistaken, but it looks like right now that huge texture is staying resident, even though it's not used and no xaml is actively referencing it. Is there a recommendation here? It seems like I could probably do the texture through a data binding and then manage the memory myself, but I imagine this is a pretty common case, so I was curious what the recommendation is.
thanks,
sam