summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
authorChristian Soffke <christian.soffke@gmail.com>2023-10-07 15:10:53 +0200
committerChristian Soffke <christian.soffke@gmail.com>2024-04-23 23:02:47 -0400
commit3ce3b102ddd5b663759ed61bd689b7bbda2ceecd (patch)
tree73034503c3c4ee4416f2acc6369fd18f99ed8d80 /apps/settings.h
parent4a52147122847afa14e00f12e2b5f813cd1ee41d (diff)
downloadrockbox-3ce3b102ddd5b663759ed61bd689b7bbda2ceecd.tar.gz
rockbox-3ce3b102ddd5b663759ed61bd689b7bbda2ceecd.zip
Provide "quick" option for loading database into RAM
The directory cache and the database's Load to RAM feature each result in a much better user experience. But, when both features are enabled at the same time, it can take a very long time on older players - easily several minutes for larger libraries - until all of the database's dircache references have been updated. Include a 'Quick' option that causes the database to ignore dircache references which can *significantly* reduce disk activity after booting. Change-Id: I25ae779c97d03885b06d5a28d8be55c0d05692a5
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 09a01b40a1..ce29e020f7 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -136,6 +136,13 @@ enum
136}; 136};
137#endif 137#endif
138 138
139enum
140{
141 TAGCACHE_RAM_OFF = 0,
142 TAGCACHE_RAM_ON = 1,
143 TAGCACHE_RAM_QUICK = 2
144};
145
139/* dir filter options */ 146/* dir filter options */
140/* Note: Any new filter modes need to be added before NUM_FILTER_MODES. 147/* Note: Any new filter modes need to be added before NUM_FILTER_MODES.
141 * Any new rockbox browse filter modes (accessible through the menu) 148 * Any new rockbox browse filter modes (accessible through the menu)
@@ -576,7 +583,7 @@ struct user_settings
576#endif 583#endif
577#ifdef HAVE_TAGCACHE 584#ifdef HAVE_TAGCACHE
578#ifdef HAVE_TC_RAMCACHE 585#ifdef HAVE_TC_RAMCACHE
579 bool tagcache_ram; /* load tagcache to ram? */ 586 int tagcache_ram; /* load tagcache to ram: 1=on, 2=quick (ignore dircache) */
580#endif 587#endif
581 bool tagcache_autoupdate; /* automatically keep tagcache in sync? */ 588 bool tagcache_autoupdate; /* automatically keep tagcache in sync? */
582 bool autoresume_enable; /* enable auto-resume feature? */ 589 bool autoresume_enable; /* enable auto-resume feature? */