Path: chuka.playstation.co.uk!news From: "Greg Cook" Newsgroups: scee.yaroze.freetalk.english Subject: Packet Explanation Date: Fri, 23 Nov 2001 19:08:09 +1300 Organization: PlayStation Net Yaroze (SCEE) Lines: 34 Message-ID: <9tkp3s$dq91@www.netyaroze-europe.com> NNTP-Posting-Host: 210-54-106-27.dialup.xtra.co.nz X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Ok well ive been working through various beginner tutes, and have been reading the beginners forum to get some help and explain some things. But i have a question about Packets. In most tutes there are two distinct ways to define the Packet Area and im unsure which is the correct way to do it.. 1. #define NO_SPRITES 1 static PACKET packetarea[2] [NO_SPRITES*sizeof(GSPRITE)]; 2. #define PACKETMAX 2048 #define PACKETMAX2 (PACKETMAX*24) static PACKET packetarea[2][PACKETMAX2]; so which one is correct? and in the second version where does the magic number 2048 come from? i assume the 24 is something to do with the size of the items in the structure... but is 2048 just a magic number as i have seen it defined as 1024 and various other sizes........... ok well yet another question from me.. thanks guys Greg