[comp.sys.mac.programmer] Speed Increase in Background? How did that happen?

BRBOYER@MTUS5.CTS.MTU.EDU (Rucell) (04/08/91)

   I have a question for all of you Macintosh Guru's.  What on Earth could
make a program run faster in the background than it does in the fore-ground
(while Multi-Finder is activated)?  When I first noticed the severe speed
differences, I almost freaked out.  Could someone explain this to me?  Is
there a way to get my program to run the same speed (or even faster) while it
is in the fore-ground?  Thanks in advance...

   Bradley R. Boyer      ##### #   #  ###    BRBOYER@mtus5.cts.mtu.edu
                           #   #  #  #   #   BRBOYER%MTUS5.BITNET
 |"How could it have |    # #  ###   #####
 | been me?  I wasn't|     #   #  #  #   #   Phi Kappa Theta - Michigan Chi
Rho
 | even there!"      |   ##### #   #  ###    Michigan Technological University

------ Posted using NetFeed, THE Macintosh <====> UseNet Interface Program ----

wayner@CS.Cornell.EDU (Peter Wayner) (04/08/91)

BRBOYER@MTUS5.CTS.MTU.EDU (Rucell) writes:


>   I have a question for all of you Macintosh Guru's.  What on Earth could
>make a program run faster in the background than it does in the fore-ground
>(while Multi-Finder is activated)?  When I first noticed the severe speed
>differences, I almost freaked out.  Could someone explain this to me?  Is
>there a way to get my program to run the same speed (or even faster) while it
>is in the fore-ground?  Thanks in advance...

My guess (and it is only a guess) is that the normal program does plenty
of screen drawing. When it is in the background all of its drawing
is clipped (or masked) out. Just a guess, though, and if someone who
really understands these things could correct me, I would appreciate it.

-Peter




>   Bradley R. Boyer      ##### #   #  ###    BRBOYER@mtus5.cts.mtu.edu
>                           #   #  #  #   #   BRBOYER%MTUS5.BITNET
> |"How could it have |    # #  ###   #####
> | been me?  I wasn't|     #   #  #  #   #   Phi Kappa Theta - Michigan Chi
>Rho
> | even there!"      |   ##### #   #  ###    Michigan Technological University

>------ Posted using NetFeed, THE Macintosh <====> UseNet Interface Program ----
-- 
Peter Wayner   Department of Computer Science Cornell Univ. Ithaca, NY 14850
EMail:wayner@cs.cornell.edu    Office: 607-255-9202 or 255-1008
Home: 116 Oak Ave, Ithaca, NY 14850  Phone: 607-277-6678