Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » performance issue on linux
performance issue on linux [message #208295] Mon, 30 January 2006 23:32 Go to next message
Eclipse UserFriend
Originally posted by: pbeagan.yahoo_dontspamme_.com

Hi - I have a performance problem with my GEF editor that only occurs on
linux (i only tested on fedora linux and windows xp). As the number of
items in my editor increases, the slower and choppier scrolling becomes,
and general performance in general seems slower. The performance is great
on windows.
I am currently searching my code to find if some refresh() method is the
culprit but have not found anything as of yet. Can anyone think of
anything that would cause Linux to perform so poorly?
Thanks.
Re: performance issue on linux [message #208340 is a reply to message #208295] Tue, 31 January 2006 15:58 Go to previous message
Eclipse UserFriend
Originally posted by: pbeagan.yahoo_dontspamme_.com

Answering my own question :

I had a gradient fill (from white to gray) on my background base figure
which gave a great visual effect. Although I do not know the reasons, it
caused a serious scrolling performance issue on linux that degraded with an
increase in the number of child objects. Removed this fill solved my
problem. My original class is below.





public class RepositoryFigure extends FreeformLayer
{

protected static final Color REPOSITORY_FGCOLOR = new
Color(null,255,255,255);
protected static final Color REPOSITORY_BGCOLOR = new
Color(null,223,224,255);

public RepositoryFigure()
{
setOpaque(true);
setBackgroundColor(REPOSITORY_BGCOLOR);
setForegroundColor(REPOSITORY_FGCOLOR);

}


/**
* @see org.eclipse.draw2d.Figure#paintFigure(org.eclipse.draw2d.Gra phics)
*/
protected void paintFigure(Graphics graphics) {

Rectangle rect = getBounds().getCopy();
graphics.fillGradient(rect, true);
}


}
Previous Topic:DirectEditLabels on PolylineConnection
Next Topic:Connection Location
Goto Forum:
  


Current Time: Fri Jan 17 22:31:42 GMT 2025

Powered by FUDForum. Page generated in 0.02745 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top