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 Karios

I have an issue with my Impact based game. When I use my host service to host and run the game, I see that ig.Image images that are being loaded concurrently and without delaying my game.
When I use XAMPP to host the game on an localhost Apache server, the game hangs for several seconds while loading assets (to the point that some browsers complain that the script is taking too long giving me the option to terminate it).
Have you guys seen anything similar while testing with a local webserver? Do you know if there is an Apache configuration option that has to do with loading assets from JavaScript or something similar?
Thanx!

1 decade ago by Karios

It seems like the problem was caused by the combination of using XAMPP locally and scaling the game by a factor of 2 using ig.main('#canvas', MyGame, 60, 320, 240, 2 ). There must be a huge issue with pre-scaling the graphics, or whatever else impactjs does when I define a scale for the game. I had huge delays, crashes on Chrome and hangs on Firefox and IE9.
When I returned to scale of 1, everything worked perfectly.
Page 1 of 1
« first « previous next › last »