-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Description
NvCloth/NvCloth/src/dx/DxSolver.cpp
Lines 268 to 278 in d6d7175
| void cloth::DxSolver::addClothUpdateData() | |
| { | |
| // sort cloth instances by size | |
| ps::sort(mCloths.begin(), mCloths.size(), ClothSimCostGreater(), ps::NonTrackingAllocator()); | |
| DxContextLock contextLock(mFactory); | |
| // resize containers and update kernel data | |
| mClothDataHostCopy.resize(mCloths.size()); | |
| mClothData.resize(mCloths.size()); | |
| mFrameDataHostCopy.resize(mCloths.size()); |
needs
// maybe we got sorted
for(auto& cd : mCloths)
cd->notifyChanged();
afterwards.
Without the fix it crashed the GPU.
Metadata
Metadata
Assignees
Labels
No labels