hi.
we are developing RPG Game with HTML5
HTML5 fmod can use all functions of fmodStudio ?
and we are wondering about performance…
thx
hi.
we are developing RPG Game with HTML5
HTML5 fmod can use all functions of fmodStudio ?
and we are wondering about performance…
thx
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#/
You can try out demos for yourself here 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
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.
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
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
I have put some new demos here that use WASM instead of ASM.JS for performance testing
http://www.fmod.org/public/js_wasm
and
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
and
http://www.fmod.org/public/js_studio
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 =)
you can use updated urls
https://www.fmod.com/assets/html5/core_api/demo.html
Brilliant! Thanks Brett!
=)