Drawing surface chart - cpu intensive - misses timer events

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MTW
Newbie
Newbie
Posts: 18
Joined: Fri Apr 02, 2004 5:00 am

Drawing surface chart - cpu intensive - misses timer events

Post by MTW » Thu Apr 19, 2007 4:57 pm

I am drawing a surface chart with about 10000 points. It takes a few seconds for the graph to appear. During that time, Window timer events are not being processed (I assume it is due to cpu intensive funtions). Is there a way to allow periodic processing of Windows messages during the drawing process?

SteveP
Advanced
Posts: 132
Joined: Sun Sep 07, 2003 4:00 am

Post by SteveP » Fri Apr 20, 2007 5:48 pm

Are you using the Multimedia timer ? I have found with XP (and maybe 2000) that at 10 Hz its callback function does not get missed even when opening several large applications or dragging a window around or minimizing a window. Earlier OS's or the standard Delphi Timer often have missed periods lasting several hundred milliseconds.

Steve

MTW
Newbie
Newbie
Posts: 18
Joined: Fri Apr 02, 2004 5:00 am

Post by MTW » Mon Apr 30, 2007 2:19 pm

I did switch to the multimedia timer and it does seem to work. Thanks. However, I was still wondering if there is any way to specify a number of operations (point drawings) in drawing a chart and then allowing other processes to run (ProcessMessages).

Thanks again.

Post Reply