Commit 1a9ee0dd authored by D-AIRY's avatar D-AIRY

changed Array::clear to Array::fastClear for best performance

parent ad13c954
......@@ -343,7 +343,7 @@ void LoaderTextures::LoadTextures()
}
}
ArrIDsLoad.clear();
ArrIDsLoad.clearFast();
g_fnReportf(REPORT_MSG_LEVEL_NOTICE, "sgcore: all loaded textures [%d]\n", ArrTextures.size());
}
......
......@@ -445,7 +445,7 @@ void Green::CPUFillingArrIndeces(ISXFrustum* frustum, float3* viewpos, ID id_arr
tmpcountcom = &(ArrComFor[id_arr]->arr[i]->CountCom);
tmpsegments = ArrComFor[id_arr]->arr[i]->Arr;
ArrComFor[id_arr]->queue.clear();
ArrComFor[id_arr]->queue.clearFast();
//long tmpcount = 0;
ArrComFor[id_arr]->queue.push_back(ArrModels[i]->SplitsTree);
......
......@@ -41,7 +41,7 @@ void CWeatherRndSnd::resetOld()
if (m_aCurrSndIDs[i] >= 0)
SSCore_SndStop(m_aCurrSndIDs[i]);
}
m_aCurrSndIDs.clear();
m_aCurrSndIDs.clearFast();
}
void CWeatherRndSnd::setParamPlayVolume(int iBVol, int iEVol)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment