ravinesstream

Members
  • Content Count

    6
  • Joined

  • Last visited


Reputation Activity

  1. Like
    ravinesstream reacted to ivan.popelyshev in Lag on the first play when swapping animation using onComplete callback in PIXI animatedSprite from two spritesheets   
    Texture upload to videomemory lags. 
    After 2-3 minutes of not drawing particular texture, pixi GC unloads it. Use `prepare` plugin and turn off the Gc.
    http://pixijs.download/dev/docs/PIXI.prepare.html
    http://pixijs.download/dev/docs/PIXI.settings.html#.GC_MODE
    https://github.com/pixijs/pixi.js/blob/v4.x/src/core/renderers/webgl/TextureGarbageCollector.js