precalculate smoe model specific info (wether the whole model is fullbright,

if it should have shadows, whether it should be scaled/translated (gl eyes),
and the minimum lighting (player)). give a 1.9% speedup in null renderer.
This commit is contained in:
Bill Currie 2001-11-20 08:02:35 +00:00
parent b69e372589
commit 5dab7ccaf7
8 changed files with 63 additions and 40 deletions

View file

@ -205,7 +205,9 @@ Mod_LoadAliasModel (model_t *mod, void *buffer, cache_allocator_t allocator)
mod->maxs[0] = mod->maxs[1] = mod->maxs[2] = 16;
// build the draw lists
GL_MakeAliasModelDisplayLists (mod, pheader, buffer, com_filesize);
Mod_MakeAliasModelDisplayLists (mod, pheader, buffer, com_filesize);
Mod_FinalizeAliasModel (mod, pheader);
// move the complete, relocatable alias model to the cache
end = Hunk_LowMark ();