Avoid using malloc/free every model/frame.

This commit is contained in:
Bill Currie 2012-05-11 21:53:16 +09:00
parent c2e0674d50
commit 2080c337d7
3 changed files with 9 additions and 12 deletions

View file

@ -78,7 +78,7 @@ void R_EnqueueEntity (struct entity_s *ent);
entity_t *R_AllocEntity (void);
void R_FreeAllEntities (void);
dlight_t **R_FindNearLights (const vec3_t pos, int count);
void R_FindNearLights (const vec3_t pos, int count, dlight_t **lights);
dlight_t *R_AllocDlight (int key);
void R_DecayLights (double frametime);
void R_ClearDlights (void);