optimize tas history SetRedoLog allocation

This commit is contained in:
Morilli 2025-04-11 14:18:32 +02:00
parent 8d066ff295
commit e32ec48c8a
1 changed files with 1 additions and 1 deletions

View File

@ -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));