more cleanup

This commit is contained in:
adelikat 2019-06-15 14:57:26 -05:00
parent 81ee00a1b6
commit ed85ce806b
1 changed files with 3 additions and 6 deletions

View File

@ -72,9 +72,8 @@ namespace BizHawk.Client.Common
public void UpdateStateFrequency()
{
_stateFrequency = NumberExtensions.Clamp(
((int)_expectedStateSize / Settings.MemStateGapDivider / 1024),
_minFrequency, _maxFrequency);
_stateFrequency = ((int)_expectedStateSize / Settings.MemStateGapDivider / 1024)
.Clamp(_minFrequency, _maxFrequency);
_decay.UpdateSettings(MaxStates, _stateFrequency, 4);
}
@ -162,7 +161,7 @@ namespace BizHawk.Client.Common
}
else if (force)
{
shouldCapture = force;
shouldCapture = true;
}
else if (frame == 0) // For now, long term, TasMovie should have a .StartState property, and a .tasproj file for the start state in non-savestate anchored movies
{
@ -451,8 +450,6 @@ namespace BizHawk.Client.Common
/// </summary>
public int GetStateFrameByIndex(int index)
{
// feos: this is called super often by decay
// this method is hundred times faster than _states.ElementAt(index).Key
return _states.Keys[index];
}