Re: [JAVA2D] Performance question...

2003-10-26 Thread William Wise
Not a stupid question! This is my first graphics app (in the corporate world I mainly do meat and potatoes database programming) and first java app of any real size that I've done outside the context of school. My current redraw strategy is to iterate the linkedlist in the paint method and pass

Re: [JAVA2D] Performance question...

2003-10-26 Thread Jim Graham
My current redraw strategy is to iterate the linkedlist in the paint method and pass the getBounds method of each element into the hitClip method of the graphics object to determine if I need to draw it. Try eliminating the hitClip call and see how things go. That method is not meant to be used

Re: [JAVA2D] Performance question...

2003-10-26 Thread Augusto Sellhorn
Jim Graham wrote: Try eliminating the hitClip call and see how things go. That method is not meant to be used to pare down rendering on a per-object basis, it is meant more for hit testing and also to see if a group of objects should be iterated or not. If you are calling it per-object then you