From Sondra Iverson:

small optimization to ParticleSystem.cpp moving sqrtf out of inner loop.
     fix of copy and past error changing erronous cullTimes to drawTimes.
This commit is contained in:
Robert Osfield
2003-11-06 22:06:44 +00:00
parent 71cae09943
commit d3251dc9d8
2 changed files with 4 additions and 3 deletions

View File

@@ -541,7 +541,7 @@ void ViewerEventHandler::StatsAndHelpDrawCallback::displayStats()
(*itr)->draw(*(sv->getState()));
}
for(itr=_drawTimeText.begin(),titr = _drawTimes.begin();
itr!=_drawTimeText.end() && titr!=_cullTimes.end();
itr!=_drawTimeText.end() && titr!=_drawTimes.end();
++itr,++titr)
{
sprintf(tmpText,"%4.2f",1000.0*(*titr)/(double)_fs.size());