Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Interesting performance tip for /play (Read 2311 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Interesting performance tip for /play

I've found something interesting that I thought I'd share: if Foobar is not running, and I run it with the /play switch it takes about 8-9 seconds before it is ready to go and starts playing. During this time it says "Loading Track", and the autoplaylist I've set to random sort order shows the previous run's sort order. After a few seconds the autoplaylist is recreated in a new random order, the first track is selected, and starts playing.

But, there is good news! I've found that if I start Foobar without /play, it starts in about 1-2 seconds, including autoplaylist recreation. Running it again, with /play, then starts it playing instantly, saving about 6 seconds from startup time for me, woo! A small bacth file can be used to automate this:

Code: [Select]
start foobar2000.exe
foobar2000.exe /play


Strangely, though, this results in it playing from the same position index in the playlist, so if it was playing the 20th track when it was closed, it will be playing the 20th track when it opens. Not really important for me as the list will have been randomised, so the 20th is no better or worse a place to start than the 1st, so long as playlist repeat is turned on.

 

Interesting performance tip for /play

Reply #1
This hack made obsolete by v0.9.3.1, which has just been released, and performs just fine with /play. Yay!