Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Doublebuffering with SWT
Doublebuffering with SWT [message #464664] Mon, 28 November 2005 13:39 Go to next message
Eclipse UserFriend
Originally posted by: michael_imhof.ch.csc.com

Does SWT supports doublebuffering?
Within my application I have to redraw often (10 times/sec) and
without doublebuffering the whole screen is flickering!
I saw implementations using the gc.drawImage(..) function but this
is very slow and it seems to me that this function is copy the content
of the image to the gc (instead of switching from one to the other buffer).

Regards
Michael
Re: Doublebuffering with SWT [message #464668 is a reply to message #464664] Mon, 28 November 2005 14:23 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
This depends on the Platform you run on. Try using the
SWT.DOUBLEBUFFERING (<- could be written differently but it is definitly
in the SWT class) style on your canvas/composite and see what happens.

Regards
Stefan

Michael Imhof wrote:
> Does SWT supports doublebuffering?
> Within my application I have to redraw often (10 times/sec) and
> without doublebuffering the whole screen is flickering!
> I saw implementations using the gc.drawImage(..) function but this
> is very slow and it seems to me that this function is copy the content
> of the image to the gc (instead of switching from one to the other buffer).
>
> Regards
> Michael
>
Re: Doublebuffering with SWT [message #464669 is a reply to message #464668] Mon, 28 November 2005 14:57 Go to previous messageGo to next message
ted@ted.net is currently offline ted@ted.netFriend
Messages: 3
Registered: July 2009
Junior Member
SWT.DOUBLE_BUFFERED

ted@ted.net - ted.williams@windriver.com
Re: Doublebuffering with SWT [message #464729 is a reply to message #464669] Tue, 29 November 2005 09:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mimhof.ch.csc.com

Thanks for the hint. SWT.DOUBLE_BUFFERED ist working. But its still
very slow (as slow as my previous version with drawImage)!

Michael
Re: Doublebuffering with SWT [message #464733 is a reply to message #464729] Tue, 29 November 2005 10:10 Go to previous message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
Which Platform are you on? Are you sure that Double buffering is
actually being executed?

Stefan

Michael Imhof wrote:
> Thanks for the hint. SWT.DOUBLE_BUFFERED ist working. But its still
> very slow (as slow as my previous version with drawImage)!
>
> Michael
>
Previous Topic:ControlContribution.dispose()
Next Topic:SWT constant for space key
Goto Forum:
  


Current Time: Wed Dec 04 15:55:30 GMT 2024

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

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

Back to the top