Path: chuka.playstation.co.uk!news From: James Shaughnessy Newsgroups: scee.yaroze.beginners Subject: Re: GpuPacketArea query. Date: Wed, 01 Jul 1998 10:52:17 +0100 Organization: Bacardi Ferrari V12 Lines: 20 Message-ID: <359A06D1.579C@manc.u-net.com> References: <35557807.6E248247@chowfam.demon.co.uk> <3558DF85.7C89DA42@ndirect.co.uk> <3559D87E.D5C1EBD1@chowfam.demon.co.uk> <3594C013.116@manc.u-net.com> <35991930.333A683@ndirect.co.uk> NNTP-Posting-Host: manc.u-net.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Win95; I) Alex Herbert wrote: > Personally, I allocate say 64K of space for each packet buffer using > malloc(). Then, after sorting all objects (just before I DrawSync()) > check out how much actual memory space is used, by subtracting the > result of GsGetworkbase from the address used for GsSetworkbase. (I > think that's what the functions are called.) By keeping a running > peak value for memory usage, I know exactly how much memory is > required, so I can reduce the size of the packet buffers if memory > starts to get tight. Seems I was very much mistaken about that macro thing :) I'm sure someone told me that.. That's a pretty nifty method there Alex, I'll give it a go! Cheers Jim -- ----------------------------------------- James Shaughnessy james@manc.u-net.com http://www.netyaroze-europe.com/~shaughnj -----------------------------------------