adam-codersgu / supernova

A Kotlin-based Android application that allows the user to play music from their device while custom animations fall over the album artwork of the currently playing song.
0 stars 0 forks source link

Performance issue when playing large lists of songs #11

Closed adam-codersgu closed 1 year ago

adam-codersgu commented 2 years ago

The loading of large lists of songs into the play queue from scratch causes a lag. Alternative ways of loading play queues, e.g. using coroutines and staggered workflows should be explored

adam-codersgu commented 1 year ago

Working on branch enhancement/large_play_queue_loading

adam-codersgu commented 1 year ago

Would be handy to populate the metadata for the currently playing song immediately

adam-codersgu commented 1 year ago
 * fixme
 * N.B. This method is only suitable for small play queues (up to 20 songs). Beyond 20 songs
 * there starts to be noticeable performance deterioration due to the processing of each song's
 * metadata. For this reason, an alternative method called loadLargePlayQueue will handle longer
 * lists of songs.
adam-codersgu commented 1 year ago

New branch for experimental work on play queue handling enhancement/large_play_queue_loading_v2

adam-codersgu commented 1 year ago

enhancement/large_play_queue_loading_v2 merged into enhancement/large_play_queue_loading https://github.com/adam-codersgu/supernova/pull/32

adam-codersgu commented 1 year ago

Finished and merged https://github.com/adam-codersgu/supernova/pull/33