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 plungeint

Hi,

I'm making an HTML5 game using Impact for Android and iOS. In iPhone it runs smoothly. On android it goes slower, but it works quite well. The problem is that sometimes, and randomly, the whole game gets frozen, and after some seconds, you can play again.

Do you have any idea why is this happening, and/or if there is any way to know what is the source of the problem?

Thanks.

1 decade ago by stahlmanDesign

If it's really frozen for a second or more, check your console to see if there are some errors. If your code is looking for something undefined, the game will appear frozen but an entity's movement calculations will continue until it is no longer in collision with the object that is throwing the undefined error. When no longer in collision, animation will continue as normal.

If you are talking about a freeze for a fraction of a second, it's probably just garbage collection and there's nothing you can do about it as far as I know.

1 decade ago by plungeint

thanks. Maybe the problem is that I'm drawing all the graphics, and not only the graphics that are visible on the screen, or might be other things. Is there any way to easily profile what functions are taking more time?

1 decade ago by plungeint

the game actually frozes for several seconds, but I don't see any error in the console _(
Page 1 of 1
« first « previous next › last »