[Lazarus] repaint method on Darwin/Carbon

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Feb 11 15:09:48 CET 2009


On Tue, Feb 10, 2009 at 11:13 PM, Brad Campbell <brad at wasp.net.au> wrote:
> I was trying not to call Application.ProcessMessages as that is *very* expensive (I'm seeing delays
> of up to 100msec on a G4 400) but it looks like I have no choice.

You can use a high resolution timer like EpikTimer (
http://wiki.lazarus.freepascal.org/EpikTimer ) to check if the delay
caused by calling Application.ProcessMessages will disturb your
communication. Like this:

Fetch current time;
Application.ProcessMessages
if TimeDelay > x ms then do something;

-- 
Felipe Monteiro de Carvalho



More information about the Lazarus mailing list