Good day ... I am using OnPaint Delphi to create a few lines ... until it's all right ... My problem starts when I try to update these lines ...
I found that to clean the screen, I can use:
Invalidate ()
ex:
Then if True
Begin
Canvas.Ellipse (0,0,100,50);
End Else Begin
Invalidate ();
end;
This way works very well ... But the problem is the memory consumption that Invalidate (); uses ....
Normal It consumes less than 0.3% .... Now Invalidate ();
it consumes 30% ... is much difference ...
Is there any other function that can be using to clean the screen without using OnPaint both processor ... or a way to make the OnPaint one pass to give Invalidate (); ... Because it is updating all the time, hence consumes lots of CPU .... I need to clean this screen at the time, but others need to update the image of the OnPaint ...