Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Doublebuffering with SWT
Doublebuffering with SWT [message #464664] Mon, 28 November 2005 08: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 09:23 Go to previous messageGo to next message
Eclipse UserFriend
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 09:57 Go to previous messageGo to next message
Eclipse UserFriend
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 04: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 05:10 Go to previous message
Eclipse UserFriend
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: Fri Nov 14 18:36:48 EST 2025

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

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

Back to the top