Giter Site home page Giter Site logo

Comments (2)

saket424 avatar saket424 commented on June 15, 2024

Just for another data point

https://github.com/TheHWcave/Enviro-Plus/blob/master/review-part2/micro_SPL.py consumes roughly 15% of the CPU

from northcliff_spl_monitor.

roscoe81 avatar roscoe81 commented on June 15, 2024

Thanks for the feedback @saket424

I haven't really focused on optimising CPU usage. The frequency histogram doesn't add to the CPU load unless that display is used, so I don't expect that to make a difference.

You might like to try adding your other tasks in the main loop to see if that makes a difference. I have done similar when integrating SPL into my Enviro Monitor and the CPU usage is running at around 50% in that code.

The code in the other data point that you posted might result in a lower CPU load because it seems to sample at 22kHz (mine does 48kHz) with 1 second chunks (mine does 250ms chunks) and doesn't seem to undertake any A-weighting compensation. In my view, those compromises might reduce CPU load but all impact the accuracy of the noise measurements.

from northcliff_spl_monitor.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.