Search Unity

Video Player - bad performance in build

Discussion in 'macOS' started by MikeGDev, Jun 14, 2018.

  1. MikeGDev

    MikeGDev

    Joined:
    Dec 19, 2017
    Posts:
    53
    On OSX I am playing a movie through the Unity Video Player by displaying it on a Render Texture which is applied to a Raw Image component. While the movie is playing, I am loading scenes in the background which at some point get activated.

    This is playing very well in the editor, however in a build there are serious performance issues, where the image in the movie is glitching and lagging every x amount of frames. I have attached a screenshot of the profiler view taken from the build.

    If I do not have the scenes active in the background, the issue does not occur. Is there something I can do to get the same performance as in the editor?

    VideoPlayerUnity.PNG
     
  2. GuardHei

    GuardHei

    Joined:
    Feb 10, 2018
    Posts:
    89
    Might be the resolution problem? Because in editor, the resolution might be kept low if is not maximized when play.