diff options
author | Chris Robinson <[email protected]> | 2017-09-27 09:36:34 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-09-27 09:36:34 -0700 |
commit | fd70b0bca6dcc97edf16d4567c84933576828230 (patch) | |
tree | 49871e67457b3f363a7d44d63a3b9d84c8f58d62 /OpenAL32/Include | |
parent | 101d284a1801532e12b7867aed3499896d7a9a6f (diff) |
Don't update context and listener props unnecessarily
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alListener.h | 2 | ||||
-rw-r--r-- | OpenAL32/Include/alMain.h | 2 |
2 files changed, 4 insertions, 0 deletions
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; |