We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 20dce12 + a4b5df0 commit f0565daCopy full SHA for f0565da
1 file changed
Source/RuntimeMeshComponent/Private/RuntimeMesh.cpp
@@ -887,7 +887,7 @@ void URuntimeMesh::HandleSingleSectionUpdate(const FRuntimeMeshProxyPtr& RenderP
887
TSharedPtr<FRuntimeMeshSectionUpdateData> UpdateData = MakeShared<FRuntimeMeshSectionUpdateData>(MoveTemp(MeshData));
888
889
// Push the data to the gpu from this thread if we're not on the game thread and the current RHI supports async
890
- if (GRHISupportsAsyncTextureCreation && GIsThreadedRendering && !IsInGameThread())
+ if (GRHISupportsAsyncTextureCreation && GIsThreadedRendering && IsInRenderingThread())
891
{
892
UpdateData->CreateRHIBuffers<false>(Properties.UpdateFrequency == ERuntimeMeshUpdateFrequency::Frequent);
893
}
0 commit comments