Comments (6)
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.
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.
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.
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.
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.
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)
- Status update HOT 1
- Actual working demo HOT 3
- Workers HOT 16
- At the end of a stream, tries to read past end of buffer HOT 3
- Encoder ? HOT 10
- Encoder ?
- Fix description of project to reflect that it is not an encoder HOT 1
- Streaming and node.js
- Decode from buffer HOT 3
- 5.1?
- any plans for 24bit alac support? HOT 2
- A demuxer for this container was not found.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alac.js.