Call GC.Collect in a tread which removes audio stuttering when collecting

This commit is contained in:
Stephan Sundermann committed 2013-01-09 14:27:50 +01:00
1 parent 06cc04dc45
commit 414c46371f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -403,7 +403,7 @@ namespace Vocaluxe.Base
else
{
_Screens[(int)_CurrentScreen].OnClose();
GC.Collect();
System.Threading.Thread t = new System.Threading.Thread(delegate() { GC.Collect(); });
_CurrentScreen = _NextScreen;
_NextScreen = EScreens.ScreenNull;
if(CBackgroundMusic.Playing)
+1 -1
View File
@@ -1061,7 +1061,7 @@ namespace Vocaluxe.Base
CLog.StopBenchmark(2, "Load Cover");
}
CLog.StopBenchmark(1, "Load Songs ");
GC.Collect();
Thread t = new Thread(delegate() { GC.Collect(); });
}
public static void LoadCover(long WaitTime, int NumLoads)