Jump to content

Phaser + CocoonJS Lag Performance


Beyb26
 Share

Recommended Posts

What mode do you have the Phaser renderer in? Canvas or WebGL? Then there is the mode within Cocoon, which is either Canvas+ or WebView. 

I'm having good results using Phaser Canvas and Canvas+ in Cocoon. 

Setting screencanvas to true to increase performance in Canvas+ (https://docs.cocoon.io/article/screencanvas/)

game.canvas.screencanvas = true

 

Link to comment
Share on other sites

If that so, i will just put that line of code on my game sir? My mode of rendering is Canvas and Canvas+ on CocoonJs. 

 

 

im having error on that particular line sir. It seems like there's no kind of property of that canvas in the game prototype.

my Phaser version is 2.7.10

Link to comment
Share on other sites

How is that can be Sir @samme ? Do you mean I should create an external function for that particular sequence or maybe there is a built-in method that i can use to achieved that recycling? 

 

 

 

 

 

thanks for your response Sir, really appreciated.

 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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