]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
added an optimization note (should be tracking number of active gecko
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Jan 2008 22:32:22 +0000 (22:32 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 5 Jan 2008 22:32:22 +0000 (22:32 +0000)
instances, not always iterating to max)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7918 d7cf8633-e32d-0410-b094-e92efae38249

cl_gecko.c

index 7b7b2d8bafbd301ebf965be2b76446bddece15cd..0bc62fdf0eb95d74e8feee2f58f129ac36f96115 100644 (file)
@@ -192,6 +192,7 @@ void CL_Gecko_DestroyBrowser( clgecko_t *instance ) {
 \r
 void CL_Gecko_Frame( void ) {\r
        int i;\r
+       // FIXME: track cl_numgeckoinstances to avoid scanning the entire array?\r
        for( i = 0 ; i < MAX_GECKO_INSTANCES ; i++ ) {\r
                clgecko_t *instance = &cl_geckoinstances[ i ];\r
                if( instance->active ) {\r