emscripten-core / emscripten-core/emscripten
OpenAL performance issue on alListenerfv
- Dominant language
- C++
- Stars
- 27.6k
- Forks
- 3.6k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 105
Description
Hi everyone.
**Version of emscripten/emsdk:**
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 2.0.7
clang version 12.0.0 (Cswircachegitchromium.googlesource.com-external-github.com-llvm-llvm--project 25a8881b724abf7251a9278e72224af7e82cb9c2)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: c:/Emscripten/upstream/bin
shared:INFO: (Emscripten: Running sanity checks)
I have found, that if I sync sound listener with my camera position and orientation it SLOWS DOWN my app.
I do it every frame.
This block of code starts to take longer and longer and
also this leads to memory growth (leak?).
When I turn off this update everything become okay.
I just measure time of call alListener* and notice how
it's getting longer and longer and memory is going up.
What am I doing wrong?
Thank you.
Here's the demo gif: https://gifyu.com/image/SSIWX
Contributor guide
Assessment
This issue has not been assessed yet.