[comp.sys.mac.programmer] Dissolve bits subroutine caution.

minow@mountn.dec.com (Martin Minow) (05/30/89)

In article <5638@hubcap.clemson.edu> mikeoro@hubcap.clemson.edu
(Michael K O'Rourke) asks about a library implementation of Mike
Morton's dissBits code.

Watch out: dissBits gets its speed by writing the screen directly.
It will not work on a color monitor, and shortly after you run the
demo programs, your system will strongly desire to be rebooted.

A fast dissolve-bits subroutine that worked well with all Mac monitors
-- and followed the Mac programming guidelines -- would be nice, but
Mike Morton didn't write it (nor did he claim to).

For what it's worth, on a Mac SE, inverting one pixel using MoveTo
and Line requires almost 1 millisecond.  Inverting one pixel by writing
directly to the screen takes about 30 microseconds.  (All code written
in C.)  I.e., a fast dissolve routine that only uses toolbox calls
and works on all Mac screens hasn't been written yet.

Martin Minow
minow%thundr.dec@decwrl.dec.com