CAG in Java2D is slow with a large number of objects.... Really really painfully slow. Now for some data points:
* In the test I randomly created 'n' round rectangle 2ds and drew them on the screen. * Each frame I do a substract operation from an area representing the screen. * Every frame I clip the line 'buffer' with this area and then draw the rectangles. This is similar to method 3 - only a lot less performance savvy. When n=10, average drawing time per frame was 37 ms. Yay (I thought), this might be fast enough that I cold be lazy. When n=100, average drawing time per frame increases to 257 ms. Uh oh. I know I'll have on average this number of RR2Ds and other shapes floating around and I can only draw at roughly 5FPS and it shows. When n=1000, average drawing time per frame crushes the system at 2456 ms. While this isn't my target number of shapes, there is nothing saying that at some point I won't get to this point. Overall this is showing the inefficiencies of this approach and it definitely doesn't hold up under a large number of shapes. So Method 2 is tossed. It is just way to slow to be useful for this particular domain of problem. I'm not sure how its implemented underneath the covers, but its not really all that useful if its this show. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".