Drawing big plots
Posted: Thu Apr 11, 2019 2:21 pm
I'm using TeeChart VLC with C++ Builder Pro Tokyo.
I have an application that has a lot of plots and sometimes with a lot of points. The applciation is very dynamic so the plots get redraw many times.
As far as I know VLC UI can only be updated via main thread, leaving to the main thread only the tasks to updated all the plots secuentially.
The machines where my application run are all high end multicore so my question is if there is a technique available that would allow me to do all the hard work of recreating a plot on a thread in the background (with maybe be a queue of a thread pool) while showing some kind of "Work in progress" bitmap or some kind of feedback to the user with a progress bar leaving the main thread free to keep processing other messages.
I'm already applying point reduction techniques but some plots cannot get advantage of that.
I have an application that has a lot of plots and sometimes with a lot of points. The applciation is very dynamic so the plots get redraw many times.
As far as I know VLC UI can only be updated via main thread, leaving to the main thread only the tasks to updated all the plots secuentially.
The machines where my application run are all high end multicore so my question is if there is a technique available that would allow me to do all the hard work of recreating a plot on a thread in the background (with maybe be a queue of a thread pool) while showing some kind of "Work in progress" bitmap or some kind of feedback to the user with a progress bar leaving the main thread free to keep processing other messages.
I'm already applying point reduction techniques but some plots cannot get advantage of that.