On Wed, 27 Jun 2007 08:37:38 -0400 Giel van Schijndel <[EMAIL PROTECTED]> wrote: >Well it seems that this var, "DisplayBuffer", is a global var. I >guess >implemented there as some misguided attempt at saving a few bytes >of >memory. The problem is that this global var is so widely spread, >that >I'm having _a_lot_ of trouble, tracking its state throughout >program >execution. So unfortunately I cannot just rip this var out. > >If you (or anyone else) has any idea of any location where the >usage of >DisplayBuffer can, *safely*, be removed please feel free to point >that >location out or to submit a patch. >
The original DisplayBuffer was use for 3dfx, and software rendering, and also loading files. PS2 is faults here, since they need to conserve memory. This patch renames DisplayBuffer to GeneralBuffer, displaybuffersize to generalbuffersize. The size if now 200k instead of 5MB. Played 2 SP levels, and 2 skirmish games, with no error message that size is too small. So a savings of 4.8MB :) It will print message in logs if too small. I no see any file in data directory that is over 200K though. -- Click for discounts on certified diamonds and engagement rings http://tagline.hushmail.com/fc/Ioyw6h4ee5oy07N5UjooVEhRuEOOWeBdRe43eebMI0G8by5yGz9kbs/
Generalbuffer.diff
Description: Binary data
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
