Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

need help on releasing streamed media memory

Discussion in 'Multiplayer' started by wangyu, Sep 10, 2010.

  1. wangyu

    wangyu

    Joined:
    Sep 10, 2010
    Posts:
    3
    hi:
    we are making a movie player now,i could play a steaming movie in u3d with WWW class, and in my project ,i need to switch from some different movies simply by clicking different buttons,the problem is ,when switching ,the movie could change ,but the memory keeped on raising,and event thought i invoked the www.dispose() method,the application memory was still not released.anyone can help me?
     
  2. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    you need to destroy the texture of the movie, not only the www object (which should long be gone at that point)
     
  3. wangyu

    wangyu

    Joined:
    Sep 10, 2010
    Posts:
    3
    thanks
    i have destroyed the texture, but everytime i played a new movie ,the application would add more than 100M memory space,and when i dispose the www and destroy the texture just 40M would be released