Skip to content

DX solver doesn't invalidate mClothDatas after sorting cloth instances #67

Description

@BartmanAbyss

voidcloth::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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions