Skip to main content



      Home
Home » Eclipse Projects » GEF » Any performance impact when SWGraphics.setAntialias(SWT.ON)
Any performance impact when SWGraphics.setAntialias(SWT.ON) [message #239416] Fri, 26 October 2007 12:40 Go to next message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C817CD.56823ED0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I do SWGraphics.setAntialias(SWT.ON) to smooth the =
org.eclipse.draw2d.Polygon and would like to find out if there is any =
performance impact?

Thanks

Shannon
------=_NextPart_000_0008_01C817CD.56823ED0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>I do SWGraphics.setAntialias(SWT.ON) to =
smooth the=20
org.eclipse.draw2d.Polygon and would like to find out if there is any=20
performance impact?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Shannon</FONT></DIV></BODY></HTML>

------=_NextPart_000_0008_01C817CD.56823ED0--
Re: Any performance impact when SWGraphics.setAntialias(SWT.ON) [message #239439 is a reply to message #239416] Mon, 29 October 2007 09:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

This is a multi-part message in MIME format.

------=_NextPart_000_000A_01C81A12.03AA3900
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

It depends on the platform. On win32, the impact is huge. It's an =
order of magnitude slower. On OS X, there is little or no impact.
"Shannon Wei" <swei@ca.ibm.com> wrote in message =
news:fft598$843$1@build.eclipse.org...
I do SWGraphics.setAntialias(SWT.ON) to smooth the =
org.eclipse.draw2d.Polygon and would like to find out if there is any =
performance impact?

Thanks

Shannon
------=_NextPart_000_000A_01C81A12.03AA3900
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>It depends on the platform.&nbsp; On =
win32, the=20
impact is huge.&nbsp; It's an order of magnitude slower.&nbsp; On OS X, =
there is=20
little or no impact.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Shannon Wei" &lt;<A=20
href=3D"mailto:swei@ca.ibm.com">swei@ca.ibm.com</A>&gt; wrote in =
message <A=20
=
href=3D"news:fft598$843$1@build.eclipse.org">news:fft598$843$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I do SWGraphics.setAntialias(SWT.ON) =
to smooth=20
the org.eclipse.draw2d.Polygon and would like to find out if there is =
any=20
performance impact?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>Shannon</FONT></DIV></BLOCKQUOTE></BODY></HTML >

------=_NextPart_000_000A_01C81A12.03AA3900--
Re: Any performance impact when SWGraphics.setAntialias(SWT.ON) [message #239444 is a reply to message #239439] Mon, 29 October 2007 10:12 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_000C_01C81A14.41948660
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks for response.

Can you also let us know which platforms the setAntialias(...) is =
supported on? I understand that it's not supported on all platforms.

Shannon
"Randy Hudson" <none@ibm.com> wrote in message =
news:fg4oqu$ua6$1@build.eclipse.org...
It depends on the platform. On win32, the impact is huge. It's an =
order of magnitude slower. On OS X, there is little or no impact.
"Shannon Wei" <swei@ca.ibm.com> wrote in message =
news:fft598$843$1@build.eclipse.org...
I do SWGraphics.setAntialias(SWT.ON) to smooth the =
org.eclipse.draw2d.Polygon and would like to find out if there is any =
performance impact?

Thanks

Shannon
------=_NextPart_000_000C_01C81A14.41948660
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks for response.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Can you also let us know which =
platforms the=20
setAntialias(...) is supported on? I understand that it's not supported =
on all=20
platforms.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Shannon</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Randy Hudson" &lt;<A =
href=3D"mailto:none@ibm.com">none@ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:fg4oqu$ua6$1@build.eclipse.org">news:fg4oqu$ua6$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>It depends on the platform.&nbsp; On =
win32, the=20
impact is huge.&nbsp; It's an order of magnitude slower.&nbsp; On OS =
X, there=20
is little or no impact.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Shannon Wei" &lt;<A=20
href=3D"mailto:swei@ca.ibm.com">swei@ca.ibm.com</A>&gt; wrote in =
message <A=20
=
href=3D"news:fft598$843$1@build.eclipse.org">news:fft598$843$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I do =
SWGraphics.setAntialias(SWT.ON) to smooth=20
the org.eclipse.draw2d.Polygon and would like to find out if there =
is any=20
performance impact?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>Shannon</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE> </BODY></HTML>

------=_NextPart_000_000C_01C81A14.41948660--
Re: Any performance impact when SWGraphics.setAntialias(SWT.ON) [message #239449 is a reply to message #239439] Mon, 29 October 2007 10:16 Go to previous messageGo to next message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_000E_01C81A14.D8965CA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Is there any other way we can achieve smooth polygons specifically =
diamond and triangle shapes?
"Randy Hudson" <none@ibm.com> wrote in message =
news:fg4oqu$ua6$1@build.eclipse.org...
It depends on the platform. On win32, the impact is huge. It's an =
order of magnitude slower. On OS X, there is little or no impact.
"Shannon Wei" <swei@ca.ibm.com> wrote in message =
news:fft598$843$1@build.eclipse.org...
I do SWGraphics.setAntialias(SWT.ON) to smooth the =
org.eclipse.draw2d.Polygon and would like to find out if there is any =
performance impact?

Thanks

Shannon
------=_NextPart_000_000E_01C81A14.D8965CA0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3157" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Is there any other way we can achieve =
smooth=20
polygons specifically diamond and triangle shapes?</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Randy Hudson" &lt;<A =
href=3D"mailto:none@ibm.com">none@ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:fg4oqu$ua6$1@build.eclipse.org">news:fg4oqu$ua6$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>It depends on the platform.&nbsp; On =
win32, the=20
impact is huge.&nbsp; It's an order of magnitude slower.&nbsp; On OS =
X, there=20
is little or no impact.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Shannon Wei" &lt;<A=20
href=3D"mailto:swei@ca.ibm.com">swei@ca.ibm.com</A>&gt; wrote in =
message <A=20
=
href=3D"news:fft598$843$1@build.eclipse.org">news:fft598$843$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I do =
SWGraphics.setAntialias(SWT.ON) to smooth=20
the org.eclipse.draw2d.Polygon and would like to find out if there =
is any=20
performance impact?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>Shannon</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE> </BODY></HTML>

------=_NextPart_000_000E_01C81A14.D8965CA0--
Re: Any performance impact when SWGraphics.setAntialias(SWT.ON) [message #239456 is a reply to message #239449] Mon, 29 October 2007 14:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.ibm.com

This is a multi-part message in MIME format.

------=_NextPart_000_0026_01C81A36.96B04630
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

While it might be much slower, drawing a simple decoration at the end of =
a connection is still going to be quite cheap. Also, if you use a =
decoration figure or your own clipping logic, the cost is only incurred =
for those decorations in the damaged region.
"AK" <akatti@ca.ibm.com> wrote in message =
news:fg4q0n$28t$1@build.eclipse.org...
Is there any other way we can achieve smooth polygons specifically =
diamond and triangle shapes?
"Randy Hudson" <none@ibm.com> wrote in message =
news:fg4oqu$ua6$1@build.eclipse.org...
It depends on the platform. On win32, the impact is huge. It's an =
order of magnitude slower. On OS X, there is little or no impact.
"Shannon Wei" <swei@ca.ibm.com> wrote in message =
news:fft598$843$1@build.eclipse.org...
I do SWGraphics.setAntialias(SWT.ON) to smooth the =
org.eclipse.draw2d.Polygon and would like to find out if there is any =
performance impact?

Thanks

Shannon
------=_NextPart_000_0026_01C81A36.96B04630
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>While it might be much slower, drawing =
a simple=20
decoration at the end of a connection is still going to be quite =
cheap.&nbsp;=20
Also, if you use a decoration figure or&nbsp;your own =
clipping&nbsp;logic, the=20
cost is only incurred for those decorations in the damaged =
region.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"AK" &lt;<A =
href=3D"mailto:akatti@ca.ibm.com">akatti@ca.ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:fg4q0n$28t$1@build.eclipse.org">news:fg4q0n$28t$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Is there any other way we can achieve =
smooth=20
polygons specifically diamond and triangle shapes?</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Randy Hudson" &lt;<A =
href=3D"mailto:none@ibm.com">none@ibm.com</A>&gt;=20
wrote in message <A=20
=
href=3D"news:fg4oqu$ua6$1@build.eclipse.org">news:fg4oqu$ua6$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>It depends on the platform.&nbsp; =
On win32, the=20
impact is huge.&nbsp; It's an order of magnitude slower.&nbsp; On OS =
X,=20
there is little or no impact.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Shannon Wei" &lt;<A=20
href=3D"mailto:swei@ca.ibm.com">swei@ca.ibm.com</A>&gt; wrote in =
message <A=20
=
href=3D"news:fft598$843$1@build.eclipse.org">news:fft598$843$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I do =
SWGraphics.setAntialias(SWT.ON) to=20
smooth the org.eclipse.draw2d.Polygon and would like to find out =
if there=20
is any performance impact?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>Shannon</FONT></DIV></BLOCKQUOTE></BLOCKQUOTE> </BLOCKQUOTE></BOD=
Y></HTML>

------=_NextPart_000_0026_01C81A36.96B04630--
Re: Any performance impact when SWGraphics.setAntialias(SWT.ON) [message #239481 is a reply to message #239416] Tue, 30 October 2007 11:19 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.

------=_NextPart_000_003F_01C81AE6.B9045BD0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Shannon,

This depends on your domain and the complexity of your diagram. Consider =
how many things are on the diagram and how many figures must be =
processed.

For GMF based diagrams, we default to anti-alias on, as we like the =
improved smoothed look.

Rational Software Architect makes use of GMF for its diagrams. When I =
open the largest, most complex UML Class Diagram I have in Rational =
Software Architect, I see no difference in performance on Windows XP =
whether anti-alias is on or off.

If someone has a concrete example of how anti-aliasing performs poorly, =
I would be interested in documenting and put in the GEF FAQ on the wiki.

Cheers...
Anthony
"Shannon Wei" <swei@ca.ibm.com> wrote in message =
news:fft598$843$1@build.eclipse.org...
I do SWGraphics.setAntialias(SWT.ON) to smooth the =
org.eclipse.draw2d.Polygon and would like to find out if there is any =
performance impact?

Thanks

Shannon
------=_NextPart_000_003F_01C81AE6.B9045BD0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.3199" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi Shannon,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This depends on your domain and the =
complexity of=20
your diagram. Consider how many things are on the diagram and how many =
figures=20
must be processed.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>For GMF based diagrams, we default to =
anti-alias=20
on, as we like the improved smoothed look.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Rational Software Architect makes use =
of GMF for=20
its diagrams. When I open the largest, most complex&nbsp;UML =
Class&nbsp;Diagram=20
I have in Rational Software Architect, I see no difference in =
performance on=20
Windows XP whether anti-alias is on or off.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If someone has a concrete example of =
how=20
anti-aliasing performs poorly, I would be interested in =
documenting&nbsp;and put=20
in the GEF FAQ on the wiki.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Cheers...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Anthony</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Shannon Wei" &lt;<A=20
href=3D"mailto:swei@ca.ibm.com">swei@ca.ibm.com</A>&gt; wrote in =
message <A=20
=
href=3D"news:fft598$843$1@build.eclipse.org">news:fft598$843$1@build.ecli=
pse.org</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>I do SWGraphics.setAntialias(SWT.ON) =
to smooth=20
the org.eclipse.draw2d.Polygon and would like to find out if there is =
any=20
performance impact?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial =
size=3D2>Shannon</FONT></DIV></BLOCKQUOTE></BODY></HTML >

------=_NextPart_000_003F_01C81AE6.B9045BD0--
Previous Topic:installEditPolicy in AbstractEditPart
Next Topic:figure not displayed until setSize
Goto Forum:
  


Current Time: Sat Nov 08 05:59:29 EST 2025

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

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

Back to the top