emscripten-core / emscripten-core/emscripten

OpenAL performance issue on alListenerfv

Open
#15,848 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.