GraphStream Users

Archives de la liste Aide

Re: GUI Performance Improvement

Chronologique Discussions 
  • From: guilhelm savin <guilhelm.savin AT>
  • To: "graphstream-users AT" <graphstream-users AT>, klaus.pichler 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...

2015-02-25 13:59 GMT+01:00 <klaus.pichler 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

Guilhelm Savin
PhD of Computer Science

Archives gérées par MHonArc 2.6.16.

Top of page