Slow screen update when using a thread

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Thomas Klingler
Advanced
Posts: 103
Joined: Tue Mar 02, 2004 5:00 am
Location: Bad Wurzach
Contact:

Slow screen update when using a thread

Post by Thomas Klingler » Sat Oct 22, 2005 6:45 am

Hello,
We have the VCL 7.05, I have a TChart with multiple TLineSeries graphs being displayed. I have a thread that reads a specific database format and loads the data into the series.

This seems to work fine as long as I'm not looking at the series when they are being updated on the screen.

I have tried TChart->AutoRepaint = false before loading the data and then turning it back on after the data is loaded.

Regardless of what I do when I have the graphs on the screen I can see the lines loading very slowly. If I go to another tab and back the data will be loaded.

Whats the best way of doing this ?

TIA,
Brett

bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

Post by bdw » Sat Oct 22, 2005 11:58 pm

Not sure how but when I posted this it must have logged me in as Dave...

bdw
Advanced
Posts: 130
Joined: Mon Mar 07, 2005 5:00 am
Location: New Zealand
Contact:

Post by bdw » Tue Oct 25, 2005 1:33 am

after a bit of testing and looking at the speed demo examples I have managed to speed up the performance

Pep
Site Admin
Site Admin
Posts: 3295
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Oct 28, 2005 9:47 am

Hi,

great ! I'm glad to hear that.

Post Reply