# 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-9d2fd5bffc1fpull/1/head
parent
50b780e21e
commit
5ac47b9873
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue