TeeChart quickly pulls into TFastLineSeries

I am using the evaluation version of TeeChart VCL v2012 in Embarcadero C ++ Builder XE. In my program, I get about one thousand points every second and put them in FastLineSeries. To put dots in seraies, I use the AddXY method. When I launch my application, on 3 series it took about 20% of the processor time. I was wondering if you can give me some tips on how to improve the performance of adding and drawing?

+4
source share
1 answer

I suggest you try to implement as many of the tips that are described in the article "Real-time graphical display" here . In summary:

  • Disable / hide some chart elements
  • Enter a number with data. Use arrays and remove unnecessary points. See an example of demonstrating functions in the section "All functions \ Welcome! \ Speed ​​\ Fast dynamic arrays"

Other tips:

  • If you add many points at a time, try setting AutoRepaint=false before adding and returning to AutoRepaint=true after it.
  • Use the TFastLineSeries DrawAllPoints property. See the Demonstration of Functions example in the "All Functions \ Welcome! \ Speed ​​\ DrawAll Fast Linear Speed" section.
  • Use the TDownSampling function. See the example in the function demo under "All functions \ Welcome! \ Functions \ Advanced \ Reduce points."

And also see other examples in the function demo under "All Functions \ Welcome! \ Speed".

NOTE. A function demonstration is an application that comes with an installation that shows most of the features supported by a component.

+4
source

Source: https://habr.com/ru/post/1436147/


All Articles