mirror of https://gitlab.com/basile.b/dexed.git
fix small but constant load on idle caused by several timers
This commit is contained in:
parent
647aa115e8
commit
90eedf284a
|
@ -422,7 +422,7 @@ begin
|
|||
fMsgColors[amkInf] := $FFD0A8;
|
||||
fMsgColors[amkHint] := $C2FFC2;
|
||||
|
||||
updaterByLoopInterval := 12;
|
||||
updaterByLoopInterval := 200;
|
||||
fOptions := TMessagesOptions.Create(Self);
|
||||
fOptions.assign(self);
|
||||
fOptions.Name:= 'messageOptions';
|
||||
|
@ -993,10 +993,11 @@ procedure TMessagesWidget.updateLoop;
|
|||
begin
|
||||
if fastDisplay then
|
||||
begin
|
||||
List.BeginUpdate;
|
||||
clearOutOfRangeMessg;
|
||||
scrollToBack;
|
||||
List.Update;
|
||||
filterMessages(fCtxt);
|
||||
List.EndUpdate;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
|
|
@ -178,7 +178,7 @@ begin
|
|||
fStdoutEx := TMemoryStream.Create;
|
||||
fStderrEx := TMemoryStream.Create;
|
||||
FTerminateChecker := TTimer.Create(nil);
|
||||
FTerminateChecker.Interval := 50;
|
||||
FTerminateChecker.Interval := 200;
|
||||
fTerminateChecker.OnTimer := @checkTerminated;
|
||||
fTerminateChecker.Enabled := false;
|
||||
TAsyncProcess(self).OnTerminate := @internalDoOnTerminate;
|
||||
|
|
Loading…
Reference in New Issue