Profile Picture

Slow performance when changing layout.

Posted By Anton Cherkasov 12 Years Ago
Author
Message
Anton Cherkasov
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 3, Visits: 1
Yes it's WinForm project and we disabled the bridge manager.

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009
Hi, I guess this is a WinForm project. Have you disabled the bridge manager as I have shown in my previous post.

Best Regards,
Nevron Support Team



Anton Cherkasov
Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 3, Visits: 1
We can see some issues while rendering lot of links in map. Usually we don’t have problem with many nodes but many links can really kill rendering performance. For example in situation with 20 nodes each connected to another (total 400 links) the rendering performance is quite bad. We did some tests and usually there is no problem to render it quickly using GDI. Is there any way how to improve performance of it? We are especially interested in performance while doing scrolling – this is our main problem. Our maps are usually static and large so I could imagine some kind of tiling to be supported in Nevron - that means to render map and store tiles and update those tiles only if they were changed. Is (or would) something like tilling possible in Nevron diagram component? Another option how to speed up rendering would be some hardware acceleration (Direct2D, OpenGL) – is there any way how to use hardware accelerated rendering in Nevron diagram component?

Nevron Support
Posted 12 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi,

In order to achive maximum performance you should turn off/disable some features of Nevron Diagram for .NET. The following are two sample methods that optimize a drawing view and a drawing document for maximum performance:


private void OptimizeViewSettings(NDrawingView view)
{
        // Hide arrowheads, guidelines, ports and shadows
        view.GlobalVisibility.HideAll();
 
        // Hide the rulers and the grid
        view.HorizontalRuler.Visible = false;
        view.VerticalRuler.Visible = false;
        view.Grid.Visible = false;
}
 
private void OptimizeDocumentSettings(NDrawingDocument document)
{
        // Disable the bridges for intersecting edges - THIS IS THE MOST IMPORTANT
        // OPTIMIZATION which will DRAMATICALLY INCREASE the rendering speed!!!
        document.BridgeManager.Enabled = false;
 
        // Disable the routing manager
        document.RoutingManager.Enabled = false;
 
        // Pause all document services (the History service, the Event Sink service, etc.)
        document.ServiceManager.PauseAllServices();
}

Among the layouts you are using the Layered Graph Layout and the Symmetrical Layout are the fastest, so it's bet to use them instead of the other layouts.



Best Regards,
Nevron Support Team



Anton Cherkasov
hazard Posted 12 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)Forum Newbie (3 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 3, Visits: 1
Hello!

We using Nevron in our project, but we have some problems.
When we create huge map with more than 1000 objects and lot of connections among them - we have freezes when changing layout from one to another due to Nevrons calculations. Can we somehove improve performance?
We already using Multithreading if available.
Layouts that we use in our project:
- NLayeredGraphLayout;
- NOrthogonalGraphLayout;
- NSymmetricalLayout;
- NRadialGraphLayout;

Thanks for any reply.




Similar Topics


Reading This Topic