Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!caen!sol.ctr.columbia.edu!ira.uka.de!smurf!urlichs From: urlichs@smurf.sub.org (Matthias Urlichs) Newsgroups: comp.sys.mac.programmer Subject: Re: ResEdit 2.1 ZoomRect Speedup patch Keywords: ResEdit patch ZoomRect Message-ID: Date: 19 Jun 91 07:58:48 GMT References: <1991Jun10.153307.11549@gorm.ruc.dk> <1991Jun10.180210.24253@nntp.hut.fi> Organization: University of Karlsruhe, FRG Lines: 17 In comp.sys.mac.programmer, article <1991Jun10.180210.24253@nntp.hut.fi>, jmunkki@hila.hut.fi (Juri Munkki) writes: < I would have thought that _Delay is mostly obsolete now that MultiFinder < exists. Calling delay is like intentionally making the computer slower. < Instead, you should always try to use _WaitNextEvent. Of course, in some < cases WaitNextEvent might not return quite as soon as you wanted, but at < least some work got done instead of an idle loop. < You must not give background time to anybody while drawing into the WMrgPort. The background application may draw something, and when you undraw the zoom rectangle (typically by XORing), things tend to look interesting. Users tend to get confused when that happens. -- Matthias Urlichs -- urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de /(o\ Humboldtstrasse 7 - 7500 Karlsruhe 1 - FRG -- +49-721-621127(0700-2330) \o)/