public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
From: Hans Ronne <hronne@comhem.se>
To: Eric McDonald <mcdonald@phy.cmich.edu>
Cc: xconq7@sources.redhat.com
Subject: Re: Major Game Upgrade + New Images: Specula is now Opal 2.0
Date: Tue, 03 Aug 2004 21:14:00 -0000	[thread overview]
Message-ID: <l03130302bd32e6abf39c@[212.181.162.155]> (raw)
In-Reply-To: <410D3514.8090608@phy.cmich.edu>

>> But I am not sure that we should continue to keep all images in one imf.dir
>> even if IMFApp can handle it. The only point of having it is that you don't
>> need to include the relevant *.imf files in the game file,
>
>Right. And that is quite convenient, wouldn't you agree? Why get rid of it?

Well, here is one reason (from imf.c):

if (images == NULL) {
    images = (ImageFamily **) xmalloc(MAXIMAGEFAMILIES * sizeof(ImageFamily
*));
}

MAXIMAGEFAMILIES is currently set to 3000, to accomodate all image families
in imf.dir. This is not primarily because of IMFApp, but because Xconq
needs it, since all image families in imf.dir are allocated in every Xconq
game. This is true even if you run duel.g which has only one image family
(the tank). This is also why you don't need to include stuff from imf.dir
in your game files - it gets allocated anyway, for better or for worse.

So if we get rid of imf.dir (or more precisly its current use in Xconq) we
gain the memory footprint of 2999 image families in the Duel game. Somewhat
less in more complicated games. This would probably make it easier to run
Xconq on pre-NT Windows systems (98, ME) that have limited graphics memory.

Another solution is, as we already discussed, to rewrite the imaging code
so that only stuff that is needed in the game is allocated.

>I suppose that you weren't implying that we get rid of the master
>catalog concept, but rather just split it up along the lines of genre or
>something. Or, at least, that would be my suggestion....

Yes. In fact, many *.imf files, including those that I have added over the
years, are already pretty much along genre lines.

Hans



      parent reply	other threads:[~2004-08-01 18:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-01 18:11 Eric McDonald
2004-08-01 18:21 ` Hans Ronne
2004-08-01 18:23   ` Hans Ronne
2004-08-01 18:54     ` Opal Elijah Meeks
2004-08-01 18:26   ` Major Game Upgrade + New Images: Specula is now Opal 2.0 Eric McDonald
2004-08-01 18:52     ` Eric McDonald
2004-08-03 21:14     ` Hans Ronne [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='l03130302bd32e6abf39c@[212.181.162.155]' \
    --to=hronne@comhem.se \
    --cc=mcdonald@phy.cmich.edu \
    --cc=xconq7@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).