[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
optimization question: a faster way to PIXMAP?
- Subject: optimization question: a faster way to PIXMAP?
- From: "Dennis J. Boccippio" <djboccip(at)bellsouth.net>
- Date: Thu, 13 Jul 2000 19:13:09 -0500
- Newsgroups: comp.lang.idl-pvwave,comp.lang.idl
- User-Agent: MT-NewsWatcher/3.0 (PPC)
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:20218 comp.lang.idl:1906
A question for the IDL gurus:
- I have data in the form of irregular polygons, each polygon has
an associated value (let's call it an amplitude). I want a
composite image of the sum of all these polygons' amplitudes.
- My current approach is to :
(1) create a (large) WINDOW,../PIXMAP,
(2) render each polygon using POLYFILL
(3) TVRD() the pixmap window
(4) add this to an accumulation array
... iterate (1)-(4) until all polygons have been rendered
This works, but is painfully slow. Profiling the code shows that
by far the most significant logjam is the TVRD() of the pixmap.
So: does anyone know of more efficient ways to do this? Is the Z
device an option - it seems like it can be used for internal frame
storage, but would still have to be probed by TVRD()...?
_/ Dennis J. Boccippio _/
_/ http://fly.hiwaay.net/~djboccip/Dennis.html _/