GraphStream Users

Archives de la liste Aide


Re: GUI Performance Improvement


Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT gmail.com>
  • To: "graphstream-users AT litislab.fr" <graphstream-users AT litislab.fr>, klaus.pichler AT stud.unileoben.ac.at
  • Subject: Re: GUI Performance Improvement
  • Date: Wed, 25 Feb 2015 14:08:08 +0100

Hi Klaus,

There are several to check which can improve the speed of the rendering.

- The most costly thing in the rendering is usually the layout. Are you using the autolayout ? I guess that with data from OSM this is not the case.
- You can enable the java2d opengl pipeline that allows to use hardware acceleration for rendering. To do this, add the "-Dsun.java2d.opengl=true" option to your JVM.
- The advanced viewer gives you better performances, so try to enable it if this is not already done ! Add this in your code :
   System.setProperty("org.graphstream.ui.renderer", "org.graphstream.ui.j2dviewer.J2DGraphRenderer");

We are actually working on the new version of the UI which will use OpenGL to improve performances of the rendering (we hope ;) ).

Hope it helps...
Guilhelm

2015-02-25 13:59 GMT+01:00 <klaus.pichler AT stud.unileoben.ac.at>:
Hey :)

I have a slightly Problem with my GUI Performance on bigger Graphs.
I am using Graph Stream to show "Open Street map" Streets and to apply
certain algorithms on that. My problem is, that it took really long for
the graph panel to refresh, when I change the zoom level or change
the centerpoint on big Graphs. Refreshtime for the panel is about 4s
for a Graph with 664468 Nodes and 673133 Edges. (Dont use ui.quality or
ui.antialias) For small Graphs it works all fine :)
I would like to know, if there is any chance to improve the performance, or
if I reached the limits. I am using a Mac by the way.

Thx from austria
Klaus



--
Guilhelm Savin
PhD of Computer Science



Archives gérées par MHonArc 2.6.16.

Top of page