Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Video Tiled GPU perf. warning in VideoPlayer.Update

Discussion in 'Audio & Video' started by Joits, Jul 31, 2017.

  1. Joits

    Joits

    Joined:
    Jul 12, 2016
    Posts:
    29
    Hi
    I've been developing a movie player using multiple movies which is running in synchronization between a GearVR and a tablet.
    I'm currently experiencing an issues which causes my application to become very unstable after a approximately 12 minutes of videoplay (different files). In the profiler i see an increase in the CPU load, but unfortunately as im CPU bound by the Android OS the only info i get is a CPU load increase in the GFX.WaitForPresent, which does not help me much.

    I receive a warning in the editor when im simulating a session:

    Code (CSharp):
    1. Tiled GPU perf. warning: RenderTexture color surface  (2048x1024) was not cleared/discarded, doing VideoPlayer.Update
    I'm wondering if this may be the cause of this apparent CPU increase. It does not happen regularly and I cant seem to find a pattern in this warning, however as it is in the VideoPlayer.Update i dont have access to the code and a RenderTexture of this size could influence the stability of the application.
    I have tried to reset the VideoPlayer component everytime i change video, created a new material and even been destroying and re-spawning the meshes which holds the VideoPlayer component, but to no signifigant improvement.

    Anyone have a similar experience with the VideoPlayer?
    Any help would be appreciated.
     
  2. SwordStroker

    SwordStroker

    Joined:
    May 8, 2015
    Posts:
    6
    I am having the same issue.