Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Questions about performance (Read 2295 times)
chowy
Junior Member
**
Offline


I Love MindFusion!

Posts: 72
Joined: May 8th, 2017
Questions about performance
Aug 31st, 2017 at 1:44am
Print Post  
I built a new project, I am empty map, the mouse's rapid movement, cpu occupancy rate reached 20%. Then our own project, cpu also reached 40%. When GroupNode (attachNode 13) reaches 100, the selected or all selected will be significantly slower. As well as some other graphics operations will slow down. I see performance analysis, there are a lot of external code execution cpu occupancy rate is very high!The current performance can not meet our project requirements. Do you have any good performance optimization or optimized demo?
  

select.gif (Attachment deleted)
Cpu2.gif (Attachment deleted)
Cpu1.gif (Attachment deleted)
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3447
Joined: Oct 19th, 2005
Re: Questions about performance
Reply #1 - Aug 31st, 2017 at 5:22am
Print Post  
Rapid mouse movement sends a lot of messages through Windows message pump which WPF translates to events, so the CPU gets involved. By waving the mouse around I can get CPU over 50% with any application that tracks mouse movements, e.g. like the forum's browser window as shown in screenshot. You could still reduce mouse-movement related processing by turning-off properties that do hit-testing to highlight objects, like ShowAnchors=Auto and ModificationStart=AutoHandles.

For other performance related discussions follow the links here -
https://mindfusion.eu/Forum/YaBB.pl?num=1442997646/1#1
« Last Edit: Aug 31st, 2017 at 8:18am by Slavcho »  

Untitled.jpg ( 286 KB | 207 Downloads )
Untitled.jpg
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3447
Joined: Oct 19th, 2005
Re: Questions about performance
Reply #2 - Sep 7th, 2017 at 5:59pm
Print Post  
Regarding selection, it should be faster if you set diagram.SelectionOnTop = false. It's enabled by default, leading to re-sorting WPF's visual tree to bring selected items to front, which gets slow when there are a lot of elements in the diagram.

Regards,
Slavcho
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint