Search Unity

Question Video Player high GPU consumption (only in build)

Discussion in 'Audio & Video' started by kurismakku, Dec 7, 2021.

  1. kurismakku

    kurismakku

    Joined:
    Sep 18, 2013
    Posts:
    66
    GPU: Nvidia GTX 1080

    Format .mp4, settings - transcode off, codec auto, bitrate mode high, spatial quality - high, sRGB on.

    Video is rendered on Canvas, Raw Image component.
    Render Texture settings - 2D, enable compatible color format - yes, color format R8G8B8A8:UNORM, depth buffer at least 24 depth with stencil, enable mip maps false.

    Using Play and Stop commands.

    The issue only happens in the build, not in the editor.

    Any suggestions on why is it causing so many performance issues, and why is the issue happening only when the game is built?
     
  2. kurismakku

    kurismakku

    Joined:
    Sep 18, 2013
    Posts:
    66
    Activated v-sync, and now GPU consumption is at 30%, though, that's still high considering this is a high-end GPU.
     
  3. kurismakku

    kurismakku

    Joined:
    Sep 18, 2013
    Posts:
    66
    Downgrading Unity to 2020 LTS reduced the GPU usage to 10%.
     
  4. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    kurismakku likes this.
  5. kurismakku

    kurismakku

    Joined:
    Sep 18, 2013
    Posts:
    66

    Attached Files:

  6. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    Sorry for the long wait. I checked your profile data, and everything seems to be fine but, you didn't record the GPU usage. You can enable it in the Profiler Modules.

    upload_2022-1-20_15-11-49.png