added more GC.Collect()

This commit is contained in:
Alexander Eckart committed 2013-01-03 18:35:34 +01:00
1 parent ca7c4e8bf8
commit 31ae38943d
2 files changed
+5

No files matched your search

+2
View File
@@ -51,6 +51,7 @@ namespace Vocaluxe.Base
InitHighscoreDB(); InitHighscoreDB();
InitCoverDB(); InitCoverDB();
InitCreditsRessourcesDB(); InitCreditsRessourcesDB();
GC.Collect();
} }
#region Highscores #region Highscores
@@ -1242,6 +1243,7 @@ namespace Vocaluxe.Base
{ {
_TransactionCover.Commit(); _TransactionCover.Commit();
_TransactionCover = null; _TransactionCover = null;
GC.Collect();
} }
} }
+3
View File
@@ -1048,6 +1048,9 @@ namespace Vocaluxe.Base
STexture texture = song.CoverTextureSmall; STexture texture = song.CoverTextureSmall;
song.CoverTextureBig = texture; song.CoverTextureBig = texture;
_CoverLoadIndex++; _CoverLoadIndex++;
if (i % 100 == 0)
GC.Collect();
} }
_CoverLoaded = true; _CoverLoaded = true;