agonya Posted June 16, 2017 Share Posted June 16, 2017 Hi, I am trying to make a game for mobile, how can I test my game in terms of its performance, I am trying on devices but it takes my time a lot, testing the game every time. And one other question is what do you think about the phaser's future? I mean, nowadays I read about some performance issues when running phaser games on mobile. Should I choose any other programming language to make mobile games? I like phaser but if it will not good for mobile, I will have to pass any other programming language like java, instead of javascript. Link to comment Share on other sites More sharing options...
bruno_ Posted June 16, 2017 Share Posted June 16, 2017 I think html5 games and apps (either they use phaser or other libraries) are here to stay. The smartphones are more powerful every day, and new developments like web assembly or new apis for javascript multi threading will help improve performance. If your games are intensive 3D or VR, full hd or 4k... javascript may not be there yet... But if they are more simple 2D games that's ok. Like you said, you have to test. I test them manually, so I can't help you improve in that way. agonya 1 Link to comment Share on other sites More sharing options...
agonya Posted June 16, 2017 Author Share Posted June 16, 2017 @bruno_ my target is 2d games, I do not know why but I was playing nes games in late 90's, I have good memories. So I want to make 2d games especially for mobile but most of time it is lagging, fps is around 45-50 for S3, although the game is basic. And I believe I will do more complex games with Phaser and these games will require more CPU for mobile. And there is no sense if I will not able to deploy them to mobile, I do not care their performance on pc. By the way thanks for the reply. Link to comment Share on other sites More sharing options...
bruno_ Posted June 17, 2017 Share Posted June 17, 2017 Are the games cordova? If they are, try to use crosswalk to get better performance. S3 is a 2012 phone. 45-50 fps is not bad for a 5 year old phone. Is the resolution too high? Lower resolution will have better fps. Link to comment Share on other sites More sharing options...
Otho Posted June 17, 2017 Share Posted June 17, 2017 Isn't it possible to use chrome dev performance tab to check what is heavier on your game and try to optimize it? samme 1 Link to comment Share on other sites More sharing options...
Arcanorum Posted June 17, 2017 Share Posted June 17, 2017 Should still work https://github.com/englercj/phaser-debug Read this if you haven't https://phaser.io/tutorials/advanced-rendering-tutorial Phaser is here to stay, and will only get bigger with v3. You can write slow code in any language. There is nothing inherently slow about JavaScript. rblopes, Otho and agonya 3 Link to comment Share on other sites More sharing options...
agonya Posted June 17, 2017 Author Share Posted June 17, 2017 @bruno_ no I used cocoonjs to wrap the game. I used high resolution imgs, but does it matter? Because I shrink their size by using "scale" method, but I will try lower resolutions, that is worthy. Link to comment Share on other sites More sharing options...
agonya Posted June 17, 2017 Author Share Posted June 17, 2017 @Otho yes I tried it but I couldn't succeed because it works only on pc, not on mobile. When I try to open the "localhost/nameofproject" on my mobile phone with Google dev, it cannot find the page, I think I do something wrong. Link to comment Share on other sites More sharing options...
bruno_ Posted June 17, 2017 Share Posted June 17, 2017 1 minute ago, agonya said: @bruno_ no I used cocoonjs to wrap the game. I used high resolution imgs, but does it matter? Because I shrink their size by using "scale" method, but I will try lower resolutions, that is worthy. Cocoon uses crosswalk, it should be fine. High resolution images may have some impact in devices with low end GPUs. Try to use smaller images instead, to see if you can gain some fps. agonya 1 Link to comment Share on other sites More sharing options...
agonya Posted June 17, 2017 Author Share Posted June 17, 2017 @Arcanorum thanks for info. I will look them. I am new in here and there are many things to learn here. Link to comment Share on other sites More sharing options...
agonya Posted June 17, 2017 Author Share Posted June 17, 2017 @bruno_ I am trying right now, I will write results Link to comment Share on other sites More sharing options...
agonya Posted June 17, 2017 Author Share Posted June 17, 2017 @bruno_ I decrease the resolution of images and the performance is much more better right now, thanx. Link to comment Share on other sites More sharing options...
gcardozo Posted October 27, 2017 Share Posted October 27, 2017 @agonya are you using atlases? It may improve your game's performance. Tutorial: https://www.codeandweb.com/texturepacker/tutorials/creating-spritesheets-for-phaser-with-texturepacker samme 1 Link to comment Share on other sites More sharing options...
Recommended Posts