高速化する

This commit is contained in:
yuuki
2025-02-11 14:30:12 +09:00
parent 51b0a3a33a
commit 04c9802615

View File

@@ -129,7 +129,7 @@ class SongSelect{
song.subtitlePrepared = subtitle ? fuzzysort.prepare(this.search.normalizeString(subtitle)) : null
setTimeout(() => {
this.songs.push(this.addSong(song))
}, songIndex * 50);
}, songIndex);
songIndex++;
}
setTimeout(() => {
@@ -150,7 +150,7 @@ class SongSelect{
if (titlesort === "true") {
this.songs.sort((a, b) => a.title.localeCompare(b.title));
}
}, songIndex * 50 + 50);
}, songIndex + 50);
if(assets.songs.length){
this.songs.push({
title: strings.back,