Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Graph size effecting program cpu usage
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

dmyancich

7 Posts

Posted - 12 Sep 2007 :  10:10:58  Show Profile  Reply with Quote
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  Show Profile  Reply with Quote
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.
Go to Top of Page

dmyancich

7 Posts

Posted - 12 Sep 2007 :  12:33:21  Show Profile  Reply with Quote
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.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07