Giter Site home page Giter Site logo

Comments (6)

auroranockert avatar auroranockert commented on August 16, 2024

Yes, most of the CPU usage is from the visualization, just the audio pipeline takes about 8% of one core on my 2.4GHz Core 2 Duo Macbook Pro using Firefox.

from alac.js.

lnostdal avatar lnostdal commented on August 16, 2024

Yep, about the same here. This kind of ruins the demo though; at least initially. Perhaps it could/should be removed? Anyway, thanks for this; the idea of lossless via the browser is very cool ... :)

from alac.js.

auroranockert avatar auroranockert commented on August 16, 2024

Maybe, we kind of rushed the demo etc. The codec was finished and we didn't want to delay the release.

We're probably going to improve it for our next release. Most of the CPU is spent in drawing, so there is probably a lot of room for improvement.

from alac.js.

nddrylliog avatar nddrylliog commented on August 16, 2024

Yep, about the same here. This kind of ruins the demo though; at least initially. Perhaps it could/should be removed? Anyway, thanks for this; the idea of lossless via the browser is very cool ... :)

@lnostdal You can disable the visualization by clicking on it. Doesn't use any CPU when inactive, so you can (unscientifically) measure the real CPU usage of audio decoding.

from alac.js.

lnostdal avatar lnostdal commented on August 16, 2024

On Fri, Dec 23, 2011 at 5:05 PM, Amos Wenger <
[email protected]

wrote:

Yep, about the same here. This kind of ruins the demo though; at least
initially. Perhaps it could/should be removed? Anyway, thanks for this; the
idea of lossless via the browser is very cool ... :)

@lnostdal You can disable the visualization by clicking on it. Doesn't use
any CPU when inactive, so you can (unscientifically) measure the real CPU
usage of audio decoding.

That's odd. I'm sure I tried just that before posting here, but indeed that
works.

from alac.js.

jussi-kalliokoski avatar jussi-kalliokoski commented on August 16, 2024

You can get the best effect of how cheap the decoding is compared to the UI by first disabling the visualization (it also disables the FFT calculation that way) and going into another tab (doesn't work in Firefox 5 and 8). We'll probably use a WebGL visualization in the future, lifting around 70% of the current CPU load.

But a funny thing is that even the fairly simple UI (excluding the visualization) uses a lot of CPU compared to the actual decoding, because of the DOM manipulation and redrawing of elements (the seek bar, the browser probably renders some surroundings while at it as well).

However, imho, this is an interesting proof that JavaScript is fast (enough), but it's just the all the layers like DOM and canvas slowing things down.

from alac.js.

Related Issues (13)

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.