# HTML5 With fmodStudio

**URL:** https://qa.fmod.com/t/html5-with-fmodstudio/14136
**Category:** FMOD Studio
**Created:** [October 12, 2018, 7:50am UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136 "2018-10-12T07:50:14Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![GBear](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@GBear](https://qa.fmod.com/u/GBear)
#### Post date: [October 12, 2018, 7:50am UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/1 "2018-10-12T07:50:14Z")

</div>

hi.

we are developing RPG Game with HTML5

HTML5 fmod can use all functions of fmodStudio ?

and we are wondering about performance…

thx

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [October 13, 2018, 1:01am UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/2 "2018-10-13T01:01:34Z")

</div>

All standard features are there. We just disabled a couple of expensive instructions in the normal release, like pitch shifter (FFT based) and Convolution reverb.

A full list is here [https://fmod.com/resources/documentation-api?page=content/generated/platform\_js/basics.html#/](https://fmod.com/resources/documentation-api?page=content/generated/platform_js/basics.html#/)

You can try out demos for yourself here [http://www.fmod.org/public/js\_studio/](http://www.fmod.org/public/js_studio/).  
The performance is quite good, not as good as native obviously.

---

<div class="post-metadata">

### Author: ![GBear](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@GBear](https://qa.fmod.com/u/GBear)
#### Post date: [October 15, 2018, 5:17pm UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/3 "2018-10-15T17:17:01Z")

</div>

> [@](#):
>
> All standard features are there. We just disabled a couple of expensive instructions in the normal release, like pitch shifter (FFT based) and Convolution reverb.
> 
> A full list is here [https://fmod.com/resources/documentation-api?page=content/generated/platform\_js/basics.html#/](https://fmod.com/resources/documentation-api?page=content/generated/platform_js/basics.html#/)
> 
> You can try out demos for yourself here [http://www.fmod.org/public/js\_studio/](http://www.fmod.org/public/js_studio/).  
> The performance is quite good, not as good as native obviously.

hi i tested Simple Event

‘fire and forget the expolsion’ with ‘start the looping musing

I was clicked quickly ‘fire and forget the explosion’ and

Channles Playing 22 : CPU = dsp 19.29% ~~~~ total 19.56 %

If playing 22 sound and i got this cpu usage, i can’t use fmod with huge game…

please tell us about this T-T

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [October 15, 2018, 11:44pm UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/4 "2018-10-15T23:44:44Z")

</div>

The fact that it is playing 22 ogg vorbis files in realtime (yes it is decompressing as it plays in realtime) in 19% in javascript is pretty impressive to me, it is 14% on my machine for reference.

If you want to have lower CPU usage you have to use more friendly compression formats, like PCM (a bank can be set to decompress into memory), or FADPCM which is a good compromise for speed vs size.

I would treat HTML5 like a mobile level game with regard to memory and cpu usage.

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [October 17, 2018, 2:15am UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/5 "2018-10-17T02:15:56Z")

</div>

FYI I have just got FMOD building with Web Assembly (WASM). My initial 14% test case drops to 10.8% cpu. Havent looked at tweaking optimization flags yet. Will look at releasing this soon.

edit: 10.2% with -o3

---

<div class="post-metadata">

### Author: ![GBear](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@GBear](https://qa.fmod.com/u/GBear)
#### Post date: [October 15, 2018, 5:16pm UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/6 "2018-10-15T17:16:40Z")

</div>

hi i tested Simple Event

‘fire and forget the expolsion’ with 'start the looping musing

I was clicked quickly ‘fire and forget the explosion’ and

Channles Playing 22 : CPU = dsp 19.29% ~~~~ total 19.56 %

If playing 22 sound and i got this cpu usage, i can’t use fmod with huge game…

please tell us about this T-T

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [October 17, 2018, 6:12am UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/7 "2018-10-17T06:12:29Z")

</div>

I have put some new demos here that use WASM instead of ASM.JS for performance testing

[http://www.fmod.org/public/js\_wasm](http://www.fmod.org/public/js_wasm)  
and  
[http://www.fmod.org/public/js\_studio\_wasm](http://www.fmod.org/public/js_studio_wasm)

let me know how it runs/compares on your machines vs the older

[http://www.fmod.org/public/js](http://www.fmod.org/public/js)  
and  
[http://www.fmod.org/public/js\_studio](http://www.fmod.org/public/js_studio)

---

<div class="post-metadata">

### Author: ![BeatTherapy](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@BeatTherapy](https://qa.fmod.com/u/BeatTherapy)
#### Post date: [September 23, 2022, 12:04am UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/8 "2022-09-23T00:04:17Z")

</div>

I don’t suppose these js demos exist somewhere else on your site? All of these links appear to be dead.

Would love to see what’s possible, and if there’s a way to include the convolution reverb on a potential mobile app in 2022… (React native maybe?)  
Cheers,  
Andrew =)  
🎧💙👍

---

<div class="post-metadata">

### Author: ![brett](https://yyz2.discourse-cdn.com/flex036/user_avatar/qa.fmod.com/brett/32/261_2.png) [@brett](https://qa.fmod.com/u/brett)
#### Post date: [September 23, 2022, 4:28am UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/9 "2022-09-23T04:28:00Z")

</div>

you can use updated urls

[https://www.fmod.com/assets/html5/core\_api/demo.html](https://www.fmod.com/assets/html5/core_api/demo.html)

[https://www.fmod.com/assets/html5/studio\_api/demo.html](https://www.fmod.com/assets/html5/studio_api/demo.html)

[https://www.fmod.com/assets/html5/js\_unity/demo.html](https://www.fmod.com/assets/html5/js_unity/demo.html)

---

<div class="post-metadata">

### Author: ![BeatTherapy](https://avatars.discourse-cdn.com/v4/letter/b/7993a0/32.png) [@BeatTherapy](https://qa.fmod.com/u/BeatTherapy)
#### Post date: [September 23, 2022, 11:26am UTC](https://qa.fmod.com/t/html5-with-fmodstudio/14136/10 "2022-09-23T11:26:35Z")

</div>

Brilliant! Thanks Brett!  
=)
