[udig-devel] _slow_ ui performance in Linux with cairo

Aleksander Bandelj aleksander.bandelj at academa.si
Wed Oct 4 03:15:18 PDT 2006


The reason might be antialiasing which is hardcoded in ViewPortPaneSWT 
for some reason (there is a preference which should affect this, but 
doesn't seem to be implemented).

 g.setAntialias(SWT.ON);

I commented it out in my checkout and performance is OK ;) I use same 
cairo version as you (1.2 doesn't work with SWT/Draw2D, even though 
cairo page says it should be binary compatible with 1.0)

Gabriel � wrote:
> Hi all,
>
> since the move to eclipse 3.2 (and now 3.2.1), I am experiencing an incredible 
> bad performance on anything that interacts with MapPane, to the point that 
> the app becomes unusable.
>
> Looking for the reasons of this change, I noticed that we're now relying on 
> the same ViewportPane implementation (SWT) for the three target platforms.
> On Linux that means the new cairo based SWT graphics, so I started to inspect 
> my set up, and updated to the latest version available for my distribution:
>
> - Cairo 1.0.4 with glitz 0.4.4 (using nVidia OpenGL drivers)
>
> So I tried using  ViewportPaneJava instead of ViewportPaneSWT, which restores 
> the tooling graphics to its normal performance, but surprisingly does not 
> refreshes the viewport more or less randomly, like after a zoom or whatever.
>
> Is anyone else experimenting this behavior on linux? if not, does somebody 
> know what else I can try?
>
> If this is actually a problem with swt+cairo I would suggest to switch back to 
> the awt pane implementation for linux until a solution is found.
>
> regards,
>
> Gabriel
>
>   




More information about the udig-devel mailing list