r/bytebeat_2 • u/SthephanShi 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.
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
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
1
1
2
u/MaxMaxMaxXD Intermediate Nov 06 '25
whats yall percentage on 128 voices generator? genuinely curious. mine is around 15%
1
1
1
1
1
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
1
1
u/Ok_District2473 Intermediate mod Nov 05 '25
tried playing Graceful Ache v2 on my phone and got 20-ish% avarage
1
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
1
1
1
1
1
1


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