I recently tried my game on my mobile device, a Samsung Galaxy 4 Active, in firefox for android.
https://playcanvas.com/project/375628/
The framerate is very choppy, and despite my best efforts to framerate independently recalculate the movement and push values, the robot is way too fast and unpredictable on mobile. As he is the only physics object that even moves in the simulation, and is using the default capsule collision, I seriously doubt the engine is at fault here, so I must be doing something wrong or perhaps just have a super cheap phone? (What phones is the contest expecting to judge with anyway? Are we even allowed to know?)
Could someone else be kind enough to test this out on their phone? It works fine on PC, even my crappy single core laptop, but on mobile I get lots of lag related issues. As I only have the above phone to test with I’m working in a black box here.
As this is for the contest entry, I doubt I have time to work out how to do his movement through ray casting, nor do I think that will help much(the phone is heating up and missing textures as it is).
I’m also rather stuck with the textures on the robot, ufo, and rocket, and the polygon count on them as well, so I can’t optimize those models. (I tried downloading them but blender won’t open whatever format they come in for me to change, and I am pretty sure we can’t modify the models outside of playcanvas editor for the contest anyway. The UV mapping becomes all wrong if I change the resolution of the textures.)
What else could I try to optimize this and get it under control? Surely the engine is supposed to be able to do a bit more then this?
I can’t exactly scrap any of the menu, and it’s as optimized as I could get it given our sprite and text tools. (Actually a few things extra still need to be added to it, so it’s only going to get worse in that regard). And I doubt playcanvas would give us models the engine couldn’t handle on mobile, or the objective would be impossible.
Am I missing anything? Does my mobile device just suck? Or have I really blundered somewhere?
I’m genuinely a bit lost as to how(or if I even need to) salvage the mobile side of this.