tags:

views:

42

answers:

1

Which has faster graphics performance: SWT or Java2D?

On MacOSX, Does SWT's graphics go through Quartz Extreme which in turn is rendered using hardware-accelerated OpenGL?

I'm not referring to the native UI controls but asking about custom 2D graphics rendering like text, lines, curves and polygons.

A: 

I theory, SWT should be faster since it directly uses native UI implementations.

But in practice, it all depends on SWT and SWING implementations on each platform.

In my experience, SWT is faster in Windows, but it is not faster on Mac OS X.

Pablo Santa Cruz
Are you using only SWT controls/widgets? Or do you use it to do custom drawing?
Rex Guo
Both, actually.
Pablo Santa Cruz