You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There appears to be a memory leak in the async update of collision meshes, specifically in URealtimeMeshSimple. Trace file captures (screenshots attached to this report) are available upon request (Associated bug is in the bug report feed and help channels)
Proconditions:
Given a cube mesh where each side is subdivided into four quadrants.
and Collision + Mesh builder:
Description:
There appears to be a memory leak in the async update of collision meshes, specifically in URealtimeMeshSimple. Trace file captures (screenshots attached to this report) are available upon request (Associated bug is in the bug report feed and help channels)
Proconditions:
Given a cube mesh where each side is subdivided into four quadrants.
and Collision + Mesh builder:
RealtimeMesh = RealtimeMeshComponent->InitializeRealtimeMesh();
Mesh builder
meshBuilder = TSharedPtr<TRealtimeMeshBuilderLocal<uint32, FPackedNormal, FVector2DHalf, 1>>(new TRealtimeMeshBuilderLocal<uint32, FPackedNormal, FVector2DHalf, 1>(streamedMeshData));
meshBuilder->EnableTangents();
meshBuilder->EnableTexCoords();
meshBuilder->EnableColors();
meshBuilder->EnablePolyGroups();
Config definition
FRealtimeMeshCollisionConfiguration CollisionConfig;
CollisionConfig.bUseAsyncCook = false; <------- IF SET TO TRUE, PROBLEM HAPPENS
CollisionConfig.bUseComplexAsSimpleCollision = true;
CollisionConfig.bShouldFastCookMeshes = false;
CollisionConfig.bDeformableMesh = false;
CollisionConfig.bFlipNormals = false;
Steps to reproduce:
groupKey = FRealtimeMeshSectionGroupKey::Create(0, FName("chunkMesh"));
RealtimeMesh->CreateSectionGroup(groupKey, streamedMeshData);
RealtimeMesh->SetupMaterialSlot(0, "PrimaryMaterial", voxelManager->voxelMaterial);
PolyGroup0Key = FRealtimeMeshSectionKey::CreateForPolyGroup(groupKey, 0);
RealtimeMesh->UpdateSectionConfig(PolyGroup0Key, RealtimeMesh->GetSectionConfig(PolyGroup0Key), true);
Important notes:
UPDATE 1:
After some additional tracking there appears to be another reporting of the issue here
UPDATE 2:
Was unable to get the collision mesh to properly generate when async generation flag was false in collision config
Associated trace screenshot
The text was updated successfully, but these errors were encountered: