Skip to content

Faster audio decompression on html5#1533

Merged
RobDangerous merged 1 commit into
Kode:mainfrom
RblSb:fast-decompress
May 3, 2026
Merged

Faster audio decompression on html5#1533
RobDangerous merged 1 commit into
Kode:mainfrom
RblSb:fast-decompress

Conversation

@RblSb
Copy link
Copy Markdown
Contributor

@RblSb RblSb commented May 2, 2026

Makes background audio decoding 30x faster (almost) without frame drops.
4 minutes music is decompressed in 0.6s instead of 18 seconds. On my androids it drops to 50-55 fps at the end of decompression for long tracks, but since most decompressions happen only for sounds and at loadEverything call, i think this trade-off is worth it.

Reference info about setTimeout slowness:
https://nolanlawson.com/2025/08/31/why-do-browsers-throttle-javascript-timers/

@RobDangerous RobDangerous merged commit 3664b60 into Kode:main May 3, 2026
23 checks passed
@RobDangerous
Copy link
Copy Markdown
Member

Funny. Thanks.

@RblSb RblSb deleted the fast-decompress branch May 3, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants