|
>I'm
developing a specialized diagramming application that uses a
linked
list >of elements (lines, circles, boxes, fractals, specialized symbols, etc..) to >render maps. > >With lots of elements added the application starts to slow down pretty >dramatically (as one might imagine) so my question is... > >...would I see a significant performance increase if I render the elements >using java2d draw functions when the elements are created and then cache >them as bitmaps and blit them when they're needed on screen. The average >element size on screen is 20x20 pixel. > >I guess the question comes down to is the bit blit function quicker for >drawing lots of small elements on screen than using java2d draw commands to >render the same small elemnent using a GeneralPath? > Yes it should be quicker. Why you don't try it and tell us result? I think where is no need for repainting all objects every time. Paint it all first at offscreen image, and use this image for repainting. You have then to update offscreen image if something changes (and only things that changes - not all image! - eg. if you move circle you should update 2 regions - at old and new circle position). ak
===========================================================================
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".
|
- [JAVA2D] Performance question... William M. Wise
- Re: [JAVA2D] Performance question... William Wise
- Re: [JAVA2D] Performance question... Jim Graham
- Re: [JAVA2D] Performance question... Augusto Sellhorn
- Re: [JAVA2D] Performance question... ak
- Re: [JAVA2D] Performance question... Catharsis
- Re: [JAVA2D] Performance question... William M. Wise
- Re: [JAVA2D] Performance question... William M. Wise
