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 pavel

Hello,

About a week ago I purchased Impact, and it seems the engine works really well in all desktop browsers except Safari. I tried Biolab Disaster and Super Generic Jump'n'Run, and the perfomance was quite slow, especially when you shoot.

Any ideas how it could be improved?

1 decade ago by dominic

Yep, noticed that too. The reason is the sound that's played when you shoot. To quote myself from Twitter:

Aaaaand here's the reason why Z-Type is extremely slow in Safari 7 http://phoboslab.org/crap/html5audio/pause.html … - surprise, its an <audio> bug. sigh
~ https://twitter.com/phoboslab/status/396732243273453568

I have reported that bug to Apple; still waiting for a reply.

I'm afraid there's not much you can do to workaround this in the meantime, other than to disable audio completely when running in Safari. Or play audio through a flash library maybe.

1 decade ago by pavel

Thanks for the explanation, Dominic! I hope Apple will fix it eventually. Apart from this bug, I'm really enjoying using Impact. The API is so well thought out – hats off!

1 decade ago by dominic

Well, I did something I should have done a long time ago: I added WebAudio support for ig.Sound. This avoids the current problems with Safari.

You can get the current version from the git repository on your download page.


WebAudio support is enabled by default (if the browser supports it). You shouldn&039;t need to do anything other than updating your Impact version to get this working. If, for whatever reason, you want to force enable or disable WebAudio, set the #ig.Sound.useWebAudio property before calling ig.main(). I.e.:

ig.Sound.useWebAudio = false; // force disable WebAudio

1 decade ago by pavel

Yes, now all sounds are perfectly synced to actions, and the overall perfomance got way better. Thanks a lot!
Page 1 of 1
« first « previous next › last »