Author |
Topic |
|
dmyancich
7 Posts |
Posted - 12 Sep 2007 : 10:10:58
|
Windows XP, .net 2.0, c#. I have an application that has been running very well with 2 real-time, scrolling x time-axis, charts. The charts are 700 pixels wide, by 120 pixels high. The charts are updated ~ every 100 ms, with ~ 50 data points. I have attempted to rebuild the application increasing the height of the charts, 700 pixels wide by 300 PIXELS HIGH (~ 3 TIMES THE HEIGHT) The CPU usage went from ~30% to >98% (cannot control system)
Why would increasing the height cause such a large increase in CPU usage? Is there anything I can do to reduce? Thank you. |
|
quinncurtis
1586 Posts |
Posted - 12 Sep 2007 : 12:21:38
|
Making the chart larger increases the number of pixels that need to be drawn in order to refresh the chart. The more pixels that need to be drawn, the higher the CPu usage. This would be expected in any .Net program that is heavily graphics intensive.
But if you are running only a couple of 50 data point scrolling graphs, with an update of 100 ms, either you have a very, very slow computer, or you have some other other stuff going on. Look at the other forum threads that discuss performance issues. |
|
|
dmyancich
7 Posts |
Posted - 12 Sep 2007 : 12:33:21
|
I do agree with the number of pixels requiring more cpu...but this seems to be a nominal change. I will check with the other forums...Thank for the reply. |
|
|
|
Topic |
|
|
|