Kas Ob. 158 Posted 3 hours ago 2 minutes ago, dormky said: I also keep a buffer of the whole background, axis etc. to not redraw them everytime. It's just the data. Right, and the most expensive in drawing is text outputing. 3 minutes ago, dormky said: I'm looking at like 200ms easily lol. For reference, my test data is a 12k points sine wave. Great, now instead of one loop, make 2 loops, one calculate and the next will draw this will relief the CPU cache on L2 (and L3) mainly and L1 secondly a lot ! Delphi code is far from optimized for CPU, after the suggested separation you should enhancement in performance, and yet you will have clear view on the bottleneck being in the calculation and called functions that can be replaced with better shorter versions, or in drawing and it also (i mean the separation) will give you ideas on the combining the drawing steps into lines if needed. Share this post Link to post