Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » GEF in RAP repaints the whole SWT canvas on any update
GEF in RAP repaints the whole SWT canvas on any update [message #876961] Fri, 25 May 2012 15:46 Go to next message
Xihui Chen is currently offline Xihui ChenFriend
Messages: 35
Registered: June 2011
Member

When I monitor the network traffic of my GEF application on RAP, I found that even a small repaint on a figure in GEF editor will also transfer the painting info for all other figures in the editor even they don't need to be updated at all. I think this is big problem since it will heavily affect the GEF performance on RAP.

Could this problem be resolved?

Thanks!
Re: GEF in RAP repaints the whole SWT canvas on any update [message #877057 is a reply to message #876961] Fri, 25 May 2012 20:08 Go to previous messageGo to next message
Xihui Chen is currently offline Xihui ChenFriend
Messages: 35
Registered: June 2011
Member
Looks like the reason is that in RAP the redraw() method of swt.widgets.Control ignored the rectangle region and just redraw the whole control whenever it is needed:

public void redraw( int x, int y, int width, int height, boolean all ) {
checkWidget();
if( width > 0 && height > 0 ) {
internalSetRedraw( true );
}
}

Re: GEF in RAP repaints the whole SWT canvas on any update [message #878547 is a reply to message #877057] Tue, 29 May 2012 14:03 Go to previous messageGo to next message
Xihui Chen is currently offline Xihui ChenFriend
Messages: 35
Registered: June 2011
Member
Can anyone help to look at this and point to me if this could be solved? This is really important to me because it is the performance bottleneck for my project.

Thank you!
Re: GEF in RAP repaints the whole SWT canvas on any update [message #878688 is a reply to message #878547] Tue, 29 May 2012 18:28 Go to previous messageGo to next message
Austin Riddle is currently offline Austin RiddleFriend
Messages: 128
Registered: July 2009
Senior Member
Hi Xihui,

Could you open a bug on this issue? Thanks.
Re: GEF in RAP repaints the whole SWT canvas on any update [message #878707 is a reply to message #878688] Tue, 29 May 2012 19:18 Go to previous message
Xihui Chen is currently offline Xihui ChenFriend
Messages: 35
Registered: June 2011
Member
I have reported the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=380949

Thanks!
Previous Topic:Getting Servlet Request Info
Next Topic:rap - new message protocol
Goto Forum:
  


Current Time: Fri Apr 26 04:43:17 GMT 2024

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

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

Back to the top