HTML5 Plyr

Fading Audio is ROUGH on CPUs

LaurieWired · Aug 12, 2025 · 16:31

Fading out audio is one of the most CPU-intensive tasks you can possibly do!

When numbers get *really* small, the number of CPU operations can explode 100-fold. Both x86 and ARM have special CPU instructions just to handle it. But why?

In this video, we'll explore the IEEE 754 (floating point) standard, the fight between Intel and DEC, and I'll write some demonstration C++ code that illustrates this problem even today!

---

Timestamps:

00:00 Subnormal Arithmetic Cost
02:25 An Accuracy Debate...
06:28 Too small to calculate?
08:56 IEEE 754 Standard
10:17 Digital Audio Workstation Conundrum
14:18 A Massive CPU Spike

---

Follow LaurieWired on Social Media:
►https://linktr.ee/lauriewired

---

Papers Cited:

"An Interview with the Old Man of Floating-Point":
https://people.eecs.berkeley.edu/~wkahan/ieee754status/754story.html

Pentium 4 and Xeon Processor Optimization manual (Chapter 5, “Optimizing for SIMD Floating-point"):
https://kib.kiev.ua/x86docs/Intel/Intel-OptimGuide/248966-004.pdf

---

Short demo code:
https://gist.github.com/LaurieWired/3f8be4648b3e627e3fcd5607d83b405f
Comments (400 saved / 3,393) click to expand
Loading comments…
mirrors
video (MultiUp): https://multiup.io/download/aee0afd4db35d74c60fea10e8a01444f/y-NOz94ZEOA.mp4
video (Download.gg): https://download.gg/file-18964500_ddbb2b81be83bcba
video (FileMirage): https://filemirage.com/file/vhwknvnf
video (UploadHive): https://uploadhive.com/cq9b8qmgwjn8
video (DailyUploads): https://dailyuploads.net/fp5bd1ss6mym
video (Gofile): https://gofile.io/d/5xqCLcHv
video (VikingFile): https://vikingfile.com/f/aby90UdiYf
thumbnail (qu.ax): https://qu.ax/8Ybax
thumbnail (beeimg): https://beeimg.com/images/l56192120343.jpg
thumbnail (img.fish): https://img.fish/o28dthif.jpg
thumbnail (pixhost): https://img3.pixhost.to/images/6834/796144477_y-noz94zeoa.jpg
thumbnail (freeimage.host): https://iili.io/nUBvlOQ.jpg