eugenioclrc Posted June 21, 2016 Share Posted June 21, 2016 I think it was something crappy in my code, but then i try the phaser tilemap demo and notice that was also too slow. Anyone have notice this? Link to phaser oficcial demo http://phaser.io/examples/v2/display/render-texture-tilemap Link to comment Share on other sites More sharing options...
symof Posted June 21, 2016 Share Posted June 21, 2016 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 Link to comment Share on other sites More sharing options...
eugenioclrc Posted June 21, 2016 Author Share Posted June 21, 2016 Hi, yes http://phaser.io/examples/v2/tilemaps/sci-fly but its still have som issues, FPS drops to 42 - 48, you get a laggy feel Link to comment Share on other sites More sharing options...
eugenioclrc Posted June 21, 2016 Author Share Posted June 21, 2016 I have also do some debugging :S Link to comment Share on other sites More sharing options...
stamas47 Posted June 21, 2016 Share Posted June 21, 2016 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. Link to comment Share on other sites More sharing options...
Fatalist Posted June 21, 2016 Share Posted June 21, 2016 11 hours ago, eugenioclrc said: I have also do some debugging :S BTW have you set tilemap.debug = true? Link to comment Share on other sites More sharing options...
eugenioclrc Posted June 22, 2016 Author Share Posted June 22, 2016 I dont go tilemap debug on. Richard answer on twitter; Tilde 1 Link to comment Share on other sites More sharing options...
eugenioclrc Posted June 25, 2016 Author Share Posted June 25, 2016 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. Link to comment Share on other sites More sharing options...
eugenioclrc Posted July 2, 2016 Author Share Posted July 2, 2016 I have found a implementation of tilemaps that work better; https://github.com/englercj/phaser-tiled Link to comment Share on other sites More sharing options...
Recommended Posts