Tastudio - fix lag lag to reflect the next frame
This commit is contained in:
parent
80dae0d026
commit
410078081c
|
@ -17,6 +17,15 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
return LagLog[frame];
|
||||
}
|
||||
else if (frame == Global.Emulator.Frame)
|
||||
{
|
||||
if (frame == LagLog.Count)
|
||||
{
|
||||
LagLog[frame] = Global.Emulator.IsLagFrame; // Note: Side effects!
|
||||
}
|
||||
|
||||
return Global.Emulator.IsLagFrame;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
@ -42,11 +51,6 @@ namespace BizHawk.Client.Common
|
|||
}
|
||||
}
|
||||
|
||||
public bool HasLagEntry(int frame)
|
||||
{
|
||||
return LagLog.ContainsKey(frame);
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
LagLog.Clear();
|
||||
|
|
|
@ -63,7 +63,7 @@ namespace BizHawk.Client.Common
|
|||
{
|
||||
State = StateManager[index],
|
||||
LogEntry = GetInputLogEntry(index),
|
||||
Lagged = LagLog[index]
|
||||
Lagged = LagLog[index + 1]
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue