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 emati

I am working on some impact based game, and i dont get what is wrong with what...

Benchmark tests from http://www.kevs3d.co.uk/dev/asteroidsbench/ shows that chrome is faster than firefox with greater score about 100 points and 10 fps.

But when i run my impact prototype (few entities, player with wsad movement and one layer with other few tiles) on both browsers there is a big difference by fps in the opposite way. Firefox have about 80 fps, chrome max 30... And i dont get it.

Can anyone explaine it to me? Is impact optimized for firefox? or is it browser sin?

1 decade ago by dominic

Chrome has actually gotten slower with its hardware acceleration for games that need many draw calls; I believe they will fix this soon.

You can see some stats of your game when you load the debug module. How many draw calls does your game currently need?

Try to enable the preRender mode for your background layer. This should speed up things a lot for Chrome.

1 decade ago by emati

Its about 80 draws.

Pre render mode helps a lot, i get about 45fps now, but still apear mouse lag. I believe mouse lag isn't visible around ~60fps or more.. And its ok for now.

And again something wierd i see. When i enable pre render and run my prototype in firefox i have 20 less fps. This is crazy.

But anyway, thanks for help, and your time, i will wait until new version of chrome won't be released.

Also, I hope that new version of impact is just around the corner, I can't wait :D

1 decade ago by Jerczu

Right click "inspect element" and debug debug debug...

1 decade ago by emati

I just wanted to say that chrome will be faster than firefox actually. If anyone want to speed up html5, download dev version of chrome (here http://dev.chromium.org/getting-involved/dev-channel). I get avg. fps ~ 122, and max 170, so this is awesome score.

Unfortunately its dev version so many bugs can apear.
Page 1 of 1
« first « previous next › last »