03-20-2007 05:41 AM
03-20-2007 05:49 AM
03-20-2007 07:12 AM
03-20-2007 07:15 AM
03-20-2007 07:27 AM
03-20-2007 08:03 AM
03-20-2007 11:07 AM
@andrej wrote:
I need to react user-interaction.
I will resize data and plot it, but processing will be done on original data.
OK, that's not just a "cursor move", if the cursor movements causes resizing and processing of the displayed data. Most likely, the processed data looks different so a redraw is needed anyway.
Reducing the displayed data as suggested by others is certainly a good thing. However, 5000 points are not that many, so maybe you are doing things very inefficiently and wasteful. For example, currently you don't have a small wait inside your loop, so the While loop alone will consume all available CPU, strongly competing with the graph redraw operations for CPU resources.
Why don't you show us the real code that modifies the display/data when the cursor is moved?
Also, if the data is manipulated via cursors, it is generally a really bad idea to have the axes set to autoscale.