Skip to content

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

Description

@BartmanAbyss

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions