rename target frame length option for more clarity

- closes #3309
This commit is contained in:
Morilli 2025-02-14 14:20:35 +01:00
parent 89ea856ba4
commit 8bc446bfa3
4 changed files with 7 additions and 7 deletions

View File

@ -25,7 +25,7 @@
bool UseFixedRewindInterval { get; }
/// <summary>
/// Desired frame length (number of emulated frames you can go back before running out of buffer)
/// Desired minimum rewind range (number of emulated frames you can go back before running out of buffer)
/// </summary>
int TargetFrameLength { get; }

View File

@ -44,7 +44,7 @@ namespace BizHawk.Client.Common
public int CurrentBufferSize { get; set; } = 256;
[DisplayName("Current - Target Frame Length")]
[Description("Desired frame length (number of emulated frames you can go back before running out of buffer)\n\nThe Current buffer is the primary buffer used near the last edited frame. This should be the largest buffer to ensure minimal gaps during editing.")]
[Description("Desired minimum rewind range (number of emulated frames you can go back before running out of buffer)\n\nThe Current buffer is the primary buffer used near the last edited frame. This should be the largest buffer to ensure minimal gaps during editing.")]
[Range(1, int.MaxValue)]
[TypeConverter(typeof(ConstrainedIntConverter))]
public int CurrentTargetFrameLength { get; set; } = 500;
@ -67,7 +67,7 @@ namespace BizHawk.Client.Common
public int RecentBufferSize { get; set; } = 128;
[DisplayName("Recent - Target Frame Length")]
[Description("Desired frame length (number of emulated frames you can go back before running out of buffer).\n\nThe Recent buffer is where the current frames decay as the buffer fills up. The goal of this buffer is to maximize the amount of movie that can be fairly quickly navigated to. Therefore, a high target frame length is ideal here.")]
[Description("Desired minimum rewind range (number of emulated frames you can go back before running out of buffer).\n\nThe Recent buffer is where the current frames decay as the buffer fills up. The goal of this buffer is to maximize the amount of movie that can be fairly quickly navigated to. Therefore, a high target frame length is ideal here.")]
[Range(1, int.MaxValue)]
[TypeConverter(typeof(ConstrainedIntConverter))]
public int RecentTargetFrameLength { get; set; } = 2000;
@ -90,7 +90,7 @@ namespace BizHawk.Client.Common
public int GapsBufferSize { get; set; } = 64;
[DisplayName("Gaps - Target Frame Length")]
[Description("Desired frame length (number of emulated frames you can go back before running out of buffer)\n\nThe Gap buffer is used for temporary storage when replaying older segment of the run without editing. It is used to 're-greenzone' large gaps while navigating around in an older area of the movie. This buffer can be small, and a similar size to target frame length ratio as current is ideal.")]
[Description("Desired minimum rewind range (number of emulated frames you can go back before running out of buffer)\n\nThe Gap buffer is used for temporary storage when replaying older segment of the run without editing. It is used to 're-greenzone' large gaps while navigating around in an older area of the movie. This buffer can be small, and a similar size to target frame length ratio as current is ideal.")]
[Range(1, int.MaxValue)]
[TypeConverter(typeof(ConstrainedIntConverter))]
public int GapsTargetFrameLength { get; set; } = 125;

View File

@ -145,7 +145,7 @@ namespace BizHawk.Client.Common
var sizeRatio = Size / (float)_states[HeadStateIndex].Size;
var frameRatio = _targetFrameLength / sizeRatio;
var idealInterval = (int)Math.Round(frameRatio);
var idealInterval = (int)Math.Ceiling(frameRatio);
return Math.Max(idealInterval, 1);
}

View File

@ -258,7 +258,7 @@
//
// TargetFrameLengthNumeric
//
this.TargetFrameLengthNumeric.Location = new System.Drawing.Point(146, 138);
this.TargetFrameLengthNumeric.Location = new System.Drawing.Point(236, 138);
this.TargetFrameLengthNumeric.Maximum = new decimal(new int[] {
500000,
0,
@ -537,7 +537,7 @@
this.TargetFrameLengthRadioButton.Size = new System.Drawing.Size(125, 17);
this.TargetFrameLengthRadioButton.TabIndex = 48;
this.TargetFrameLengthRadioButton.TabStop = true;
this.TargetFrameLengthRadioButton.Text = "Desired frame length:";
this.TargetFrameLengthRadioButton.Text = "Desired minimum rewind range in frames:";
this.TargetFrameLengthRadioButton.UseVisualStyleBackColor = true;
//
// TargetRewindIntervalRadioButton