Rockbox Technical Forums

Support and General Use => User Interface and Voice => Topic started by: Taslow on December 07, 2007, 12:24:48 PM

Title: Noticeable delay entering folders
Post by: Taslow on December 07, 2007, 12:24:48 PM
In the last couple weeks I've noticed a significant (3-4 second) delay in a response from rockbox when I select a folder in the file tree (I'm running a Sansa e250r). It wasn't there when I originally installed rockbox, and there are actually less files in the folder now then before I noticed the delay. Is there a cache I should empty, or could it be an issue with the display theme? Obviously 3-4 seconds isn't really that long, but it can be really annoying because I think I haven't pushed the button or something, only to find that I've pushed it twice after the delay catches up and I'm suddenly in a files context menu the next step in.
Title: Re: Noticeable delay entering folders
Post by: Taslow on December 11, 2007, 02:49:58 PM
Really? No one else out there has experienced this at least? Maybe it's defective hardware (although I should have had the problem from day one if that were the case, but I didn't)?
Title: Re: Noticeable delay entering folders
Post by: safetydan on December 11, 2007, 03:24:52 PM
Do you have dircache enabled?
Title: Re: Noticeable delay entering folders
Post by: JdGordon on December 12, 2007, 02:30:23 AM
no dircache on e200...

my guess is the FAT is stuffed maybe slowing down the file seeking?
Title: Re: Noticeable delay entering folders
Post by: bascule on December 12, 2007, 02:35:45 AM
I'm sure about the OP, but on my e280, the Database autoupdate causes incredible slowness when starting up.

I'm not sure about why the Dircache is not available on Flash units (probably not required), but I do know that the autoupdate does not seem to yield correctly, if at all, during the refresh.

You can do maybe one action, enter the file browser for instance, but then the UI is totally frozen and playback is not started until the autoupdate is completed, at which point full control resumes and playback starts.

I now run with autoupdate off and start up is super-speedy.
Title: Re: Noticeable delay entering folders
Post by: Taslow on December 13, 2007, 06:25:47 PM
The FAT?
Title: Re: Noticeable delay entering folders
Post by: JdGordon on December 13, 2007, 06:33:04 PM
File Allocation Table.. the filesystem...
Title: Re: Noticeable delay entering folders
Post by: Taslow on December 17, 2007, 05:59:32 PM
Just for everyone's information: As an experiment, I cleaned out the numerous bookmarks I had in the bookmark file. Manually deleted the whole bookmark files I didn't need then used a text editor to remove all the old marks from the one I DID need and that seems to have cleared up the delay. My guess is that 3-4 second delay was Rockbox trying to read the bookmarks before displaying the folder?

Title: Re: Noticeable delay entering folders
Post by: FelixJZ on December 23, 2007, 08:35:20 AM
Yeah, weird, I too have this 3-4 second delay.
What happens is if i pick a folder, say I click on Metallica in the Artists section, it says in a grey box on the screen "Seeking folders 0/10" or something like that, then eventually finds folders and opens, but still its a 3-4 second delay.
Title: Re: Noticeable delay entering folders
Post by: Llorean on December 23, 2007, 05:01:16 PM
You mean "in the database" where they aren't folders.

Please be very specific. Folders are folders / directories on the disk. The delay in entering a database category is different.
Title: Re: Noticeable delay entering folders
Post by: zajacattack on December 23, 2007, 05:19:43 PM
Yes, I would like to know, why the delay when entering and picking a song in the database?
Title: Re: Noticeable delay entering folders
Post by: Llorean on December 23, 2007, 05:21:54 PM
This thread is about folders, not filters in the database. Please don't try to hijack threads.

As a rough summary, when entering a folder there's a pre-set list of files that are in that folder. Because the database uses "queries" formulated in the tagnavi file, when you click on something in the database view, it's basically having to search the database for all cases where that "query" you wrote in your tagnavi is true.