Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!apple.com!gandalf From: gandalf@apple.com (Martin Gannholm) Newsgroups: comp.sys.mac.hypercard Subject: Re: Slow Lock Screen and Unlock Screen Message-ID: <11521@goofy.Apple.COM> Date: 14 Dec 90 02:08:33 GMT References: <1990Dec12.225940.6563@dhw68k.cts.com> Sender: usenet@Apple.COM Organization: Apple Computer, Inc. Lines: 33 In article <1990Dec12.225940.6563@dhw68k.cts.com> mrx@dhw68k.cts.com (Mark Murphy) writes: > I have noticed something very wrong with Lock Screen and Unlock Screen. > It seems to me that they have gotten slower! I have the following script: > ...>>>script deleted<<<... > Now... it takes this script about 78 ticks to execute on a MacIIcx with 256 > colors. In other words, to update three fields on the screen, it takes a > little over a second. If I remove the lock and unlock screen commands, the > script only takes 18 ticks. Wow! What a difference! Looks like 30 ticks > for each lock and unlock. The lock doesn't take any time; it's the unlock. Since we don't know what things you've changed since you locked the screen (indeed, we don't even know if you're on the same card!), we force a redraw of the whole card. When the screen isn't locked, we just redraw the area affected by the change. I guess we could consider trying to remember which parts of the card (or bkgnd) you changed and, if you're on the same card, only redraw stuff in that area. There is certainly room for optimizations in several parts of HC...we just didn't have time to do them. Martin Gannholm HyperCard 2.0 Engineer Apple Computer Exclaimer!!! I typed this myself = I speak for myself... ..or..I never said it...Nobody heard me say it...You can't prove anything!