Search Unity

Is there a way to unload a movie from memory on iOS ?

Discussion in 'iOS and tvOS' started by Mons1999, May 26, 2015.

  1. Mons1999

    Mons1999

    Joined:
    Sep 24, 2012
    Posts:
    33
    Hi everybody !

    I was about to publish my game when I realized that playing a cutscene (full screen video) caused very bad performances especially for GPU (does four times more calculations).

    I use the function Handheld.PlayFullScreenMovie. After a bit of search, I found that it lags because Apple prefers keeping the movie in memory even after it finished playing.

    Is there a way to unload the movie from memory ? Is there an other way to play a movie on iOS without causing memory and GPU issues ? Or can I just delete the asset file so that it's no longer in memory ?

    Thank you.
     
  2. Alexey

    Alexey

    Unity Technologies

    Joined:
    May 10, 2010
    Posts:
    1,624
  3. Mons1999

    Mons1999

    Joined:
    Sep 24, 2012
    Posts:
    33