Ignore:
Timestamp:
Jan 14, 2022, 7:13:36 PM (3 years ago)
Author:
chronos
Message:
  • Modified: SetZero optimization made as separate step.
  • Fixed: Error during compilation in CopyMultiply optimization.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormOptions.pas

    r115 r126  
    2020    CheckBoxOptimizeAddSub: TCheckBox;
    2121    CheckBoxOptimizeCopyMultiply: TCheckBox;
     22    CheckBoxOptimizeSetZero: TCheckBox;
    2223    CheckBoxOptimizeMerge: TCheckBox;
    2324    CheckBoxOptimizeRelativeIndexes: TCheckBox;
     
    4243    TabSheetBuild: TTabSheet;
    4344    procedure CheckBoxDPIAutoChange(Sender: TObject);
     45    procedure CheckBoxOptimizeCopyMultiplyChange(Sender: TObject);
     46    procedure CheckBoxOptimizeRelativeIndexesChange(Sender: TObject);
    4447    procedure FormClose(Sender: TObject; var CloseAction: TCloseAction);
    4548    procedure FormCreate(Sender: TObject);
     
    8184  end;
    8285  CheckBoxOptimizeAddSub.Enabled := ComboBoxOptimization.ItemIndex > 0;
     86  CheckBoxOptimizeSetZero.Enabled := ComboBoxOptimization.ItemIndex > 0;
    8387  CheckBoxOptimizeMerge.Enabled := ComboBoxOptimization.ItemIndex > 0;
    8488  CheckBoxOptimizeRelativeIndexes.Enabled := ComboBoxOptimization.ItemIndex > 0;
     
    9498  CheckBox1.Checked := Core.OpenProjectOnStart;
    9599  CheckBoxOptimizeAddSub.Checked := Core.Optimizations.AddSub;
     100  CheckBoxOptimizeSetZero.Checked := Core.Optimizations.SetZero;
    96101  CheckBoxOptimizeMerge.Checked := Core.Optimizations.Merge;
    97102  CheckBoxOptimizeRelativeIndexes.Checked := Core.Optimizations.RelativeIndexes;
     
    119124  Core.MemorySize := SpinEditMemorySize.Value;
    120125  Core.Optimizations.AddSub := CheckBoxOptimizeAddSub.Checked;
     126  Core.Optimizations.SetZero := CheckBoxOptimizeSetZero.Checked;
    121127  Core.Optimizations.Merge := CheckBoxOptimizeMerge.Checked;
    122128  Core.Optimizations.RelativeIndexes := CheckBoxOptimizeRelativeIndexes.Checked;
     
    127133begin
    128134  UpdateInterface;
     135end;
     136
     137procedure TFormOptions.CheckBoxOptimizeCopyMultiplyChange(Sender: TObject);
     138begin
     139  // Needed for optimize copy multiply
     140  if CheckBoxOptimizeCopyMultiply.Checked then
     141    CheckBoxOptimizeRelativeIndexes.Checked := True;
     142end;
     143
     144procedure TFormOptions.CheckBoxOptimizeRelativeIndexesChange(Sender: TObject);
     145begin
     146  // Needed for optimize copy multiply
     147  if not CheckBoxOptimizeRelativeIndexes.Checked then
     148    CheckBoxOptimizeCopyMultiply.Checked := False;
    129149end;
    130150
Note: See TracChangeset for help on using the changeset viewer.