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

Home » Public Forums » archive » Re: text objects slow! (how to speed up?)
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: text objects slow! (how to speed up?) [message #16537] Tue, 03 August 1999 00:00
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Bob Stockwell (dejastockwell@my-deja.com) writes:

> The command:
> IDL> outwindow->Draw, outview
> takes 3.7 seconds on my comp (winNT 400 mhz pc).
> This is way too slow. Why does it take so long to
> draw a screen of text??

Well, I'm going to guess because you are using
True-Type fonts, which are the default with the
object graphics system. With true type fonts, each
character is a formed from multiple (sometimes *many*)
polygons. Each of those polygons has to be individually
rendered and filled by the graphics system. It just
does take a LOT of time to do that. You might try
switching to vector (Hershey) fonts, although I don't
know if you will then lose the ability to color the
text. (Sorry, it's late and I've been programming all
day. I really don't feel like checking.)

BTW, you also will want to turn off recomputing of
the character dimensions with each draw (see the
RECOMPUTE_DIMENSIONS keyword). This will *also* take
a lot of time with the text objects you have.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@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: MPEG image size limit?
Next Topic: Re: New procedure to save image files

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

Current Time: Fri Oct 10 00:26:32 PDT 2025

Total time taken to generate the page: 0.55864 seconds