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

Home » Public Forums » archive » 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
text objects slow! (how to speed up?) [message #16544] Tue, 03 August 1999 00:00
R.G. Stockwell is currently offline  R.G. Stockwell
Messages: 363
Registered: July 1999
Senior Member
Greetings,

I've been playing around with displaying
text to a window using text objects.

The problem is that it is way too slow!!

(as an example)
I have a line of text that is made of 3 strings.
So I create a textobject, arranging the 3 strings
horizontally.(using /onglass)


I have 28 "lines" of text, so I make 28 text objects.

Now I want to display the text to screen (outwindow).

So I call a method that loops through the
text objects, and adds each object to a model.
(one model, with 28 text objects)
I then add the model to my view, and
draw the view (outview).

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??

I am playing around with making one text object,
made with a string array of 3 (columns) by 28 lines,
but I want to change font and colour of the individual
line based on user input.

How do you write textobjects quickly to the screen in IDL?

TIA

Cheers,
bob

--
���`����,��,�`����`����, ��,�`
R.G. Stockwell
Colorado Research Associates
3380 Mitchell Lane
Boulder Colorado
(mysurname)(at)co-ra(dot)com
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: New procedure to save image files
Next Topic: Interesting color information

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

Current Time: Wed Oct 08 19:18:41 PDT 2025

Total time taken to generate the page: 0.00530 seconds