report progress about how many songs have been parsed#1100
Conversation
dfc34b2 to
9a893fe
Compare
|
NOTE TO MAINTAINERS: this PR appears to build off #1121, so look at that one first dgruss I don't know if this is intentional, since the unique commits in this PR modify only |
9a893fe to
7da2ed1
Compare
7da2ed1 to
e511a77
Compare
|
@barbeque-squared rebased to master, so this now works without #1121 |
eaac8c7 to
49a0bb6
Compare
|
@dgruss I am trying to rebase #1226 to this PR but when I compile and execute on my machine, I get I am on MacOS. |
loadingprogress.mp4Added the progress bar idea from #1226 |
barbeque-squared
left a comment
There was a problem hiding this comment.
This loses the Log.LogDebug('Recursing: ' + Dir.Append(FileName).ToWide, 'TSongs.FindFilesByExtension'); debuglog when it's recursing into subdirectories. This has proven quite useful in the past since we know there's issues with some special characters, but it also makes it so that if directories are somehow unreadable (ie wrong permissions, no executable bit, that kind of stuff) we can see that it found the directory but not any of the txt's in it. Ideally we can have that back.
The bar doesn't really add anything for me. I don't know where it's getting its color etc from, because I'd like to at least test what happens if I start messing with those elements (like width 0 for example). I suppose people will visually like it, though it's also just duplicating information already shown by the text.
I'm also not sure if having the number of found files be on the screen this long is a good idea. Personally I don't have any issue with it, but "normal" users also see a song total in the song selection list and if there is just 1 random txt that isn't an ultrastar txt at all somewhere, "the numbers won't match" or something.
Aside from the missing recursing log statement I'm fine with it as-is, just know that as soon as users start making "issues" it might change again.
|
the bar just uses transparency - it works across different themes because i didn't add new theme elements for it |
|
this PR also fixes an issue on macOS I think, where the game is unresponsive during start |
|
@barbeque-squared i re-added the missing debug line |
|
I just tested this and this finally fixes a long-standing issue that macOS didn't update the screen until everything was loaded - so I only had a black screen with the spinning ball until I saw the transition to the main menu screen. Now I see the loading of songs with the progress bar, very nice. Great progress, thanks a lot! |
|
i added two more things here: a bit more SDL event pumping, and prefixing the logfile with ms-accurate timestamps, which is super useful for debugging where time is lost in the log file |
In some prior UltraStar versions there was a loading progress. This commit adds this as well on the loading screen, first discovering how many txts there are to load, and then reporting the progress in how many have been loaded.