comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » optimization question: a faster way to PIXMAP?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
optimization question: a faster way to PIXMAP? [message #20579] Thu, 13 July 2000 00:00 Go to previous message
Dennis J. Boccippio is currently offline  Dennis J. Boccippio
Messages: 6
Registered: July 2000
Junior Member
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()...?

Thanks,

Dennis

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/_/
_/ Dennis J. Boccippio _/
_/ http://fly.hiwaay.net/~djboccip/Dennis.html _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ _/_/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Link IDL to ORACLE Pro*FORTRAN
Next Topic: assignment inside boolean expression

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:23:10 PDT 2025

Total time taken to generate the page: 0.00430 seconds