Re: [JAVA2D] Performance of translucent line drawing

2002-05-13 Thread Chet Haase
Jan, Translucent lines are somewhat slower on 1.4 (Windows version) than previous version for the same reason that other translucency operations are somewhat slower; we can and usually do put the Swing back buffer in video memory to improve the speed of various simple GUI operations (such as

Re: [JAVA2D] Performance of translucent line drawing

2002-05-13 Thread Jan Bösenberg (INCORS GmbH)
. -- Jan - Original Message - From: Chet Haase [EMAIL PROTECTED] To: Jan Bösenberg [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, May 13, 2002 5:29 PM Subject: Re: [JAVA2D] Performance of translucent line drawing Jan, Translucent lines are somewhat slower on 1.4 (Windows

Re: [JAVA2D] Performance of translucent line drawing

2002-05-13 Thread Jim Graham
Hi Jan, The short answer to the fillRect vs. drawLine question is for the developers to always use the simplest API call that matches their needs. Rectangles are, well, a box of pixels (unless you are transformed in which case it might be a tilted box of pixels). Lines are complicated little

[JAVA2D] Performance of translucent line drawing

2002-05-10 Thread Jan Bösenberg
We are currently working on improving performance of our nice little product that hopefully will give Java on the client some additional momentum. While testing we have noticed that drawLine(x1, y1, x2, y2) in JRE 1.4 is significant slower with translucent colors than with opaque colors (and