Skip to content

Throttle 3D sound listener and volume/pan updates to 100 Hz - #468

Open
nickalreadyinuse wants to merge 1 commit into
GooberRF:masterfrom
nickalreadyinuse:perf/sound-update-throttle
Open

nickalreadyinuse wants to merge 1 commit into
GooberRF:masterfrom
nickalreadyinuse:perf/sound-update-throttle

Conversation

@nickalreadyinuse

Copy link
Copy Markdown
Contributor

snd_update_sounds issues DirectSound COM calls (DS3D listener update, per-instance volume/pan) every frame; at uncapped framerates that is inaudible waste. Rate-limit the update body to 100 Hz with a Timestamp. The listener position/rvec globals are still written every frame.

snd_update_sounds issues DirectSound COM calls (DS3D listener update,
per-instance volume/pan) every frame; at uncapped framerates that is
inaudible waste. Rate-limit the update body to 100 Hz with a Timestamp.
The listener position/rvec globals are still written every frame.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant