Well.. those are the only sizes that will ever be allocated for reusable 
memory.  Basically it's an attempt to only allocate general sizes that most 
things will fit in, so the memory can be reused as much as possible.
Using powers of two is just good on most machines because you limit page 
faults and jumps between sectors and gross stuff like that.
--Palrich.

On Monday 30 June 2003 01:22 pm, Dale Kingston wrote:
> So is that list just a guildline for sizes? And I figured I would need to
> add one to MAX_MEM_LIST but thanks for the reminder.
>
> ----- Original Message -----
> From: "Jason Gauthier" <[EMAIL PROTECTED]>
> To: "'Dale Kingston'" <[EMAIL PROTECTED]>; <[email protected]>
> Sent: Monday, June 30, 2003 12:15 PM
> Subject: RE: Sending info to players and max size for it.
>
> > Don't forget to add 1 to MAX_MEM_LIST.
> >
> > > -----Original Message-----
> > > From: Dale Kingston [mailto:[EMAIL PROTECTED]
> > > Sent: Monday, June 30, 2003 1:03 PM
> > > To: [email protected]
> > > Subject: Sending info to players and max size for it.
> > >
> > >
> > > Ok I'm having a problem with sending information out to
> > > players that gets
> > > too large and I was wondering if anyone could help explain to
> > > me if I can
> > > make this larger or not. I get the bug Hunk 33000 too large
> > > error and so I
> > > looked into it
> > >
> > >   for( iList = 0; iList < MAX_MEM_LIST && rgSizeList[iList] < sMem;
> > > iList++ );
> > >   if( iList == MAX_MEM_LIST )
> > >   {
> > >     bug("Hunk size %d too large.", sMem);
> > >     return NULL;
> > >   }
> > >
> > > So I looked at this rgSizeList:
> > >
> > > const int  rgSizeList [MAX_MEM_LIST] =
> > > {
> > >     16, 32, 64, 128, 256, 1024, 2048, 4096, 8192, 16384, 32768-64
> > > };
> > >
> > > Now what would be wrong if I were to add another field to
> > > this and make it.
> > >
> > > 65536-64
> > >
> > > Would that be bad?
> > >
> > >
> > > --
> > > ROM mailing list
> > > [email protected]
> > > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> >
> > --
> > ROM mailing list
> > [email protected]
> > http://www.rom.org/cgi-bin/mailman/listinfo/rom


Reply via email to