]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added a note to optimize the MAX_DLIGHTS loop somehow
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Mar 2004 00:27:51 +0000 (00:27 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 16 Mar 2004 00:27:51 +0000 (00:27 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4027 d7cf8633-e32d-0410-b094-e92efae38249

r_light.c

index aafbbf19ceab78314225d63601d4ff6c1c39e9b9..f416eff29edc0ce2004d5e37f2e7b07c2f80529e 100644 (file)
--- a/r_light.c
+++ b/r_light.c
@@ -110,6 +110,7 @@ void R_UpdateLights(void)
        if (!r_dynamic.integer || !cl_dlights)
                return;
 
+       // TODO: optimize to not scan whole cl_dlights array if possible
        for (i = 0;i < MAX_DLIGHTS;i++)
        {
                if (cl_dlights[i].radius > 0)