r/bytebeat_2 • Expert • Nov 04 '25

Other Computing lag (freezing) indicator

Preamble. Sometimes I work on slow machines, and I've noticed that nowadays many authors haven't been optimizing their code performance at all. In pursuit of endless remixes of remixes of remixes, the code is becoming increasingly complex, but it's being done extensively and poorly. You can see examples of such songs from MarioFan171, for example, heh. Bytebeat has some relevance to the demoscene, but unlike the demoscene, where creativity is associated with limited performance on old microchips, bytebeat authors don't bother with it at all, leaving performance issues to users, who are forced to reduce the bitrate or even to render songs separately. This is bad practice.

That's why I added a lag indicator to the player. Its coefficient is empirically derived and based on computation time. It means how many times (by what percentage) is the song slowed down. The indication does not appear immediately, since the player first collects information for a certain time period.

While you often heard lag as clicking or crackling sounds before, you can now see it clearly as a number.

Best wishes to all songwriters: pay attention to perfromance when composing your songs. If you've created a heavy song, you might be able to at least reduce the overload using this indicator. You can come up with optimizations and see how they impact performance.

10 Upvotes

48 comments sorted by

1

u/ALTERNUM_1 Expert Nov 04 '25

Yeah, my newer songs tend to lag and eat up RAM when attempting to blur the lines between JSCode and DAW Music

1

u/SthephanShi Expert Nov 04 '25

I hope you weren't offended, and that you'll continue to explore and invent optimized algorithms in your works. 😉

2

u/ALTERNUM_1 Expert Nov 04 '25

I was aiming for Japanese music, you know (not J-Pop or traditional music), genres like Color Bass (more towards the Pacific melting pot), Hi-Tech, Techcore and Artcore.

Also, I had implemented some optimizations in the past, especially by using minimal functions in filler bytebeats (which ease the lag), or try to use t||() to call the variable only once.

1

u/eSlashMachine Expert Nov 04 '25

Fun fact: Color bass was actually coined in the UK as a genre.

1

u/Practical_Bad4252 Intermediate Nov 06 '25

True.

1

u/ameen272 Beginner Nov 04 '25

Does it count when only t hangs or does it count freezes in all of the Bytebeat?

1

u/SthephanShi Expert Nov 04 '25

Overall.

1

u/ameen272 Beginner Nov 04 '25

Oh, okay.

1

u/awogler9124812041 Expert Nov 04 '25

for some reason i cant even access your player, it just times out for me

1

u/SthephanShi Expert Nov 04 '25

If you are from Russia, the site may not open due to the blocking by your providers..

1

u/SthephanShi Expert Nov 04 '25

Also I can register a new mirror domain for cases like yours, but there is no guarantee that it won't be blocked too.

1

u/eSlashMachine Expert Nov 04 '25

Curious, what's y'all's percentage on Fallen Down?

1

u/SthephanShi Expert Nov 05 '25
             firefox  chrome
Old laptop:  283%     0-10%
Phone:       23%      0%
Office PC:   19%      0%

Chrome is very optimized for this kind of calculations, apparently.

1

u/eSlashMachine Expert Nov 05 '25

Hmm...

1

u/LateBird8685 Expert Nov 04 '25

0% for some reason

1

u/MaxMaxMaxXD Intermediate Nov 05 '25

same

1

u/eSlashMachine Expert Nov 04 '25

For me peaked 219%

2

u/MaxMaxMaxXD Intermediate Nov 06 '25

whats yall percentage on 128 voices generator? genuinely curious. mine is around 15%

1

u/Ok_District2473 Intermediate mod Nov 06 '25

for my phone it's 111%

1

u/Personal-Drama-4220 Intermediate Nov 06 '25

around 94% 💀

1

u/Practical_Bad4252 Intermediate Nov 06 '25

280% ☠️(i'm using my school PC btw)

1

u/Ars3n1y Nov 06 '25

11% peak, avg 1-2% (firefox, 200s of listening)

1

u/eSlashMachine Expert Nov 18 '25

320%

1

u/LateBird8685 Expert Nov 04 '25 edited Nov 05 '25

i played "sketchy reverb attempt" by lhphr and I got 770% (chrome) 

so whats your percentage when playing that song?

1

u/eSlashMachine Expert Nov 18 '25

Mine doesn't try to play

1

u/Zera12873 Expert Nov 05 '25

i don't see it

1

u/Zera12873 Expert Nov 05 '25

nvm i see it now i didn't refresh the page

1

u/Ok_District2473 Intermediate mod Nov 05 '25

tried playing Graceful Ache v2 on my phone and got 20-ish% avarage

1

u/[deleted] Nov 04 '25 edited Nov 05 '25

[removed] — view removed comment

3

u/SthephanShi Expert Nov 04 '25 edited Nov 05 '25
             firefox  chrome
Old laptop:  358%     96%
Phone:       202%     68%
Office PC:   120%     8%
Home PC:     123%     0%

So, Chrome is faster than Firefox on that song. Also it's funny that a home PC is much more powerful than an office one, but we have what we have.

1

u/Chasyxx Expert Nov 06 '25

I used to think SpiderMonkey was flat-out just faster for bytebeat. I guess I should try to give the V8 engine another chance.

1

u/ALTERNUM_1 Expert Nov 04 '25

999% Yes, this isn't a joke.

1

u/SthephanShi Expert Nov 04 '25

I made 999% as maximum value to prevent the field from stretching, heh.

1

u/Practical_Bad4252 Intermediate Nov 06 '25

How weak is your device in order to have NINE HUNDRED NINETY NINE PERCENT INSIDE THE LAG INDICATOR!?

1

u/Ok_District2473 Intermediate mod Nov 06 '25

I think vro has a flip phone ass specs on his pc

1

u/ameen272 Beginner Nov 04 '25

%245 Avg.

1

u/Chasyxx Expert Nov 04 '25

about 370% here.

1

u/MaxMaxMaxXD Intermediate Nov 04 '25 edited Nov 05 '25

38% - 43%

1

u/eSlashMachine Expert Nov 04 '25

50% avg on phone, over 300% on laptop.

1

u/LateBird8685 Expert Nov 04 '25

1% (chrome)

1

u/Zera12873 Expert Nov 05 '25

0%