optimize tas history SetRedoLog allocation
This commit is contained in:
parent
8d066ff295
commit
e32ec48c8a
|
@ -428,7 +428,7 @@ namespace BizHawk.Client.Common
|
|||
public void SetRedoLog(ITasMovie movie)
|
||||
{
|
||||
_redoLength = Math.Min(LastFrame + 1, movie.InputLogLength) - FirstFrame;
|
||||
_newLog = new List<string>();
|
||||
_newLog = new List<string>(_redoLength);
|
||||
for (int i = 0; i < _redoLength; i++)
|
||||
{
|
||||
_newLog.Add(movie.GetInputLogEntry(FirstFrame + i));
|
||||
|
|
Loading…
Reference in New Issue