The changes in MediaIOFramework to avoid fences when capturing textures breaks our workflow. We are seeing latency between the captured texture and the FMediaCaptureUserData.
If I apply these changes everything is back to normal and I get the same results as in 5.5:
`diff --git a/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCapture.cpp b/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCapture.cpp
index db5dc023bab9..0ec022a9aeca 100644
— a/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCapture.cpp
+++ b/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCapture.cpp
[Content removed]7 @@ void UMediaCapture::InitializeSyncHandlers_RenderThread()
for (int32 Index = 0; Index < NumberOfCaptureFrame; ++Index)
{
TSharedPtr SyncData = MakeShared();
-
if (!ShouldCaptureRHIResource())
-
if (1) //!ShouldCaptureRHIResource()) { SyncData->RHIFence = RHICreateGPUFence(*FString::Printf(TEXT("MediaCaptureSync_%02d"), Index)); }
diff --git a/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCaptureHelper.cpp b/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCaptureHelper.cpp
index 4e1d134ff0c6..fb215457a7b3 100644
— a/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCaptureHelper.cpp
+++ b/Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Private/MediaCaptureHelper.cpp
[Content removed]7 @@ void FMediaCaptureHelper::ExecuteSyncPointPass(FRHICommandListImmediate& RHICmdL
{
if (CapturingFrame && CapturingFrame->bMediaCaptureActive)
{
-
if (MediaCapture->ShouldCaptureRHIResource())
-
if (0) //MediaCapture->ShouldCaptureRHIResource()) { MediaCapture->UnlockDMATexture_RenderThread(CapturingFrame->GetTextureResource());`