FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
554 stars 107 forks source link

Precache Limit? #150

Closed lilmayofuksu closed 7 years ago

lilmayofuksu commented 8 years ago

What is the precache limit of the xash3d engine?

a1batross commented 8 years ago

2048 models and 2048 sounds.

From source:

    char        model_precache[MAX_MODELS][CS_SIZE];
    char        sound_precache[MAX_SOUNDS][CS_SIZE];

where:

#define MAX_MODEL_BITS      11
#define MAX_MODELS          (1<<MAX_MODEL_BITS) // 11 bits == 2048 models

#define MAX_SOUND_BITS      11
#define MAX_SOUNDS          (1<<MAX_SOUND_BITS) // 11 bits == 2048 sounds