stepmania / stepmania-site

StepMania's Website, forums, etc.
https://www.stepmania.com/
19 stars 7 forks source link

[enhancement] make fastboot FAST by moving the song scanner to it's seperate thread #50

Closed nieknooijens closed 10 years ago

nieknooijens commented 10 years ago

Hi there

I see stepmania still uses the single-threaded "load and then run program" approach it used back in the early days. this is really troublesome when you have (like me) a library of over 7000 songs since it needs to load for 6 minutes! I work on some karaoke-program called performous (search it on github, it has stepmania-game-mode support but it sucks) and there we fire up another thread which scans the folders for songs while the main program is running. the result is no loading at bootup, just instantanious fun! you don't need to come up with it yourself, just steal our code :+1: https://github.com/performous/performous/blob/master/game/songs.cc the game calles "reload" which boots up the loading thread which can be seen at "reload_internal" (which is the wrong name since it just scans a folder and gets called again when a subfolder is found)

shakesoda commented 10 years ago

this is the wrong repo, you want this one

loading songs in the background is something that has come up before, but it would require a significant amount of work to make it happen in any kind of usable way.