| Any performance impact when SWGraphics.setAntialias(SWT.ON) [message #239416] |
Fri, 26 October 2007 12:40  |
Eclipse User |
|
|
|
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> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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 #239456 is a reply to message #239449] |
Mon, 29 October 2007 14:18   |
Eclipse User |
|
|
|
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. =20
Also, if you use a decoration figure or your own =
clipping 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" <<A =
href=3D"mailto:akatti@ca.ibm.com">akatti@ca.ibm.com</A>>=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" <<A =
href=3D"mailto:none@ibm.com">none@ibm.com</A>>=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. =
On win32, the=20
impact is huge. It's an order of magnitude slower. 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" <<A=20
href=3D"mailto:swei@ca.ibm.com">swei@ca.ibm.com</A>> 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> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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  |
Eclipse User |
|
|
|
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> </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> </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> </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 UML =
Class 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> </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 and put=20
in the GEF FAQ on the wiki.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </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" <<A=20
href=3D"mailto:swei@ca.ibm.com">swei@ca.ibm.com</A>> 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> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial =
size=3D2>Shannon</FONT></DIV></BLOCKQUOTE></BODY></HTML >
------=_NextPart_000_003F_01C81AE6.B9045BD0--
|
|
|
Powered by
FUDForum. Page generated in 0.04750 seconds