[IN-10894] Multiple video players running simultaneously freeze up the editor/build in 2022.2.0b2

Running multiple video players at once in the scene has a huge performance regression in 2022.2.0b2, worked fine before in 2022.1.9f1.

This happens in both build and editor, see the example videos, this is a pretty major blocking issue as we wanted to use AMD FSR in Exhibition apps which is only available in 2022.2 beta branch with URP but this performance regression means we just have to stay with older engine versions and spec out more expensive kit to run 4k media rather than using FSR to reduce hardware requirements to show 4k upscaled content instead.

Bug report case: [IN-10894] Multiple video players running simultaneously freeze up the editor/build in 2022.2.0b2

Edit: I have had to remove the youtube vid links here as they are not needed, I hope this issue can be fixed with the case number and attached project within it.

Here is attached a memory snapshot of the session

https://drive.google.com/file/d/1uDepEOORgxm4gcFwdkG_pxoc_cAGa61o/view?usp=sharing

@LeonhardP Sorry to bother you, this is a show-stopper for some exhibition apps we are working on where video upscaling is required to show 4K content, is there any department I can contact about this?

Second this, we also have the same issue.

Hi. I just saw the forum post. We made some major changes to the VideoPlayer in 2022.2. You can now change which clock source the VideoPlayer should use, compared to before, when it could only follow the real-time clock. So it is probably related to that. We will investigate and fix it as fast as we can.

2 Likes

Hi, quick update.

A fix for this issue has been made, and is in the process to be released. I will add an update to this thread when it has been released.

1 Like

Issue tracker link: https://issuetracker.unity3d.com/issues/unity-freeze-slash-becomes-unresponsive-when-multiple-videos-are-playing-in-play-mode

Any updates on this?

Hi,
The fix is in 2023.1.0a10 (https://unity3d.com/unity/alpha/2023.1.0a10)
Backport for 2022.2 is in progress. (I will update this thread when 2022.2 backport lands)

1 Like

[quote=“ROBYER1_1”, post:1, topic: 889118]
Running multiple video players at once in the scene has a huge performance regression in 2022.2.0b2, worked fine before in 2022.1.9f1.
[/quote]

Interesting to hear your video use-case. Other than the bug, what is general video performance like? We’ve used video a little bit in older Unity and it’s always been a bit of a performance hit and required image bandaids to hide quite slow starts, empty render textures rendering to textures, quite poor looping performance, poor performance running on secondary monitors (on Mac), etc.

eg. this thread earlier in the year: https://discussions.unity.com/t/872092 mentions some of the hoop jumping we normally have to do.

[quote=“greg-harding”, post:10, topic: 889118]
Interesting to hear your video use-case. Other than the bug, what is general video performance like? We’ve used video a little bit in older Unity and it’s always been a bit of a performance hit and required image bandaids to hide quite slow starts, empty render textures rendering to textures, quite poor looping performance, poor performance running on secondary monitors (on Mac), etc.

eg. this thread earlier in the year: https://discussions.unity.com/t/872092 mentions some of the hoop jumping we normally have to do.
[/quote]

Nothing major for us, usually not more than 2-4 video players on at once and we had control over the hardware spec. For apps that could run on any device it’s obviously best to avoid lots of video players and keep things optimized.

1 Like

The issue still hasn’t been fixed in the b10 build.
[quote=“Unity-Lukas”, post:9, topic: 889118]
Hi,
The fix is in 2023.1.0a10 (https://unity3d.com/unity/alpha/2023.1.0a10)
Backport for 2022.2 is in progress. (I will update this thread when 2022.2 backport lands)
[/quote]

1 Like

This is fixed in b15.

2 Likes