Path: chuka.playstation.co.uk!scea!greg_labrec@interactive.sony.com From: Pradip Fatehpuria Newsgroups: scea.yaroze.programming.2d_graphics Subject: Re: question about packet Date: Thu, 28 Aug 1997 13:10:51 -0700 Organization: Sony Computer Entertainment America Lines: 40 Message-ID: <3405DB4A.50BD079@interactive.sony.com> References: <33F2707B.41C67EA6@cpsc.ucalgary.ca> <340350B2.60DC@interactive.sony.com> <01bcb356$a97c8280$aebf43ce@wkwerner> NNTP-Posting-Host: 206.41.6.40 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.02 [en] (Win95; I) When you create the TMD file using the RSD2TMD tool it tells you the type and number of primitives in the file. Mutiply those numbers by the size of the primitive and you will have a maximum number of possible primitives in the frame for that polygon. Another way is to just go through the TMD file at run-time and calculate the total number of polygons in it. In the first method above the size is pre-calculated and hardcoded in your code. The second method may be used once at the begining of the program and the total size can me used from that point on. I hope this clears this up. Pradip K Fatehpuria Wayne K. Werner wrote: > How do I calculate n? Or for that mater, the largest possible memory > block? > -- > Wayne K. Werner > wkwerner@con2.com > > Pradip Fatehpuria wrote: > > > Actually 4 bytes is the tag area in the packet and 20 bytes is the size > > of the largest possible primitive packet. So 20+4= 24 bytes per packet. > > You may use a smaller value than 20, like (n+4) where n is the size of > > the largest possible packet in your models. > > > > To be more accurate, you may calculate the largest possible memory block > > taken by all primitives in your world and use that area as the GS packet > > area. > > > > Pradip K Fatehpuria > >