Where are sprites disposed?

Discussion in 'Javascript/Plugin Support' started by Tsukihime, Oct 27, 2015.

  1. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,230
    Likes Received:
    3,071
    Location:
    Toronto
    First Language:
    English
    I'm looking at Spriteset_Base, Map, and Battle, and I see the methods for creating and updating sprites..but I don't see any disposal.


    Is it no longer necessary in MV?
     
    #1
  2. Nelderson

    Nelderson Coding Bitch Veteran

    Messages:
    164
    Likes Received:
    163
    Location:
    Rhode Island
    First Language:
    English
    Primarily Uses:
    RMMV
    I think the garbage collection is just better :p
     
    #2
  3. altorn

    altorn Veteran Veteran

    Messages:
    53
    Likes Received:
    12
    Location:
    Toronto, Canada
    First Language:
    English
    I'm pretty sure there's a .destroy() methods in various texture, shader and renderer caches in PIXI.js. You can probably create a method for manually calling destroy on them.
     
    Last edited by a moderator: Oct 27, 2015
    #3

Share This Page