Page 1 of 1
Drawing surface chart - cpu intensive - misses timer events
Posted: Thu Apr 19, 2007 4:57 pm
by 9231987
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?
Posted: Fri Apr 20, 2007 5:48 pm
by 9333098
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
Posted: Mon Apr 30, 2007 2:19 pm
by 9231987
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.