Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic performance problem in LayeredLayout (Read 1213 times)
Tor
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 3
Location: Norway
Joined: Feb 9th, 2011
performance problem in LayeredLayout
Feb 10th, 2011 at 6:20pm
Print Post  
Hi,

In our application we have attached svgnodes to shapenodes in order to get visually appealing anchor points. This has worked out well except when we do autolayout.

We have experimented a bit with the LayeredLayout. The first problem was that the anchorpoints were included in the autolayout routine and got separated from their parent. This was solved by setting their IgnoreLayout property to True.  This had the problem that the shapenode with its anchorpoints were not icluded in the layout.

The solution seemed to be to include the ancorPoints in the layout again and instead set _layout.KeepGroupLayout = true. Everything works fine for small test-samples but setting KeepGroupLayout = true has a serious performance penalty when starting AutoLayout on big samples. Has anyone experienced the same behaviour?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: performance problem in LayeredLayout
Reply #1 - Feb 11th, 2011 at 11:17am
Print Post  
Hi,

I suppose everything will be slower when you multiply the number of nodes just to display prettier anchor points; e.g. hit-testing, routing, layout will have worse performance. You could set the anchor points' style to Custom and call SvgContent.Draw from the DrawAnchorPoint handler instead of adding SvgNodes.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint