Sign in to follow this  
eugenioclrc

Is tilemaps rendering too slow?

Recommended Posts

I have the same issue with that example, the renderMap() function seems to be the one causing the fps drop.

I placed a count variable inside the rendermap() function and it gets to 1900 on every run. That's alot of looping for that little of a screen.

 

http://phaser.io/examples/v2/tilemaps/sci-fly runs better then http://phaser.io/examples/v2/display/render-texture-tilemap

Share this post


Link to post
Share on other sites

People will tell you to use the phaser-tiled plugin, you can also try that or give my library a try.

https://github.com/SimonTamas/TiledChunks/wiki

I wrote some documentation on the wiki. If you like it and have some questions I'll be sure to answer them and update the wiki at the same time.

It is capable of a lot more than what I wrote on the wiki so ask and I shall answer.

Share this post


Link to post
Share on other sites

I have read the newsletter, im very sorry about the brexit, but @photonstorm didnt mention anything about the tile maps + WebGL shader :S :S

Quoting phaser 2.5.1 changelog (is this the fix for the tilemaps bug?);

......

Pixi Updates

Please note that Phaser uses a custom build of Pixi and always has done. The following changes have been made to our custom build, not to Pixi in general.

  • Removed _renderWebGL, _renderCanvas, getLocalBounds and getBounds from PIXI.DisplayObject, as they were only there to pass ancient jshint rules.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.