The frame rate is lower when using WindowCapture2D in UE4 compared to UE5.

This is because the method used to capture windows is different. The WindowCapture2D version for UE5 is implemented for higher performance compared to the UE4 version.