Re: Drawing 25 000 Shape fast
- From: "Larry Barowski" <MElarrybar-AT-eng_DOT_auburnANOTHERDOTeduEND>
- Date: Thu, 13 Jul 2006 13:01:04 -0400
"MTP" <mtp@xxxxxxxxxxxxxxx> wrote in message
news:e95oal$lkr$1@xxxxxxxxxxxxxxxxxxxxx
Hello,
i have to render 25 000 "points" with each one a specific fill color, and
a specific Shape (java.awt.Shape or customized) in a JPanel.
Drawing every Shape, one by one, is too slow (panning the view ins't
smooth). So i tried to create a BufferedImage for each point, and render
them instead. But it is even slower.
Direct : 3 sec
BI: 4.5 sec
I need to reach 0.1 sec by any mean. Right now i'm thinking to add some
kind of Z-buffer but with aliasing it's pretty hard i think.
I'm not sure why you bring up a Z-buffer for 2D shapes. Are
they sorted by depth? If so, how long does the sort take?
.
- Follow-Ups:
- Re: Drawing 25 000 Shape fast
- From: mtp
- Re: Drawing 25 000 Shape fast
- References:
- Drawing 25 000 Shape fast
- From: MTP
- Drawing 25 000 Shape fast
- Prev by Date: Re: Drawing 25 000 Shape fast
- Next by Date: Re: Plotting waveform with applets in Java
- Previous by thread: Re: Drawing 25 000 Shape fast
- Next by thread: Re: Drawing 25 000 Shape fast
- Index(es):