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

Enhancement: Making AudioMixer a member instead of invoking it statically to cut down CPU usage by roughly 50% #884

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

RealTimeChris
Copy link
Member

Storing it along with the array of floats that are used as an intermediary for converting to/from avx registers seems to cut down CPU usage while streaming audio in my implementation by roughly 50%. As opposed to reallocating the array for every function call.

Code change checklist

  • I have ensured that all methods and functions are fully documented using doxygen style comments.
  • My code follows the coding style guide.
  • I tested that my change works before raising the PR.
  • I have ensured that I did not break any existing API calls.
  • I have not built my pull request using AI, a static analysis tool or similar without any human oversight.

@netlify
Copy link

netlify bot commented Sep 24, 2023

Deploy Preview for dpp-dev ready!

Name Link
🔨 Latest commit ef81cf5
🔍 Latest deploy log https://app.netlify.com/sites/dpp-dev/deploys/6510086d3aa3560008728eea
😎 Deploy Preview https://deploy-preview-884--dpp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the documentation Improvements or additions to documentation label Sep 24, 2023
include/dpp/discordvoiceclient.h Outdated Show resolved Hide resolved
…ally to cut down CPU usage by roughly 50%.

Storing it along with the array of floats that are used as an intermediary for converting to/from avx registers seems to cut down CPU usage while streaming audio in my implementation by roughly 50%. As opposed to reallocating the array for every function call.
@braindigitalis braindigitalis merged commit d9aeef1 into brainboxdotcc:dev Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants