minor tweaks to make tasstudio not run out of memory so extremely. maybe not at all?

This commit is contained in:
zeromus 2012-11-02 04:56:34 +00:00
parent c0c3c36e87
commit 9062c96ac3
3 changed files with 5 additions and 1 deletions

View File

@ -101,6 +101,9 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="..\VersionInfo.cs">
<Link>VersionInfo.cs</Link>
</Compile>
<Compile Include="AboutBox.cs">
<SubType>Form</SubType>
</Compile>

View File

@ -515,6 +515,7 @@ namespace BizHawk.MultiClient
{
byte[] state = Global.Emulator.SaveStateBinary();
Log.AddState(state);
GC.Collect();
}
}

View File

@ -246,7 +246,7 @@ namespace BizHawk.MultiClient
private List<StateRecord> StateRecords = new List<StateRecord>();
//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
}