From 9062c96ac3dcfcb3fbc50a39a9297e03a6a5efd4 Mon Sep 17 00:00:00 2001 From: zeromus Date: Fri, 2 Nov 2012 04:56:34 +0000 Subject: [PATCH] minor tweaks to make tasstudio not run out of memory so extremely. maybe not at all? --- BizHawk.MultiClient/BizHawk.MultiClient.csproj | 3 +++ BizHawk.MultiClient/movie/Movie.cs | 1 + BizHawk.MultiClient/movie/MovieLog.cs | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/BizHawk.MultiClient/BizHawk.MultiClient.csproj b/BizHawk.MultiClient/BizHawk.MultiClient.csproj index 7e8efe85bb..99e23705de 100644 --- a/BizHawk.MultiClient/BizHawk.MultiClient.csproj +++ b/BizHawk.MultiClient/BizHawk.MultiClient.csproj @@ -101,6 +101,9 @@ + + VersionInfo.cs + Form diff --git a/BizHawk.MultiClient/movie/Movie.cs b/BizHawk.MultiClient/movie/Movie.cs index 40dabb8fc7..7755358227 100644 --- a/BizHawk.MultiClient/movie/Movie.cs +++ b/BizHawk.MultiClient/movie/Movie.cs @@ -515,6 +515,7 @@ namespace BizHawk.MultiClient { byte[] state = Global.Emulator.SaveStateBinary(); Log.AddState(state); + GC.Collect(); } } diff --git a/BizHawk.MultiClient/movie/MovieLog.cs b/BizHawk.MultiClient/movie/MovieLog.cs index e85e49c2cd..c8cd5908ce 100644 --- a/BizHawk.MultiClient/movie/MovieLog.cs +++ b/BizHawk.MultiClient/movie/MovieLog.cs @@ -246,7 +246,7 @@ namespace BizHawk.MultiClient private List StateRecords = new List(); //TODO: Make this size limit configurable by the user - private int MaxStateRecordSize = 1024 * 1024 * 1024; //To limit memory usage. + private int MaxStateRecordSize = 512 * 1024 * 1024; //To limit memory usage. #endregion }