Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #19078 |

    Hi,
    I’ve a question about chart draw performance. I have separated thread for calculating chart data. When the data are ready, I update chart’s data points and calculate new chart data, update the chart again a so on. The question is how the chart behaves if I update the chart data too fast? If there is no time for the chart to finish the drawing and I supply another set of data for the chart, what can I expect? Is there a way to be notified if the chart was drown and is ready to get new values?

    Thanks

    Imported from legacy forums. Posted by Igor (had 2429 views)

    User (Old forums)
    Member
    Post count: 23064

    Well, to be able to update the chart, as is true of any Winform UI, you must do it on the main UI thread (that is, the thread on which the UI is created).  Now all operations on the main thread will be sequential, and as such, though you send as many update request as you want from the background thread, they will all be executed only once the previous one is finished on the main thread.

     

    Imported from legacy forums. Posted by André (had 2719 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.