aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alState.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-08-23 18:56:01 -0700
committerChris Robinson <[email protected]>2016-08-23 18:56:01 -0700
commitdc8b7814c771d08abe61656b745e7763a010a3a3 (patch)
tree9d1f91b7829d2a7d29654d708a837bbf6cfb99c3 /OpenAL32/alState.c
parentbd054632e0ba42ad93dd3bcad54042a126a65646 (diff)
Avoid resupplying unneeded source updates
The source's voice holds a copy of the last properties it received, so listener updates can make sources recalculate internal properties from that stored copy.
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r--OpenAL32/alState.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c
index 443ab884..59814a4b 100644
--- a/OpenAL32/alState.c
+++ b/OpenAL32/alState.c
@@ -557,10 +557,7 @@ AL_API ALvoid AL_APIENTRY alDopplerFactor(ALfloat value)
WriteLock(&context->PropLock);
context->DopplerFactor = value;
if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire))
- {
UpdateListenerProps(context);
- UpdateAllSourceProps(context);
- }
WriteUnlock(&context->PropLock);
done:
@@ -580,10 +577,7 @@ AL_API ALvoid AL_APIENTRY alDopplerVelocity(ALfloat value)
WriteLock(&context->PropLock);
context->DopplerVelocity = value;
if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire))
- {
UpdateListenerProps(context);
- UpdateAllSourceProps(context);
- }
WriteUnlock(&context->PropLock);
done:
@@ -603,10 +597,7 @@ AL_API ALvoid AL_APIENTRY alSpeedOfSound(ALfloat value)
WriteLock(&context->PropLock);
context->SpeedOfSound = value;
if(!ATOMIC_LOAD(&context->DeferUpdates, almemory_order_acquire))
- {
UpdateListenerProps(context);
- UpdateAllSourceProps(context);
- }
WriteUnlock(&context->PropLock);
done: