From fd70b0bca6dcc97edf16d4567c84933576828230 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 27 Sep 2017 09:36:34 -0700 Subject: Don't update context and listener props unnecessarily --- OpenAL32/Include/alListener.h | 2 ++ OpenAL32/Include/alMain.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'OpenAL32/Include') diff --git a/OpenAL32/Include/alListener.h b/OpenAL32/Include/alListener.h index ae66b0e3..8b212d47 100644 --- a/OpenAL32/Include/alListener.h +++ b/OpenAL32/Include/alListener.h @@ -36,6 +36,8 @@ typedef struct ALlistener { ALfloat Up[3]; ALfloat Gain; + ATOMIC_FLAG PropsClean; + /* Pointer to the most recent property values that are awaiting an update. */ ATOMIC(struct ALlistenerProps*) Update; diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 95137972..7ac7eb13 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -853,6 +853,8 @@ struct ALCcontext_struct { ALfloat DopplerVelocity; ALfloat SpeedOfSound; ALfloat MetersPerUnit; + + ATOMIC_FLAG PropsClean; ATOMIC(ALenum) DeferUpdates; RWLock PropLock; -- cgit v1.2.3