Drawing surface chart - cpu intensive - misses timer events
Drawing surface chart - cpu intensive - misses timer events
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?
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
Steve