Text_GUI .4

new topic     » goto parent     » topic index » view thread      » older message » newer message

*** Reply to note of 02/14/97 06:19
thanks for the speed check. i noticed that it is /much/ faster to build
the string, and place the text into it, than it is to append the string
together. for example:

   -- this is slow
   target = ""
   for i = 1 to length( source ) do
      target = target & source[i]
   end for

   -- this is faster
   target = repeat( ' ', length( source ) )
   for i = 1 to length( source ) do
      target[i] = source[i]
   end do

which is why i build the attribute string, and the drop the text into it.

i need to go through the code in the near future, and add a test for mono/
color. i also need to make some variables for the screen size, so you can
change resolutions.

-- david cuny

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu