Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic CPU Utilization (Read 2842 times)
integragreg
YaBB Newbies
*
Offline



Posts: 40
Location: Tennessee
Joined: Jan 26th, 2009
CPU Utilization
Jan 6th, 2011 at 11:49pm
Print Post  
We've begun to notice high CPU utilization in our application that contains a WPF diagram. When we create a new, blank diagram with no nodes on it and move the mouse over the diagram, the CPU usage spikes as high as 90%.

We ran a performance profiler on our application code and the highest number of calls and CPU time are being allocated to methods in the Ruler class (due to obfuscation, we don't know exactly which methods, though).

It appears that the Ruler refreshes its scales on every movement of the mouse, which we suspect might be responsible for the CPU usage. Is there any way to confirm this, and possibly implement a workaround for this issue?

Thanks,

Greg
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: CPU Utilization
Reply #1 - Jan 11th, 2011 at 10:31am
Print Post  
This version should improve the refresh speed a bit:
https://mindfusion.eu/_beta/wpfdiag251_ruler.zip

Indeed the scales are refreshed on every MouseMove to repaint the mouse pointer and selection projections. We have now moved them to a separate visual layer to avoid repainting the ruler tick marks.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
integragreg
YaBB Newbies
*
Offline



Posts: 40
Location: Tennessee
Joined: Jan 26th, 2009
Re: CPU Utilization
Reply #2 - Feb 22nd, 2011 at 5:20pm
Print Post  
Thanks, Stoyo. We'll give it a shot.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint