ZwinderStateManager - speedup and simply the Last property using StateCache
This commit is contained in:
parent
1b0139ebc3
commit
16771bb6bf
|
@ -159,7 +159,7 @@ namespace BizHawk.Client.Common
|
||||||
.OrderByDescending(s => s.Frame);
|
.OrderByDescending(s => s.Frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int Last => AllStates().First().Frame;
|
public int Last => StateCache.Max();
|
||||||
|
|
||||||
private int LastRing => CurrentAndRecentStates().FirstOrDefault()?.Frame ?? 0;
|
private int LastRing => CurrentAndRecentStates().FirstOrDefault()?.Frame ?? 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue