updating one point of a TBoxAndWhiskerSeries needs way too much CPU
- Lazarus/FPC Version: 2.2.0RC1 r65419 FPC 3.2.2<__>
- Operating System: Windows 7
- CPU / Bitness: 64
What happens
One logical CPU kernel has 100% load when cyclically updating coordinates of one point of a TBoxAndWhiskerSeries via ListSource.SetYValue, ListSource.SetYList and ListSource.SetColor if the series has 10 thousand visible points. This problem does not occur with TLineSeries. The CPU load caused by TBoxAndWhiskerSeries becomes proportionally smaller when a smaller number of series points if visible and approaches zero when less than 500 points are visible. Thus, the TBoxAndWhiskerSeries appears to redraw each of the 10 thousand points if only 1 has a coordinate change.
What did you expect
TBoxAndWhiskerSeries behaves like TLineSeries which does not stress the CPU when changing coordinates of one point of a very large series.
Steps to reproduce
Create a TAChart with a TBoxAndWhiskerSeries and fill it with 10 thousand points. Change the coordinates of the last point 4 times per second. Observe 100% logical CPU kernel load.