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();
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user