From ef6937e69e8ee3f409cf9d460d5ad300a65d5924 Mon Sep 17 00:00:00 2001 From: sschirm Date: Fri, 23 Dec 2016 14:20:36 +0100 Subject: PhysX 3.4 / APEX 1.4 release candidate @21506124 --- .../Source/LowLevelCloth/src/windows/CuCloth.cpp | 29 ---------------------- 1 file changed, 29 deletions(-) (limited to 'PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp') diff --git a/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp b/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp index 6ecd1aeb..d4cdcf2e 100644 --- a/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp +++ b/PhysX_3.4/Source/LowLevelCloth/src/windows/CuCloth.cpp @@ -439,35 +439,6 @@ void ClothImpl::clearParticleAccelerations() mCloth.wakeUp(); } -namespace -{ -uint32_t calculateNumReplays(const Vector::Type& triplets, const Vector::Type setSizes) -{ - uint32_t result = 0; - - Vector::Type::ConstIterator tIt = triplets.begin(); - Vector::Type::ConstIterator sIt, sEnd = setSizes.end(); - uint32_t index = 0; - for(sIt = setSizes.begin(); sIt != sEnd; ++sIt, ++index) - { - Vector::Type::ConstIterator tEnd = tIt + *sIt, tLast = tIt; - while(tLast != tEnd) - { - uint8_t numConflicts[3][32] = {}; - uint8_t numReplays[3] = {}; - - for(tLast += PxMin(ptrdiff_t(32), tEnd - tLast); tIt != tLast; ++tIt) - for(int i = 0; i < 3; ++i) - numReplays[i] = PxMax(numReplays[i], ++numConflicts[i][(*tIt)[i] & 31]); - - result += numReplays[0] + numReplays[1] + numReplays[2]; - } - } - - return result; -} -} - template <> void ClothImpl::setVirtualParticles(Range indices, Range weights) { -- cgit v1.2.3