Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save useless zeroing of buffer #451

Merged
merged 7 commits into from
Jun 27, 2023

Conversation

gwilymk
Copy link
Contributor

@gwilymk gwilymk commented Jun 27, 2023

I realised we don't need to zero the buffer or read the current buffer value for the first sound that we're writing per frame. Gets us from 17728 cycles per frame for 32768Hz down to 15291 cycles per frame.

From tests (and theory), this reduces the number of cycles per frame by 2,000 for 32768Hz.

  • No changelog update needed - already mentioned mixer improvements there

@gwilymk gwilymk merged commit 92e31ae into agbrs:master Jun 27, 2023
1 check passed
@gwilymk gwilymk deleted the save-useless-zeroing-of-buffer branch June 27, 2023 22:52
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