# don't run cache optimization if mesh fits into cache anyway ...

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@986 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
pull/1/head
aramis_acg 2011-05-07 19:29:33 +00:00
parent 50b780e21e
commit 5ac47b9873
1 changed files with 4 additions and 0 deletions

View File

@ -131,6 +131,10 @@ float ImproveCacheLocalityProcess::ProcessMesh( aiMesh* pMesh, unsigned int mesh
return 0.f;
}
if(pMesh->mNumVertices <= configCacheDepth) {
return 0.f;
}
float fACMR = 3.f;
const aiFace* const pcEnd = pMesh->mFaces+pMesh->mNumFaces;