Quinn-Curtis Forums
Quinn-Curtis Forums
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Tools for Microsoft .Net
 Real-Time Graphics Tools for .Net (VB and C#)
 Graph size effecting program cpu usage

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
dmyancich 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.
2   L A T E S T    R E P L I E S    (Newest First)
dmyancich 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.
quinncurtis 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.

Quinn-Curtis Forums © 2000-2018 Quinn-Curtis, Inc. Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07