Morphic slow in 2.8 (was: Forecast)

Bob Arning arning at charm.net
Thu Oct 5 20:50:45 UTC 2000


>On Wed, 04 Oct 2000 15:37:50 -0600 David Farber <dfarber at numenor.com> wrote:
>>I have experienced the same thing on my 200MHz NT machine moving from 2.7
>>to 2.8. The place it is most evident to me is with buttons; in 2.7 there
>>was no latency between clicking on a button and the button being
>>highlighted. In 2.8 there is a very noticably latency (probably ~ 500-700
>>msec). It is very easy to see (at least on my machine), for example, when
>>you press the "New game" button in FreeCell <grin>. For that reason, I have
>>not upgraded my FreeCell image to 2.8.

On Wed, 4 Oct 2000 15:56:53 -0700 Dan Ingalls <Dan.Ingalls at disney.com> wrote:
>He's right, though, that you can get like 3-4 new games per second by clicking the 'new game' button repeatedly in 2.7, whereas it's MUCH less in 2.9alpha (and probably 2.8).  I'd pursue, but am on another mission right now.

Dan,

I get somewhat different results

2.7 - 19 games in 11.1 seconds  = 1.7 games/second
2.9 - 41 games in 13.1 sec =  3.1 games per second (with simpler mouseDown:)

In 2.9 I was able to get up to 4 new games in one morphic cycle due to the multiple events per cycle. Also, fewer of my clicks were lost in 2.9.

Cheers,
Bob

============================================================================================
2.7 19 games in 11.1 seconds  = 1.7 games/second

 - 567 tallies, 11017 msec.

**Tree**
67.7 PasteUpMorph>>doOneCycle
  |37.2 PasteUpMorph>>doOneCycleNow
  |  |34.4 PasteUpMorph>>displayWorldSafely
  |  |  |34.4 PasteUpMorph>>displayWorld
  |  |2.6 HandMorph>>processEvents
  |  |  2.5 HandMorph>>handleEvent:
  |  |    2.1 HandMorph>>handleMouseMove:
  |30.5 PasteUpMorph>>interCyclePause:
  |  30.5 Delay>>wait
32.3 SimpleButtonMorph>>doButtonAction
  32.3 FreeCell>>newGame
    32.3 FreeCell>>newGameNumber:
      32.1 FreeCellBoard>>pickGame:
        21.2 PlayingCardDeck class>>newDeck
        9.5 FreeCellBoard>>resetBoard

**Leaves**
30.5 Delay>>wait
15.0 GrafPort>>copyBits
3.7 DisplayScreen>>forceToScreen:
3.7 WarpBlt>>warpBits

============================================================================================
2.9a with simpler mouseDown:

41 games in 13.1 sec =  3.1 games per second

 - 650 tallies, 13130 msec.

**Tree**
58.6% {7694ms} SimpleButtonMorph>>doButtonAction
  |58.6% {7694ms} FreeCell>>newGame
  |  58.6% {7694ms} FreeCell>>newGameNumber:
  |    58.3% {7655ms} FreeCellBoard>>pickGame:
  |      38.6% {5068ms} PlayingCardDeck class>>newDeck
  |      18.0% {2363ms} FreeCellBoard>>resetBoard
  |        9.8% {1287ms} FreeCellBoard(Morph)>>changed
  |        7.7% {1011ms} FreeCellBoard>>resetStacks
41.4% {5436ms} DisplayScreen>>doOneCycleMorphic
  41.4% {5436ms} PasteUpMorph>>doOneCycle
    41.4% {5436ms} WorldState>>doOneCycleFor:
      32.9% {4320ms} WorldState>>doOneCycleNowFor:
        |30.8% {4044ms} WorldState>>displayWorldSafely:
        |2.2% {289ms} HandMorph>>processEvents
      8.5% {1116ms} WorldState>>interCyclePause:
        8.5% {1116ms} Delay>>wait

**Leaves**
12.5% {1641ms} WarpBlt>>warpBits
8.6% {1129ms} GrafPort>>copyBits
8.5% {1116ms} Delay>>wait
6.5% {853ms} BitBlt>>copy:from:in:
4.6% {604ms} BalloonEngine>>copyLoopFaster
2.8% {368ms} DisplayScreen>>forceToScreen:
2.6% {341ms} PlayingCardMorph(Morph)>>hasProperty:
2.5% {328ms} Form>>setExtent:depth:





More information about the Squeak-dev mailing list