Enhancing Browser Physics Simulations: WebAssembly and Multithreading Strategies
This study presents a series of optimization strategies for integrating the Bullet Physics engine into a browser-based WebAssembly (Wasm) environment, addressing the performance limitations of traditional solutions such as Ammo.js. Using techniques such as Foreign Function Interface (FFI) optimizati...
Saved in:
| Main Authors: | , |
|---|---|
| Format: | Article |
| Language: | English |
| Published: |
IEEE
2025-01-01
|
| Series: | IEEE Access |
| Subjects: | |
| Online Access: | https://ieeexplore.ieee.org/document/11071666/ |
| Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
| _version_ | 1849319726423998464 |
|---|---|
| author | Hyeonjong Nam Eun-Jin Im |
| author_facet | Hyeonjong Nam Eun-Jin Im |
| author_sort | Hyeonjong Nam |
| collection | DOAJ |
| description | This study presents a series of optimization strategies for integrating the Bullet Physics engine into a browser-based WebAssembly (Wasm) environment, addressing the performance limitations of traditional solutions such as Ammo.js. Using techniques such as Foreign Function Interface (FFI) optimization, memory management refinement, and multithreading through Web Workers, the proposed approach achieves substantial performance improvements. The optimized Wasm binaries demonstrated up to 9.88x speedup over Ammo.js in terms of frame time and exhibited superior scalability with increasing thread counts. These findings highlight the potential of Wasm as a robust platform for high-performance browser-based physics simulations, offering significant benefits in computational efficiency and scalability. |
| format | Article |
| id | doaj-art-8a64d07eb7fd4ce68880b38681b9c53e |
| institution | Kabale University |
| issn | 2169-3536 |
| language | English |
| publishDate | 2025-01-01 |
| publisher | IEEE |
| record_format | Article |
| series | IEEE Access |
| spelling | doaj-art-8a64d07eb7fd4ce68880b38681b9c53e2025-08-20T03:50:21ZengIEEEIEEE Access2169-35362025-01-011311732811734210.1109/ACCESS.2025.358611611071666Enhancing Browser Physics Simulations: WebAssembly and Multithreading StrategiesHyeonjong Nam0https://orcid.org/0009-0003-5392-4813Eun-Jin Im1https://orcid.org/0000-0003-2161-1735School of Software, Kookmin University, Seoul, South KoreaSchool of Software, Kookmin University, Seoul, South KoreaThis study presents a series of optimization strategies for integrating the Bullet Physics engine into a browser-based WebAssembly (Wasm) environment, addressing the performance limitations of traditional solutions such as Ammo.js. Using techniques such as Foreign Function Interface (FFI) optimization, memory management refinement, and multithreading through Web Workers, the proposed approach achieves substantial performance improvements. The optimized Wasm binaries demonstrated up to 9.88x speedup over Ammo.js in terms of frame time and exhibited superior scalability with increasing thread counts. These findings highlight the potential of Wasm as a robust platform for high-performance browser-based physics simulations, offering significant benefits in computational efficiency and scalability.https://ieeexplore.ieee.org/document/11071666/Bullet physicsmultithreadingphysics simulationWebAssembly (Wasm)web workers |
| spellingShingle | Hyeonjong Nam Eun-Jin Im Enhancing Browser Physics Simulations: WebAssembly and Multithreading Strategies IEEE Access Bullet physics multithreading physics simulation WebAssembly (Wasm) web workers |
| title | Enhancing Browser Physics Simulations: WebAssembly and Multithreading Strategies |
| title_full | Enhancing Browser Physics Simulations: WebAssembly and Multithreading Strategies |
| title_fullStr | Enhancing Browser Physics Simulations: WebAssembly and Multithreading Strategies |
| title_full_unstemmed | Enhancing Browser Physics Simulations: WebAssembly and Multithreading Strategies |
| title_short | Enhancing Browser Physics Simulations: WebAssembly and Multithreading Strategies |
| title_sort | enhancing browser physics simulations webassembly and multithreading strategies |
| topic | Bullet physics multithreading physics simulation WebAssembly (Wasm) web workers |
| url | https://ieeexplore.ieee.org/document/11071666/ |
| work_keys_str_mv | AT hyeonjongnam enhancingbrowserphysicssimulationswebassemblyandmultithreadingstrategies AT eunjinim enhancingbrowserphysicssimulationswebassemblyandmultithreadingstrategies |