added more GC.Collect()
This commit is contained in:
1 parent
ca7c4e8bf8
commit
31ae38943d
2 files changed
+5
No files matched your search
@@ -51,6 +51,7 @@ namespace Vocaluxe.Base
|
||||
InitHighscoreDB();
|
||||
InitCoverDB();
|
||||
InitCreditsRessourcesDB();
|
||||
GC.Collect();
|
||||
}
|
||||
|
||||
#region Highscores
|
||||
@@ -1242,6 +1243,7 @@ namespace Vocaluxe.Base
|
||||
{
|
||||
_TransactionCover.Commit();
|
||||
_TransactionCover = null;
|
||||
GC.Collect();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1048,6 +1048,9 @@ namespace Vocaluxe.Base
|
||||
STexture texture = song.CoverTextureSmall;
|
||||
song.CoverTextureBig = texture;
|
||||
_CoverLoadIndex++;
|
||||
|
||||
if (i % 100 == 0)
|
||||
GC.Collect();
|
||||
}
|
||||
|
||||
_CoverLoaded = true;
|
||||
|
||||
Reference in new issue
Block a user