Video playback causes a lot of lag and eventually locks down

I am playing a video on the menu screens. When I run in Debug mode, the menus are almost impossible to navigate because of the lag caused by the video player. When in Release mode, the lag is almost gone.

Is there anything I can do about this problem, other than disabling video playback in Debug mode?

I used to read the VideoPlayer.State every update, but I’ve changed that now. Still, the player is lagging a lot. It increases and after 60 secs. the game almost locks up.
The clip duration is about 10 secs.

There was a resource usage fix made to the video player a while ago. Not sure if it was in the 3.5 release or not. Are you using the release or latest source from GitHub?

The 3.5 release
:deciduous_tree:

The lag is the same in v. 3.6

EDIT: I have changed the title since the issue also occurs in Release build.

See this thread. It’s all the same issue.