r7630 - trunk/darkplaces

divverent at icculus.org divverent at icculus.org
Thu Oct 11 18:08:05 EDT 2007


Author: divverent
Date: 2007-10-11 18:08:05 -0400 (Thu, 11 Oct 2007)
New Revision: 7630

Modified:
   trunk/darkplaces/model_shared.c
   trunk/darkplaces/model_shared.h
Log is attached.
- fix SEGFAULT when a .shader file has more layers than allowed
- reduce number of layers from 8 to 2 to save memory (increase it later when additional layers are actually USED)
- parse ALL layers, even those behind the limit, to check for lightmap references and similar stuff
- when looking up a shader, only look through the actually DEFINED layers (not through all ALLOCATED ones), this means that the OS won't allocate pages more shaders than actually used
- increase maximum number of tcmods from 4 to 8 for Nexuiz

net: 1300MB -> 900MB vsize, and less RSS used too; so it won't swap any more on a 1GB system


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 20071011.220805.diff
URL: <http://icculus.org/pipermail/twilight-commits/attachments/20071011/99a729f7/attachment.diff>


More information about the twilight-commits mailing list