Path: chuka.playstation.co.uk!chuka.playstation.co.uk!chuka.playstation.co.uk!not-for-mail From: Lewis_Evans@Playstation.sony.com Newsgroups: scee.yaroze.programming.3d_graphics Subject: packet size & GsSetWorkBase() Date: 7 Nov 1997 11:27:46 -0000 Organization: Sony Computer Entertainment Europe - 119.SS5 Lines: 50 Sender: news@chuka.playstation.co.uk Message-ID: <63utvi$ho81@emeka.playstation.co.uk> Reply-To: Lewis_Evans@Playstation.sony.com NNTP-Posting-Host: emeka.playstation.co.uk From: Lewis_Evans@Playstation.sony.com To: news@playstation.co.uk every primitive takes up size on the packet area. You sometimes see packet areas defined thus: PACKET packetArea[2][MAX_NUMBER_PRIMITIVES * MAX_SIZEOF_PRIMITIVE]; where MAX_SIZEOF_PRIMITIVE is a hash-defined constant, value 24. Ie each primitive takes up a maximum of 24 packets. A single sprite, polygon, line, boxf .... all these are primitives. Hence if you draw 20-80 primitives per frame, you will need 80 * 24 packets. Always try to give more room rather than less; overrunning the packet area is liable to kill off the program. To: Lewis Evans cc: From: news @ playstation.co.uk Subject: packet size & GsSetWorkBase():scee.yaroze.programming.3d_graphics From: "Roland Boettcher" Newsgroups: scee.yaroze.programming.3d_graphics Subject: packet size & GsSetWorkBase() I was writing a small test program to display a single quad polygon with a texture (FT4). It all worked fine but I was wondering what is the "correct" size of the packet array that you have to pass to GsSetWorkBase(). The docs say an FT4 primitive has an olen of 9. So I thought the array should be of the length 9x4=36. But it didnエt work. Then I tried to find the smallest number that worked. It is 8488. Can anybody tell me how to calculate that number? Another stange thing is that that number works fine with 4 FT4 polygons as well (I havnエt tried more yet). Roland