Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Kin LEE Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: question about packet Date: Sun, 17 Aug 1997 17:14:44 -0700 Organization: SCEA News Server Lines: 31 Message-ID: <33F793F4.5F49@cpsc.ucalgary.com> References: <33F2707B.41C67EA6@cpsc.ucalgary.ca> <33f28c5b.32811445@205.149.189.29> NNTP-Posting-Host: ts17ip107.cadvision.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.02Gold (Win95; I) Mario Perdue wrote: > > Kin, > > The packet area is sort of PlayStation Voodoo. I'm told that the > number of packets per object varies and the the average number is 24. > I have no idea why it is defined (20+4) the way it is. I assume that > it meant something to the original programmer. > > Mario > > On Wed, 13 Aug 1997 20:52:01 -0600, Kin Lee > wrote: > > >Hi, > > In the source code of the demo (the one in the red manual): > > > > "PACKET CpuPacketArea[2][MAXOBJECT*(20+4)]" > > > > Why (20+4) ? Why is it always a multiple of 24 ? > > > > Why not "PACKET CpuPacketArea[2][MAXOBJECT*sizeof(some_structure)]" ? > > > > > >Kin Mario, Thank you for your answer. kin