At 7:37 AM +0200 04/27/00, Paul Taylor wrote:
>   What's the fastest way to clear the screen buffer?  Currently I'm using
>the built in WinEraseWindow() function, but it seems a little on the slow
>side.  Is there another easy, but faster, way to accomplish this?

WinEraseWindow is already optimized for full-screen-width cases.   It
(eventually) just calls MemSet, which is about as fast as you can get.  Of
course, if your window is not fully as wide as the screen, this won't be
quite as fast because it needs to compute the start and end addresses for
each scan line...

Depending on the device you're working with, performance may vary.  e.g.
the IIIc uses external video memory, and there are some extra wait states
associated with reading from or writing to this memory.  As a result,
clearing the screen may be slower than zeroing other regions of memory.

                                --Bob



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to