Mail Archives: djgpp/1997/09/11/14:21:31
J.E. <cellis AT voyageur DOT ca> 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 <cellis AT voyageur DOT ca>
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
- Raw text -