Impact

This forum is read only and just serves as an archive. If you have any questions, please post them on github.com/phoboslab/impact

1 decade ago by Akis

Hi,

I've just created a small game based on entities and not on a background map, and everything is really fluid on a PC, but when I start the game on my iphone, it's a bit laggy with 15-20+ entities on the screen (browser version, not Ejecta).

My game is based on the random spawn of random entities with different sizes.
I'm sure I could use some background maps with each map corresponding to 1 size. (i didn't test it, but I guess it should work :D)

But my point is not really that. Is it really normal that with only 20 entities, it's laggy on mobile devices ? To my mind it's really weird. Everygame, with or without background map, has multiple entities at the same time on the screen, so I don't know why I've this issue.

Does anyone already got this issue ? How did you fix it ?

Thanks.

1 decade ago by Akis

I found the source of my issue.

I had several entities with "fixed" collide property, and those entities were actually in collision with each other because sometimes they were like too close by < 1px :-/

Is there any reason to allow collision between fixed entities ? They don't move, so why are we trying to resolve the collision ? Neither entity can actually move :-/
Page 1 of 1
« first « previous next › last »