A89: Re: Re: Re: Why does this slow down?


[Prev][Next][Index][Thread]

A89: Re: Re: Re: Why does this slow down?




> Well, actually there is no DrawClipString that I'm aware of. I wrote my own,
> and it's not very smart at all (the source is all there). But it mainly uses
> DrawClipChar, so what you said may still apply. So basically, rendering more
> characters is going to slow it down simply because the drawing part is
> fairly time consuming compared to the figuring-out-whether-to-draw part?

My bad - I was thinking of the WinStr (or whatever they're called) routines -
they can do clipped text in a memory area of your choice if you PortSet()
correctly.

In your case though - if you draw every character every time then there will be
more work the more characters are visible on-screen. Every character you draw
will be clipped, but the ones outside of the screen will be clipped _faster_.

--
 / Niklas Brunlid
Check out Prosit for the TI-89 / TI-92+ at http://prosit.ticalc.org
Random PQF v5.1 Quote follows:

People whose concept of ancient history is the first series of Star Trek
may be treated with patience, because it's usually not their fault they
were reduced to getting their education from school.
        -- (Terry Pratchett, alt.books.pratchett)





References: