well, thank you very much,problem sloved.
I use code:
procedure processmessage();
var
msg:TMSG;
begin
if (PeekMessage(@msg,0,0,0,PM_REMOVE)) then
begin
TranslateMessage(@msg);
DispatchMessage(@msg);
end;
end;
I use code above instead of Application.ProcessMessages then speed
run is better now.thank you a gain.
I love lazarus more and more now
