From: havoc Date: Sat, 5 Jan 2008 22:32:22 +0000 (+0000) Subject: added an optimization note (should be tracking number of active gecko X-Git-Tag: xonotic-v0.1.0preview~2586 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3da832cb8aede02571d90fb9e5ef1bc14053c99f;p=xonotic%2Fdarkplaces.git added an optimization note (should be tracking number of active gecko instances, not always iterating to max) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7918 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_gecko.c b/cl_gecko.c index 7b7b2d8b..0bc62fdf 100644 --- a/cl_gecko.c +++ b/cl_gecko.c @@ -192,6 +192,7 @@ void CL_Gecko_DestroyBrowser( clgecko_t *instance ) { void CL_Gecko_Frame( void ) { int i; + // FIXME: track cl_numgeckoinstances to avoid scanning the entire array? for( i = 0 ; i < MAX_GECKO_INSTANCES ; i++ ) { clgecko_t *instance = &cl_geckoinstances[ i ]; if( instance->active ) {