One of the biggest things keeping -mem/-heapsize numbers up is the video

memory in software mode. This is now taken care of, the memory is now
grabbed using calloc.

On Unix systems and all systems using SDL, the default video memory is now
8MB. This should now be enough for almost everybody, unless you have some
truly huge maps and boatloads of sounds. The minimum memory allowable is
now down to 4MB, but complex maps and/or models can cause the game to quit
-- not like this wasn't a problem already with the old 5.3MB lower limit,
but there it is.
This commit is contained in:
Jeff Teunissen 2000-10-18 10:16:11 +00:00
parent 2682888425
commit 17ea696c0d
10 changed files with 258 additions and 168 deletions

View file

@ -40,7 +40,8 @@
#define UNUSED(x) (x = x) // for pesky compiler / lint warnings
#define MINIMUM_MEMORY 0x550000
// Error out if we get less than 4MB
#define MINIMUM_MEMORY 0x400000

View file

@ -160,6 +160,7 @@ void R_DrawWaterSurfaces (void);
extern int reinit_surfcache; // if 1, surface cache is currently empty and
extern qboolean r_cache_thrash; // set if thrashing the surface cache
void *D_SurfaceCacheAddress (void);
int D_SurfaceCacheForRes (int width, int height);
void D_FlushCaches (void);
void D_DeleteSurfaceCache (void);