Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Jack Copper Newsgroups: scea.yaroze.programming.2d_graphics,scee.yaroze.programming.2d_graphics Subject: Re: Scrolling without BG ?? Date: Wed, 28 May 1997 21:43:24 -0400 Organization: ArcanaTech Lines: 49 Message-ID: <338CDF3C.6CFC@earthlink.net> References: <5mgje6$shk7@scea> <338BF95C.12A@interactive.sony.com> NNTP-Posting-Host: 1Cust53.Max6.Cleveland.OH.MS.UU.NET Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) Xref: chuka.playstation.co.uk scea.yaroze.programming.2d_graphics:72 scee.yaroze.programming.2d_graphics:105 Developer Support wrote: > > George Bain wrote: > > SNIP SNIP > > To use the root counters just call StartRCnt with the number you want. > ResetRCnt as necessary and GetRCnt to get a value. The value returned is > in the range 0-65535, after which the counters wrap around. > > Example > > #include > > void main() > { > unsigned long counter; > > counter = 0; // could also be 1 or 2 > > StartRCnt(counter); > > while(*program terminate condition*) > { > ResetRCnt(counter); > > *all the code* > > printf("Time taken: %d\n",GetRCnt(counter)); > } > } > > Stuart How does this square with the (less than enlightening) comments on page 90 in the User Guide? There is an RCntCNT2 MACRO in the libps.h header: #define RCntCNT 0xf2000002 but no RCntMdNOINTR | (or?) RCntMdSP In any case (also from pg 90) it appears that the counters increment every 8 cycles of the System clock (approx every 24 microseconds). HOWEVER, all these caveats are, at the least, frustrating.. How about some definitive information.. Thanks. Jack Copper