GardensOfKadesh / Homeworld

Gardens of Kadesh: A WebAssembly port of Homeworld.
Other
60 stars 11 forks source link

Audio is distorted #21

Closed ROCKNROLLKID closed 8 months ago

ROCKNROLLKID commented 1 year ago

When I launch the game through browser, the audio is really distorted. I am playing through Microsoft Edge browser on Windows 11.

ThibaultLemaire commented 1 year ago

Distorted how?

Choppy sound on slow processors is a known issue (though thank you for opening a ticket here, we have only been discussing this on the Discord IIRC). It has to do with the single-threadedness of web assembly. At this point the best I can offer you is to try to compile a native build

ROCKNROLLKID commented 1 year ago

I made a short video to show you what I mean: https://www.youtube.com/watch?v=f9bhr_9tGf4

I have a Ryzen 5800x and I also have a Sound Blaster Audigy RX if that helps.

ThibaultLemaire commented 1 year ago

Thanks for the vid, very much appreciated.

That is not what I had in mind, and definitely something I haven't seen before (or heard rather). With that hardware, performance shouldn't be the issue either. (I don't believe the sound card matters)

Have you tried with other browsers?

ROCKNROLLKID commented 1 year ago

I just installed google chrome with no extensions or anything, google chrome has the same problem.

I also just installed Firefox to see, weirdly Firefox does not have this problem. Audio is totally normally on Firefox.

So maybe some issue with chrome based browsers?

EDIT: I just tested some other web assembly games and so far I have not noticed any audio distortion with any other game. So far this is the only game.