remove rewind threading config option
This commit is contained in:
parent
270d03bf40
commit
a58a10e633
|
@ -15,7 +15,6 @@ namespace BizHawk.Client.Common
|
|||
public int LargeStateSize { get; }
|
||||
public int BufferSize { get; }
|
||||
public bool OnDisk { get; }
|
||||
public bool IsThreaded { get; }
|
||||
}
|
||||
|
||||
public class RewindConfig : IRewindSettings
|
||||
|
@ -33,7 +32,6 @@ namespace BizHawk.Client.Common
|
|||
public int BufferSize { get; set; } = 128; // in mb
|
||||
public bool OnDisk { get; set; }
|
||||
|
||||
public bool IsThreaded { get; set; } = Environment.ProcessorCount > 1;
|
||||
public int SpeedMultiplier { get; set; } = 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -65,7 +65,6 @@
|
|||
this.RewindSpeedNumeric = new System.Windows.Forms.NumericUpDown();
|
||||
this.label18 = new System.Windows.Forms.Label();
|
||||
this.label17 = new System.Windows.Forms.Label();
|
||||
this.RewindIsThreadedCheckbox = new System.Windows.Forms.CheckBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.BufferSizeUpDown = new System.Windows.Forms.NumericUpDown();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
|
@ -520,7 +519,6 @@
|
|||
this.groupBox3.Controls.Add(this.RewindSpeedNumeric);
|
||||
this.groupBox3.Controls.Add(this.label18);
|
||||
this.groupBox3.Controls.Add(this.label17);
|
||||
this.groupBox3.Controls.Add(this.RewindIsThreadedCheckbox);
|
||||
this.groupBox3.Controls.Add(this.label4);
|
||||
this.groupBox3.Controls.Add(this.BufferSizeUpDown);
|
||||
this.groupBox3.Controls.Add(this.label3);
|
||||
|
@ -582,17 +580,6 @@
|
|||
this.label17.TabIndex = 3;
|
||||
this.label17.Text = "These options affect rewind performance in various ways:";
|
||||
//
|
||||
// RewindIsThreadedCheckbox
|
||||
//
|
||||
this.RewindIsThreadedCheckbox.AutoSize = true;
|
||||
this.RewindIsThreadedCheckbox.Location = new System.Drawing.Point(16, 112);
|
||||
this.RewindIsThreadedCheckbox.Name = "RewindIsThreadedCheckbox";
|
||||
this.RewindIsThreadedCheckbox.Size = new System.Drawing.Size(151, 17);
|
||||
this.RewindIsThreadedCheckbox.TabIndex = 6;
|
||||
this.RewindIsThreadedCheckbox.Text = "Use additional CPU thread";
|
||||
this.toolTip1.SetToolTip(this.RewindIsThreadedCheckbox, "This doesn\'t always speed things up... that\'s why it\'s an option.");
|
||||
this.RewindIsThreadedCheckbox.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label4
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
|
@ -1060,7 +1047,6 @@
|
|||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.NumericUpDown BufferSizeUpDown;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.CheckBox RewindIsThreadedCheckbox;
|
||||
private System.Windows.Forms.Label label6;
|
||||
private System.Windows.Forms.Label FullnessLabel;
|
||||
private System.Windows.Forms.GroupBox groupBox4;
|
||||
|
|
|
@ -41,7 +41,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
|
||||
RewindSpeedNumeric.Value = _config.Rewind.SpeedMultiplier;
|
||||
DiskBufferCheckbox.Checked = _config.Rewind.OnDisk;
|
||||
RewindIsThreadedCheckbox.Checked = _config.Rewind.IsThreaded;
|
||||
_stateSize = _statableCore.CloneSavestate().Length;
|
||||
BufferSizeUpDown.Value = Math.Max(_config.Rewind.BufferSize, BufferSizeUpDown.Minimum);
|
||||
|
||||
|
@ -171,7 +170,6 @@ namespace BizHawk.Client.EmuHawk
|
|||
_config.Rewind.LargeStateSize = PutRewindSetting(_config.Rewind.LargeStateSize, (int)LargeStateUpDown.Value * 1024);
|
||||
_config.Rewind.BufferSize = PutRewindSetting(_config.Rewind.BufferSize, (int)BufferSizeUpDown.Value);
|
||||
_config.Rewind.OnDisk = PutRewindSetting(_config.Rewind.OnDisk, DiskBufferCheckbox.Checked);
|
||||
_config.Rewind.IsThreaded = PutRewindSetting(_config.Rewind.IsThreaded, RewindIsThreadedCheckbox.Checked);
|
||||
|
||||
// These settings are not used by DoRewindSettings
|
||||
_config.Rewind.SpeedMultiplier = (int)RewindSpeedNumeric.Value;
|
||||
|
|
Loading…
Reference in New Issue