n64: use the "fast" savestate text processing primitives. overall speedup: savestate: 21x loadstate: 10x

This commit is contained in:
goyuken 2013-06-06 00:59:09 +00:00
parent f1e2c275f4
commit 7b6492c0e2
1 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
public void SaveStateText(TextWriter writer)
{
var temp = SaveStateBinary();
temp.SaveAsHex(writer);
temp.SaveAsHexFast(writer);
// write extra copy of stuff we don't use
writer.WriteLine("Frame {0}", Frame);
}
@ -162,7 +162,7 @@ namespace BizHawk.Emulation.Consoles.Nintendo.N64
hex = reader.ReadLine();
}
byte[] state = new byte[hex.Length / 2];
state.ReadFromHex(hex);
state.ReadFromHexFast(hex);
LoadStateBinary(new BinaryReader(new MemoryStream(state)));
}