Make alias model caching optional.

For now, only the glsl loader disables caching, but it stores the frame
vertices in GL memory, so its hunk usage is relatively lower (and will be
lower still when I get skins sorted out).
This commit is contained in:
Bill Currie 2012-01-17 11:44:28 +09:00
parent fb428f8067
commit 3669e3aa2e
9 changed files with 53 additions and 26 deletions

View file

@ -347,6 +347,7 @@ typedef enum {mod_brush, mod_sprite, mod_alias} modtype_t;
typedef struct model_s {
char name[MAX_QPATH];
qboolean needload; // bmodels and sprites don't cache normally
aliashdr_t *aliashdr; // if not null, alias model is not cached
qboolean hasfullbrights;
modtype_t type;
@ -420,7 +421,7 @@ typedef struct model_s {
unsigned int checksum2;
// additional model data
cache_user_t cache; // access only through Mod_Extradata
cache_user_t cache;
} model_t;
// ============================================================================