Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  SOLVED Tagnavi_custom MAX SIZE?
« previous next »
  • Print
Pages: [1]

Author Topic: SOLVED Tagnavi_custom MAX SIZE?  (Read 283 times)

Offline Buzkill

  • Member
  • *
  • Posts: 36
SOLVED Tagnavi_custom MAX SIZE?
« on: August 31, 2021, 09:08:18 AM »
Been putting some decent time into making a cool custom genre database page and Ive found that if I add anymore code, it seems to break the viewer and how it's supposed to work.

Is there a limit to the size and length of the tagnavi_custom file? Or what could be the issue? I know its not the code, because if I remove any part to make it smaller it starts to work as expected again.

Any ideas? ???

THANK YOU
« Last Edit: September 02, 2021, 11:52:03 AM by Buzkill »
Logged

Offline chris_s

  • Member
  • *
  • Posts: 178
Re: Tagnavi_custom MAX SIZE?
« Reply #1 on: August 31, 2021, 09:21:42 AM »
Quote from: Buzkill on August 31, 2021, 09:08:18 AM
Is there a limit to the size and length of the tagnavi_custom file?
Yes:
Code: [Select]
#define TAGMENU_MAX_ITEMS  64
#define TAGMENU_MAX_MENUS  32
#define TAGMENU_MAX_FMTS   32
See here: https://github.com/Rockbox/rockbox/blob/c11ed99cb453af968493018e1b83606423d9b9a0/apps/tagtree.h#L30
Logged

Offline chris_s

  • Member
  • *
  • Posts: 178
Re: Tagnavi_custom MAX SIZE?
« Reply #2 on: August 31, 2021, 09:25:07 AM »
Actually, sorry, I think I sent you to the wrong place. This seems to be the relevant piece of code:

Code: [Select]
#define TAGCACHE_MAX_CLAUSES 32
https://github.com/Rockbox/rockbox/blob/c11ed99cb453af968493018e1b83606423d9b9a0/apps/tagcache.h#L84
« Last Edit: August 31, 2021, 09:31:38 AM by chris_s »
Logged

Offline chris_s

  • Member
  • *
  • Posts: 178
Re: Tagnavi_custom MAX SIZE?
« Reply #3 on: August 31, 2021, 09:27:40 AM »
Wait, no, now I'm confusing myself. I was right before (I think).  :D
« Last Edit: August 31, 2021, 09:29:14 AM by chris_s »
Logged

Offline Buzkill

  • Member
  • *
  • Posts: 36
Re: Tagnavi_custom MAX SIZE?
« Reply #4 on: August 31, 2021, 09:55:22 AM »
Im not quite sure what your pointing out :D is it something i can change or no?
I mean obviously i can change the value and recompile, but why did they pick that limit to begin with?

Would be interested to know how high you could push that without major problems but i have no clue what it would effect
« Last Edit: August 31, 2021, 09:57:26 AM by Buzkill »
Logged

Offline Buzkill

  • Member
  • *
  • Posts: 36
Re: Tagnavi_custom MAX SIZE?
« Reply #5 on: August 31, 2021, 10:05:22 AM »
OMG THANK YOU!!!!! that worked.
Logged

Offline chris_s

  • Member
  • *
  • Posts: 178
Re: Tagnavi_custom MAX SIZE?
« Reply #6 on: September 01, 2021, 05:19:37 PM »
Quote from: Buzkill on August 31, 2021, 09:55:22 AM
Im not quite sure what your pointing out :D is it something i can change or no?
I mean obviously i can change the value and recompile, but why did they pick that limit to begin with?

Would be interested to know how high you could push that without major problems but i have no clue what it would effect
I'm assuming RAM usage and possibly execution speed. The effect is probably going to be negligible on something like an iPod classic if you don't go crazy with the values.

Quote from: Buzkill on August 31, 2021, 10:05:22 AM
OMG THANK YOU!!!!! that worked.
Cool!
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  SOLVED Tagnavi_custom MAX SIZE?
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.341 seconds with 17 queries.