IPB

Welcome Guest ( Log In | Register )

> foobar2000 General Forum Rules

This is NOT a tech support forum.
Tech support questions go to foobar2000 Tech Support forum instead.

See also: Hydrogenaudio Terms of Service.

 
Reply to this topicStart new topic
Feature request : Toggle autoplaylists on/off, To save CPU
wcs13
post Apr 27 2012, 02:51
Post #1





Group: Members
Posts: 90
Joined: 10-October 10
Member No.: 84514



Hi everyone,

As a quite experienced foobar user, I love getting the most out of my favorite music player. Thus, I have a lot of autoplaylists. Some are for listening purposes (eg. "%genre% IS Folk", "%rating% GREATER 3"...), some are for maintenance purposes (e.g. "%replaygain_album_gain% MISSING"), etc.
I believe that having dozens of autoplaylists tends to really slow down my foobar, especially when handling nearly 50.000 titles over a local Ethernet network. The slightest tag modification via the properties window results in several seconds of foobar hanging before being applied. Adding an album to the library results in about 10 seconds of foobar hanging (after the album has been copied to the library, and before the autoplaylists get updated). Etc.

Today, I have realized that most of my autoplaylists could be turned off most of the time on an individual basis, only to be turned on when really needed. I believe this should result in a much more reactive foobar.

Could this feature be implemented within foobar, so that it could be used not only by the standard Playlist Manager, but also by 3rd party components such as Playlist Organizer ?

Let me know if this is a good idea or not. Thanks in advance.

This post has been edited by wcs13: Apr 27 2012, 02:55
Go to the top of the page
+Quote Post
tpijag
post Apr 27 2012, 03:42
Post #2





Group: Members
Posts: 2354
Joined: 19-May 08
Member No.: 53637



For a current alternative, you could offload /convert the seldom used autoplaylists to saved Facets Filters.
Go to the top of the page
+Quote Post
Mod-Ular
post Apr 27 2012, 08:25
Post #3





Group: Members
Posts: 47
Joined: 17-April 12
Member No.: 98918



A nice solution to store redundant autoplaylists is using the WSH-mod Autoplaylist -script you can find here. My only problem was that the inputbox has a 255 char limit, but you can find workaround in the posts above. It reduced my playlist folder from 1gig+ to 200MB and from 350+ lists to 75 or so. Basicly you save your queries wich can be easily recalled.
Go to the top of the page
+Quote Post
wcs13
post Apr 27 2012, 16:50
Post #4





Group: Members
Posts: 90
Joined: 10-October 10
Member No.: 84514



Thanks for your replies ! Both could work, but IMHO none would be as user-friendly as my suggestion.
For example, I use Playlist Organizer. When I right-click on a playlist/autoplaylist, I have a context menu with options : Activate, Rename, Remove...
I could easily imagine one more option : "Turn on" or "Turn off" depending on the context of course.
Can this qualify as a feature request ?
Go to the top of the page
+Quote Post
MyMaster
post Apr 27 2012, 18:11
Post #5





Group: Members
Posts: 70
Joined: 4-October 01
Member No.: 199



heh, my autoplaylists make foobar take 2 minutes to be responsive at startup.
Go to the top of the page
+Quote Post
grimes
post Apr 27 2012, 19:15
Post #6





Group: Developer
Posts: 304
Joined: 12-November 07
From: Frankfurt
Member No.: 48701



Do you have thousands of autoplaylists with very complicated sort/filter strings?

I've 70 Autoplaylists initialized in: 0:01.690872

This post has been edited by grimes: Apr 27 2012, 19:19
Go to the top of the page
+Quote Post
wcs13
post Apr 28 2012, 00:55
Post #7





Group: Members
Posts: 90
Joined: 10-October 10
Member No.: 84514



Hi grimes. I don't know about Mymasters' problem, but I suppose it can depend on (1) the size of his music library (e.g. I have almost 50.000 titles), and (2) the location of his music library (e.g. mine is stored on a secure server, with Ethernet access, which makes it slower than if it was stored locally). Not to mention the speed of his own PC (maybe he has some old 300 MHz CPU, who knows).

Anyway, as a member of the Dev group, I suppose you are knowledgeable on this topic's matter. So, what are your thoughts about my own suggestion ? Thanks.
Go to the top of the page
+Quote Post
Reflection
post Apr 28 2012, 04:35
Post #8





Group: Members
Posts: 38
Joined: 14-March 05
Member No.: 20637



I agree with the original post. This is a big problem if you run on older hardware. I have a secondary PC that I use just for playing music on my main stereo and I had to pretty much limit myself to a half dozen autoplaylists, otherwise foobar would max out my cpu usage.

