mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Slight memory usage optimization
This commit is contained in:
parent
4773609758
commit
0ed4c9863e
@ -409,7 +409,11 @@ namespace Wabbajack
|
||||
|
||||
if (_cachedSlides.ContainsKey(randomElement.ModID))
|
||||
{
|
||||
var bitmap = new BitmapImage();
|
||||
_cachedSlides.TryGetValue(randomElement.ModID, out bitmap);
|
||||
bitmap = null;
|
||||
_cachedSlides.Remove(randomElement.ModID);
|
||||
//hmmm
|
||||
//GC.Collect();
|
||||
}
|
||||
} while (_cachedSlides.Count >= MAX_CACHE_SIZE);
|
||||
|
Loading…
Reference in New Issue
Block a user