mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
Control over the cache1d size...
git-svn-id: https://svn.eduke32.com/eduke32@442 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
ad6cfa105e
commit
cba58265b9
1 changed files with 12 additions and 3 deletions
|
@ -124,9 +124,9 @@ char user_quote[MAXUSERQUOTES][178];
|
||||||
// char typebuflen,typebuf[41];
|
// char typebuflen,typebuf[41];
|
||||||
|
|
||||||
#ifdef JFAUD
|
#ifdef JFAUD
|
||||||
#define MAXCACHE1DSIZE (16*1048576)
|
int MAXCACHE1DSIZE = (16*1048576);
|
||||||
#else
|
#else
|
||||||
#define MAXCACHE1DSIZE (32*1048576)
|
int MAXCACHE1DSIZE = (32*1048576);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
long tempwallptr;
|
long tempwallptr;
|
||||||
|
@ -148,6 +148,7 @@ enum
|
||||||
T_INTERFACE = 0,
|
T_INTERFACE = 0,
|
||||||
T_LOADGRP = 0,
|
T_LOADGRP = 0,
|
||||||
T_MODE = 1,
|
T_MODE = 1,
|
||||||
|
T_CACHESIZE = 1,
|
||||||
T_ALLOW
|
T_ALLOW
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -8125,7 +8126,7 @@ static void comlinehelp(void)
|
||||||
"-i#\t\tNetwork mode (1/0) (multiplayer only) (default == 1)\n"
|
"-i#\t\tNetwork mode (1/0) (multiplayer only) (default == 1)\n"
|
||||||
"-f#\t\tSend fewer packets (1, 2, 4) (multiplayer only)\n"
|
"-f#\t\tSend fewer packets (1, 2, 4) (multiplayer only)\n"
|
||||||
"-gFILE\t\tUse multiple group files (must be last on command line)\n"
|
"-gFILE\t\tUse multiple group files (must be last on command line)\n"
|
||||||
"-jDIRECTORY\t\tAdd a directory to the file path stack\n"
|
"-jDIRECTORY\tAdd a directory to the file path stack\n"
|
||||||
"-hFILE\t\tUse FILE instead of DUKE3D.DEF\n"
|
"-hFILE\t\tUse FILE instead of DUKE3D.DEF\n"
|
||||||
"-xFILE\t\tUse specified CON file (default EDUKE.CON/GAME.CON)\n"
|
"-xFILE\t\tUse specified CON file (default EDUKE.CON/GAME.CON)\n"
|
||||||
"-u#########\tUser's favorite weapon order (default: 3425689071)\n"
|
"-u#########\tUser's favorite weapon order (default: 3425689071)\n"
|
||||||
|
@ -8326,6 +8327,7 @@ int loadgroupfiles(char *fn)
|
||||||
tokenlist grptokens[] =
|
tokenlist grptokens[] =
|
||||||
{
|
{
|
||||||
{ "loadgrp", T_LOADGRP },
|
{ "loadgrp", T_LOADGRP },
|
||||||
|
{ "cachesize", T_CACHESIZE },
|
||||||
};
|
};
|
||||||
|
|
||||||
script = scriptfile_fromfile(fn);
|
script = scriptfile_fromfile(fn);
|
||||||
|
@ -8350,6 +8352,13 @@ int loadgroupfiles(char *fn)
|
||||||
initprintf("Using group file %s.\n",fn);
|
initprintf("Using group file %s.\n",fn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
case T_CACHESIZE:
|
||||||
|
{
|
||||||
|
int j;
|
||||||
|
if (scriptfile_getnumber(script,&j)) break;
|
||||||
|
|
||||||
|
if (j > 0) MAXCACHE1DSIZE = j<<10;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case T_EOF:
|
case T_EOF:
|
||||||
return(0);
|
return(0);
|
||||||
|
|
Loading…
Reference in a new issue