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

Jesse Eichar jeichar at refractions.net
Tue Oct 10 07:22:37 PDT 2006


I'm wondering what work you were doing.  I found some issues with WMS  
and geoserver that were really slow.  I don't think this has to do  
with Gabriel's problem but it certainly could be related to Sven's  
problem since he is on XP.  The XP performance has been acceptable in  
all of my tests and on much slower machines.  I'm sure I can make it  
much faster since there has been minimal performance tuning.  Oh I  
should mention that I have also reduced the number of paints so that  
makes a huge difference as well.  Now that I think about it Sven  
probably has a large screen and the number of paints where killing  
the CPU.  The next release and especially after I finish the  
Rendering changes.

However Gabriel's problem is completely different.  Since the  
performance compared to windows or Macintosh is MUCH worse on linux  
even though the same code is running.  I'm still trying to learn why  
that should be.

Jesse



On 10-Oct-06, at 3:40 AM, Sven Tessmann wrote:

> Gabriel Roldán <groldan at ...> writes:
>
>>
>> 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
>>
>
> Hi everyone,
>
> I was struggeling with the same performance problems
> described in the first post using the RC4-SDK as a
> target platform and the following system specs:
>
> - AMD64 3200+ Windows XP
> - GPU: SIS 761GX onboard
> - JDK 1.5.0_07-b03 (tried udig-jre as well)
> - udig 1.1-RC4
> - Eclipse 3.2.x and 3.3.x
>
> Basically all operations within the MapPane have been
> very slow and cpu load went up to 100%...
>
> Going all the way back to udig-1.0.5-sdk solved the problem, so
> I used udig-trunk and also switched from ViewportPaneSWT to
> ViewportPaneJava, rebuilt the product and switched the target
> platform. I'm not sure if this breaks other things (e.g. I'm
> getting exceptions when resizing the MapPane now), but seems
> to work so far.
>
> Regards,
> Sven
>
>
>
> _______________________________________________
> User-friendly Desktop Internet GIS (uDig)
> http://udig.refractions.net
> http://lists.refractions.net/mailman/listinfo/udig-devel



More information about the udig-devel mailing list