Teechart 7 -> Teechart 2015 Performance issue
Posted: Thu May 26, 2016 10:16 am
I'm converting my app to a 64 bit application. Our software worked perfectly with TeeChart 7. Since we've upgraded to TeeChart 2015, we have serious performance issue. CPU usage it's up to the roof.
That causes some display issue. It can’t display normally itself and affect other objects' displaying in model(please see the attachment "TeeChart2015 affect other objects.jpg"). After a long time of investigating, I figure out the root cause, the code ‘m_pChart->GetCanvas()->PutUseBuffer(VARIANT_FALSE);’. When setting this property to VARIANT_TURE, the display issue was almost fixed except TeeChart still displays with a wrong border. But it cause another issue, the speed issue. When running the model the speed becomes very very slowly. Actually, the ‘UseBuffer’ value is used to control the speed of drawing TeeChart. It seems we can’t let it display normally and keep the normally speed at the same time. Then I tried to set ‘UseBuffer’ property to VARIANT_FALSE before drawing teechart and setting to VARIANT_TURE after finishing drawing TeeChart.
After some testing, the speed of teechart7 was not affected by this kind of setting, but the teechart15 was becoming more slowly than always putting the 'UseBuffer' to VARIANT_FALSE.
Above all, that’s to say, there are two issues after upgrading teechart.
1. TeeChart still displays with a wrong border(missing one or two edge(please see attachment "TeeChart2015 disaply unnormal.jpg"), it can display well sometimes).
2. The running speed of model becomes more slowly.
We're setting auto paint to true/false to disabled drawing when adding points, etc...
Anyone is experiencing the same problem? Thx
That causes some display issue. It can’t display normally itself and affect other objects' displaying in model(please see the attachment "TeeChart2015 affect other objects.jpg"). After a long time of investigating, I figure out the root cause, the code ‘m_pChart->GetCanvas()->PutUseBuffer(VARIANT_FALSE);’. When setting this property to VARIANT_TURE, the display issue was almost fixed except TeeChart still displays with a wrong border. But it cause another issue, the speed issue. When running the model the speed becomes very very slowly. Actually, the ‘UseBuffer’ value is used to control the speed of drawing TeeChart. It seems we can’t let it display normally and keep the normally speed at the same time. Then I tried to set ‘UseBuffer’ property to VARIANT_FALSE before drawing teechart and setting to VARIANT_TURE after finishing drawing TeeChart.
After some testing, the speed of teechart7 was not affected by this kind of setting, but the teechart15 was becoming more slowly than always putting the 'UseBuffer' to VARIANT_FALSE.
Above all, that’s to say, there are two issues after upgrading teechart.
1. TeeChart still displays with a wrong border(missing one or two edge(please see attachment "TeeChart2015 disaply unnormal.jpg"), it can display well sometimes).
2. The running speed of model becomes more slowly.
We're setting auto paint to true/false to disabled drawing when adding points, etc...
Anyone is experiencing the same problem? Thx