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

Home » Public Forums » archive » Re: Why is IDLgrSrcDest::Draw so slow when calling IDLgrPolygon::SetProperty?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Why is IDLgrSrcDest::Draw so slow when calling IDLgrPolygon::SetProperty? [message #35085] Wed, 14 May 2003 09:24
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
"Karl Schultz" wrote in message...
> "Rick Towler" wrote in message...

>> Am I interpreting this correctly or am I crazy?
>
> Yes and No.
>
> You are absolutely right. The best I can do is fix this in the next
> release.

Thanks Karl. That is the most we could expect!


-Rick

When you say "next", you do mean 6.0, right? :)
Re: Why is IDLgrSrcDest::Draw so slow when calling IDLgrPolygon::SetProperty? [message #35088 is a reply to message #35085] Wed, 14 May 2003 08:09 Go to previous message
Karl Schultz is currently offline  Karl Schultz
Messages: 341
Registered: October 1999
Senior Member
"Rick Towler" <rtowler@u.washington.edu> wrote in message
news:b9ru45$20qi$1@nntp6.u.washington.edu...
> I am puzzled over why IDLgrSrcDest::Draw is so slow when I call
> IDLgrPolygon::SetProperty. Depending on the polygon count I am seeing up
to
> a 60% drop in frame rates when I change the color of a IDLgrPolygon object
> vs. when I don't. This is a real bummer as I am animating 500-1000
> IDLgrPolygon objects which present information thru their changing color.
>
> Looking at the output of PROFILER it seems that IDL is spending this extra
> time in IDLgrSrcDest::Draw. Knowing that IDL will cache properties of
> graphic atoms to speed subsequent draws, I am guessing that these
properties
> are updated in IDLgrSrcDest::Draw? Venturing further out on the limb, I
am
> guessing that a call to IDLgrPolygon::SetProperty sets a flag that forces
> the atom's cache to be updated when IDLgrSrcDest::Draw is called. If this
> is the case, I would think that properties such as COLOR, and LINESTYLE
> wouldn't require IDL to re-calculate these properties and I am wondering
why
> I have to pay this price.
>
> Am I interpreting this correctly or am I crazy?

Yes and No.

You are absolutely right. The best I can do is fix this in the next
release.

Karl
Re: Why is IDLgrSrcDest::Draw so slow when calling IDLgrPolygon::SetProperty? [message #35095 is a reply to message #35088] Tue, 13 May 2003 16:34 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Rick Towler (rtowler@u.washington.edu) writes:

> Am I interpreting this correctly or am I crazy?

I'm not sure you are going to like the answer in either case. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: FINDFILE - how many files can it find?
Next Topic: freehand ROI and mask with IDLanROI. Solution.

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

Current Time: Fri Oct 10 13:59:33 PDT 2025

Total time taken to generate the page: 0.15854 seconds