From: "Chris La Mantia" Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro Datafiles Date: 11 Sep 1997 15:27:56 GMT Organization: gte.net Lines: 30 Message-ID: <5v92ls$535$1@gte2.gte.net> References: <3417644B DOT 3E39 AT voyageur DOT ca> NNTP-Posting-Host: 1cust51.tnt1.columbia.mo.da.uu.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk J.E. wrote in article <3417644B DOT 3E39 AT voyageur DOT ca>... > First of all, I'd just like to say that I think Allegro is the coolest > game programming library out there! I love it! I have a question, > though: If I pack a 300k title screen bitmap into the datafile, I don't > want it to stay in memory the entire time (cause it's only used once). > So, if I unload the bitmap (is this possible?) will that actually free > up memory for Djgpp to use, or will it just create an empty memory > block, unknown to Djgpp? Is it good programming practice to unload > objects which are not used much after you use them? Also, let's say I > have different sprites for each "world" on my game. Would it be > possible, and smart, to unload these sprites after each world is > completed? Well, I'd love to ask about a million more questions, but I > won't bother you guys too much (at least, not right now;-) Thanks for > your time and help:-) > > Jordan Ellis My datafile is divided into three datafiles which are swapped in and out of memory as necessary. What I'm worried about is the possible memory fragmentation this may cause... --Chris --------------------------------------------------------------------------- Chris La Mantia / lamantia AT gte DOT net Current Project: Infinite Worlds, an RPG with a dynamic world http://home1.gte.net/lamantia/infinite NO UNSOLICITED COMMERCIAL E-MAIL ACCEPTED