Luma3DS LayeredFS lag issue (Dragon Quest 8)

Discussion in '3DS - Flashcards & Custom Firmwares' started by 8BitWalugi, Jun 1, 2017.

  1. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    Hi there,
    So I'm trying to use Luma's LayeredFS to play my cart copy of DQ8 with the Japanese orchestral soundtrack (yet keeping the English voices). The issue I'm coming up with is that every time the game is loading music/voice (off SD and cart), it starts to freeze and jump intermittently. I've tried several different methods (Just music files, music+voice files, a packed romfs file, the entire game's romfs but with orchestral music, etc) with no luck.
    I was wondering if anyone's experienced this issue before, and if there's a fix. Thanks in advance

    EDIT: Just figured I'd add, when I used a romfs file (luma\titles\000400000018F200\romfs (just file, no extension) nothing happened. No music replacement at all.
     
    Last edited by 8BitWalugi, Jun 1, 2017
  2. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    I hate to do this, but uh, bump? I don't know if it's an issue other games have too but it might be helpful to look into.
     
  3. nl255

    nl255 GBAtemp Addict

    Member
    2,602
    367
    Apr 9, 2004
    Did you report it as an issue on Luma's github page?
     
  4. sks316

    sks316 GBAtemp's Mewtwo

    Member
    1,615
    866
    Nov 28, 2013
    United States
    Alola
    This is an issue with LayeredFS itself and not Luma. It tends to lag and there's nothing we can do about it. Sorry!
     
  5. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    Hm, damn. Any idea how hard it would be to make an NTR plugin to swap the audio files?
     
  6. sks316

    sks316 GBAtemp's Mewtwo

    Member
    1,615
    866
    Nov 28, 2013
    United States
    Alola
    That would be no use. Your best bet is to rebuild the CIA of the game with the music files replaced.
     
  7. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    I'll probably end up doing that. Damn
     
  8. Aurora Wright

    Aurora Wright GBAtemp Advanced Maniac

    Member
    1,544
    4,099
    Aug 13, 2006
    Italy
    Loading files from SD takes longer than the romfs, especially if it's a lot of files (modern SDs have very high read and write speeds but crappy latency/random access time). Maybe reformatting with a large cluster size (I use 64K) would help
     
  9. nl255

    nl255 GBAtemp Addict

    Member
    2,602
    367
    Apr 9, 2004
    I could have sworn I have seen several posts about NTR being better at not having lag (or as much lag) as Luma's layeredfs. Is that no longer the case?
     
  10. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    Hrm, I'll try that out and report back. It sounds like it'll help

    Edit: Okay, formatted to 64kb cluster usinh GodMode9. Time to copy my stuff back on, eta 10 hours... (That's what I get for using a 64GB micro SD card)

    Edit 2: Windows was lying, 1 hour to go
     
    Last edited by 8BitWalugi, Jun 1, 2017
  11. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    Alright finally finished.

    The good news is I didn't mess up my SD card. The bad news is is that nothing changed. The game's still jumping when loading BGM off SD.
     
  12. Aurora Wright

    Aurora Wright GBAtemp Advanced Maniac

    Member
    1,544
    4,099
    Aug 13, 2006
    Italy
    I didn't really compare but Luma's approach can't really be improved, literally all it does is mounting SD once and then use fsOpenFileDirectly every time the game tries to open a file from SD...
     
  13. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    I used NTR to play Dragon Quest 7 with the orchestral soundtrack with no issue. DQ8 on the other hand is loading the voice files from cart, with music from SD. I did test voice files on the SD but still had the same issue. How do I make a plugin for NTR to test this approach? Or alternatively, would creating a romfs file help?
     
  14. sks316

    sks316 GBAtemp's Mewtwo

    Member
    1,615
    866
    Nov 28, 2013
    United States
    Alola
    I don't believe LayeredFS is compatible with romfs files.
     
  15. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    I went and re-structured my sound files, and to my surprise it worked perfectly!

    All I did was put the bmg off SD card, turns out the voice files were also there.

    So to recap
    64kb cluster+orchestral BGM files (no voice) = smooth gameplay experience off cartridge

    Hopefully this helps anyone in the future that might encounter this issue
     
  16. PabloMK7

    PabloMK7 Red Yoshi! ^ω^

    Member
    1,807
    1,113
    Feb 21, 2014
    Spain
    Yoshi's Island
    You could give OnionFS (NTR plugin) a try, but since it does almost the same thing as luma, you will most likely experience the same problem.
     
  17. 8BitWalugi
    OP

    8BitWalugi Taiyohhhhhh!

    Member
    3,428
    274
    Mar 22, 2008
    Australia
    Side 7
    No no I just said I solved it. I was loading voice and orchestral BGM on 64kb cluster and gettting lag.

    32kb cluster (assumed previous SD card cluster type)
    -BGM only, romfs folder = lag
    -BGM+voice, romfs folder = lag
    -BGM romfs file = didn't work

    64kb cluster (new SD card cluster type)
    -BGM only = worked perfectly
    -BGM+voice = lag
     
    Last edited by 8BitWalugi, Jun 2, 2017
    PabloMK7 and sks316 like this.