On my main PC where I use several playlists (breaking tracks down by year/rating/playcount, maintenance playlists etc.) foobar is consistently at 8-10% cpu usage. Eliminating the autoplaylists cuts that right down.

I would suggest having 3 options: 1) The current implementation; 2) Update on startup; 3) Manually update.


Go to the top of the page
+Quote Post
Mod-Ular
post Apr 28 2012, 13:02
Post #9





Group: Members
Posts: 47
Joined: 17-April 12
Member No.: 98918



A bit offtopic but i also agree with some parts of the performance-issue,
I can confirm that using a Network Attached Storage (in most cases some kind of Samba) can give foobar a hard time. Partly because NAS-users tend to collect gigantic music-libraries.
The biggest problem with my Media Library has been relocating folders on the NAS. Inside foobar (using file-operations) or outside doesn't matter. It makes foobar hang for certain.
I think, keepng your library 'clean' helps. Don't add folders containing more than 0.5TB. If your collection is bigger you can split it up in some subfolders. Add them one by one. Inbetween exporting it (Menu>Library>Playback Statistics>Export..., select current library content only) And then reimporting it before adding the next folder. If i add really big folders i even restart foobar and let it completly initialise my library inbetween export and imports. (If you believe littlle gnomes maintain your data you can try my 'clean' method biggrin.gif )

I use very complicated and long queries for my autoplaylists, and i have a lot of them lined-up. But in my expierience it hasn't much to do with CPU-power. I have tested this from a simple duocore 1gigRAM notebook up to my hexacore 12gigRAM beast. All tend to take as much time to startup, the differences are too small to put it on CPU-power. Note that foobar still has an 32bit architecture, it cannot use all of the power available nowadays.

(I have no real knowledge about this stuff, but just wanted to give my input on this as a hardcore user)
Go to the top of the page
+Quote Post
wcs13
post May 6 2012, 16:01
Post #10





Group: Members
Posts: 90
Joined: 10-October 10
Member No.: 84514



So... there have been some interesting comments, but we still haven't received an official answer to the first question :

QUOTE (wcs13 @ Apr 27 2012, 02:51) *
Could this feature be implemented within foobar, so that it could be used not only by the standard Playlist Manager, but also by 3rd party components such as Playlist Organizer ?


This post has been edited by wcs13: May 6 2012, 16:02
Go to the top of the page
+Quote Post
q-stankovic
post May 6 2012, 16:09
Post #11





Group: Members
Posts: 1743
Joined: 28-May 06
From: Düsseldorf
Member No.: 31251



What only makes sense in my eyes is mod-ulars advice to use marc2003s wsh-script. The basic idea is: before making autoplaylists more complex it is better to store query patterns outside from playlist view and call them only when you need.


--------------------
german support forum: www.foobar-users.de / user: qwert73
Go to the top of the page
+Quote Post
wcs13
post May 7 2012, 03:11
Post #12





Group: Members
Posts: 90
Joined: 10-October 10
Member No.: 84514



That looks interesting. Unfortunately WSH is one of the things I'm really not familiar with. I have installed WSH Panel Mod, but I'm not really aware of what it really can do or not. I know there are lots of scripts, I know there's a 60+ topic for them, but I really miss an index of some sort that could help me understand about all the available scripts without having to go through the 60+ pages of the topic.

Besides, you talk about some marc2003's script, and I'd love to read something about it, but I don't know what it does, or even its name. I've followed the above link ( http://www.hydrogenaudio.org/forums/index....&pid=793678 ), but I still don't understand.

Final words : I guess some help about WSH scripts would be welcome. Thank you. smile.gif
Go to the top of the page
+Quote Post
wcs13
post May 22 2012, 20:39
Post #13





Group: Members
Posts: 90
Joined: 10-October 10
Member No.: 84514



Is anybody listening ?...
Go to the top of the page
+Quote Post
marc2003
post May 22 2012, 20:52
Post #14





Group: Members
Posts: 4874
Joined: 27-January 05
From: England
Member No.: 19379



download this and check the readme carefully. http://dl.dropbox.com/u/22801321/samples.zip

the script is named autoplaylists.txt

it looks like this: http://dl.dropbox.com/u/22801321/autoplaylist%20example.png

on the right you can see i have just 3 playlist tabs. on the left is my script which allows you to add/edit as many autoplaylists as you like and it saves them for future use.

-clicking green + button lets you add a new one where you select a name, the query, the sort pattern (optional) and whether to force sort it
-click the text to make the playlist active.
-when you hover your mouse, you'll see buttons to edit/delete
Go to the top of the page
+Quote Post
wcs13
post May 23 2012, 02:13
Post #15





Group: Members
Posts: 90
Joined: 10-October 10
Member No.: 84514



Thanks a lot marc, I sure will take a close look. Cheers ! smile.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 20th December 2014 - 21:14