Jump to content

Getting rid of RenderTexture and bitmapData


Conqarous
 Share

Recommended Posts

In one state I'm using Phaser.RenderTexture, game.make.bitmapData and they reduce framerate in the next state.

Is there a way to get rid of them completely? 

 

1) I'm switching the state.

2) Using .destroy() for bitmapData, RenderTexture and sprite which uses RenderTexture.

 

What else can be done? Remove them from cache?

 

Thanks in advance.

 

 

 

P.S. using CANVAS mode

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...