Hello All,
We are facing very critical issues in terms of performance using TChart in java .
Points are added to Fast Line in a thread with sleep time 300 milli seconds.
While adding points to the existing Line into TChart. CPU usage is becoming 100 % (in Task Manager in Windows OS), Other programs are not responding.
If application window size is more you can simulate the performance issue more easily.I think this is happening because redraw method called more times internally in Tee chart.
I have gone through below document http://www.teechart.net/reference/articles/index.php
Please let us know your suggestions on this..
Advance thanks for you reply.
Thanks,
Vijay
Performance issues with Teechart in java
Re: Performance issues with Teechart in java
I am attaching example code.
Java project has to be imported into workspace and Buildpath errors have to removed ( Swt & teechart jars).
Java project has to be imported into workspace and Buildpath errors have to removed ( Swt & teechart jars).
Re: Performance issues with Teechart in java
Hi vijay,
As said by mail, typically using a thread upon which to run a process gives you greater control over cpu cycles. In this case the TeeChart should be run on the thread.
We ran your example in a Intel Core Duo @ 1,86GHz, 2GB Ram machine and it took about 50-55% CPU.
You are working with timers but we think that this doesn't guarantee that a process will take all the CPU, if needed.
Here it is an example about thread usage and priority assignment: http://www.javadb.com/setting-thread-priorities
As said by mail, typically using a thread upon which to run a process gives you greater control over cpu cycles. In this case the TeeChart should be run on the thread.
We ran your example in a Intel Core Duo @ 1,86GHz, 2GB Ram machine and it took about 50-55% CPU.
You are working with timers but we think that this doesn't guarantee that a process will take all the CPU, if needed.
Here it is an example about thread usage and priority assignment: http://www.javadb.com/setting-thread-priorities
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |