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 11:46 Go to next message
Xihui Chen is currently offline Xihui Chen
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 16:08 Go to previous messageGo to next message
Xihui Chen is currently offline Xihui Chen
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 10:03 Go to previous messageGo to next message
Xihui Chen is currently offline Xihui Chen
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 14:28 Go to previous messageGo to next message
Austin Riddle is currently offline Austin Riddle
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 15:18 Go to previous message
Xihui Chen is currently offline Xihui Chen
Messages: 35
Registered: June 2011
Member
I have reported the bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=380949

Thanks!
Previous Topic:get IHandlerService from background thread
Next Topic:GEF with RAP
Goto Forum:
  


Current Time: Sat Aug 30 18:37:48 EDT 2014

Powered by FUDForum. Page generated in 0.10156 seconds