From: gregg@cbnewsc.cb.att.com (gregg.g.wonderly)
Subject: Re: Why do Commodities slow down the Amy? (was: How does 2.04 perfor
Organization: AT&T
Date: Thu, 21 Jan 1993 04:54:12 GMT

From article <1993Jan20.220023.355@hubcap.clemson.edu>, by charlet@hubcap.clemson.edu (Charles E "Rick" Taylor IV):
>>Are you running any 'mouse' commodities; autopoint or something like that??
>>I'm not, and I've never had any slow down. I have an A3000/16.
> 
> This happens on 68000 machines.  On anything better, the slowdown's not
> noticable.

I wrote this tool I call watchlib.  It setfunctions a whole library
with an assembler stub (using the pragma file) which sends a message
to the process.  This allows the return value and the register arguments
to the function call, plus the name of the function to be printed.
What I saw was that autopoint is (as you might imagine, but never guess) doing

LockIBase()
WhichLayer()
UnlockIBase()

continuously.  You will notice that it is above priority 0, so there
is little wonder why things slow down...

e.g.
AutoPoint: D0=0x0     =LockIBase(D0=0x0) intuition.library
AutoPoint: D0=0x37b7c0=WhichLayer(A0=0x28cee8,D0=0x185,D1=0x4e) layers.library
AutoPoint: D0=0x0     =UnlockIBase(A0=0x0) intuition.library

While that is going on, you of course also have input.device doing things
like...

input.device: D0=0x2     =InitBitMap(A0=0x242698,D0=0x2,D1=0x290,D2=0x1) graphics.library
input.device: D0=0x8     =OwnBlitter() graphics.library
input.device: D0=0x10029 =DisownBlitter() graphics.library
input.device: D0=0x2     =BltBitMap(A0=0x28cec0,D0=0x8,D1=0xa,A1=0x242698,D2=0x8,D3=0x0,D4=0x27d,D5=0x1,D6=0xca,D7=0xffffffff,A2=0x0) graphics.library
input.device: D0=0x8     =OwnBlitter() graphics.library
input.device: D0=0x10029 =DisownBlitter() graphics.library
input.device: D0=0x2     =BltBitMap(A0=0x2072c8,D0=0x8,D1=0xa,A1=0x28cec0,D2=0x8,D3=0xa,D4=0x27d,D5=0x1,D6=0x0,D7=0xff,A2=0x0) graphics.library
input.device: D0=0x1     =OrRectRegion(A0=0x2482d0,A1=0x20736c) graphics.library
input.device: D0=0x1     =UpfrontLayer(A0=0x0,A1=0x28d478) layers.library
input.device: D0=0x1     =UnlockLayerInfo(A0=0x28cee8) layers.library
input.device: D0=0x2     =SetDrMd(A1=0x208a20,D0=0x0) graphics.library
input.device: D0=0x2     =SetAPen(A1=0x208a20,D0=0x1) graphics.library
input.device: D0=0x4     =SetDrMd(A1=0x208a20,D0=0x1) graphics.library
input.device: D0=0x2     =BltPattern(A1=0x208a20,A0=0x0,D0=0x0,D1=0x0,D2=0x295,D3=0xa,D4=0x0) graphics.library
input.device: D0=0x2     =RectFill(A1=0x208a20,D0=0x0,D1=0x0,D2=0x295,D3=0xa) graphics.library
input.device: D0=0x0     =SetAPen(A1=0x20742c,D0=0x0) graphics.library
input.device: D0=0x2     =SetBPen(A1=0x20742c,D0=0x1) graphics.library
input.device: D0=0x2     =SetDrMd(A1=0x20742c,D0=0x1) graphics.library
input.device: D0=0x1     =ExtendFont(A0=0x205e08,A1=0x0) graphics.library
input.device: D0=0x7fff  =WeighTAMatch(A0=0x28eb98,A1=0x205e18,A2=0x0) graphics.library
input.device: D0=0x205e08=OpenFont(A0=0x28eb98) graphics.library
input.device: D0=0x1     =ExtendFont(A0=0x205e08,A1=0x0) graphics.library
input.device: D0=0x1     =SetFont(A1=0x20742c,A0=0x205e08) graphics.library
input.device: D0=0xffffffff=AskSoftStyle(A1=0x20742c) graphics.library
input.device: D0=0x0     =SetSoftStyle(A1=0x20742c,D0=0x0,D1=0xff) graphics.library

Newsgroups: comp.sys.amiga.misc