phaser icon indicating copy to clipboard operation
phaser copied to clipboard

Camera move + tiledmap + running mobile

Open tiagodalloca opened this issue 10 years ago • 9 comments

I've tried make a game with tiledmap and camera following just like many examples. It worked beautifully in my pc. The problem is that the camera really doens't work when running mobile. Is there an easy way to fix it? If not, please do it soon as possible

tiagodalloca avatar Jan 04 '16 16:01 tiagodalloca

This looks like a duplicate of this issue

Teelord avatar Jan 04 '16 21:01 Teelord

Actually, the problem is not just lagging, but the camera completely stops. And this happens specifically when running mobile. So I thought it would be good to open a new issue report.

tiagodalloca avatar Jan 04 '16 22:01 tiagodalloca

This is a different issue. My camera is in the top left corner to start

jonpedigo avatar Jan 05 '16 03:01 jonpedigo

So do mine

tiagodalloca avatar Jan 05 '16 09:01 tiagodalloca

Interesting. For me, on scroll, the fps drops to about 5. This occurs no matter where in the map the camera is. I'm going to try the same code against recent (but older) versions of Phaser to hopefully see when the regression took place.

Teelord avatar Jan 05 '16 14:01 Teelord

I'm using phaser 2.4.4, android lollipop

tiagodalloca avatar Jan 05 '16 19:01 tiagodalloca

Is your code using the WebGL renderer, or Canvas? I find that WebGL on mobile with tilemaps can have some slowdown. I think this is due to the way Phaser and PIXI.js cache tilemaps.

danbolt avatar Jan 13 '16 14:01 danbolt

Hmmmm... I'm almost sure I was using WebGL. But I think Canvas it's not as fast as WebGl, specially when running with Cordova in a mobile device.

tiagodalloca avatar Jan 15 '16 01:01 tiagodalloca

Closing this because it's subjective, with no code example to test against, and no test environment details provided.

photonstorm avatar Feb 04 '16 16:02 photonstorm