OPL with prototype game list cache

Discussion in 'Open PS2 Loader (OPL)' started by sp193, Jan 6, 2019.

  1. 113
    119
    72
    Tupakaveli

    Tupakaveli VIP PSX-Place Supporter

    Joined:
    Sep 19, 2017
    Messages:
    113
    Likes Received:
    119
    Trophy Points:
    72
    Gender:
    Male
    Location:
    Australia
    Don't burn yourself out :-p

    I was going to mention some problems I have with HDD Manager in wLE but this can wait, you've been doing a lot lately and I don't want to overload you with extra work lol.

    I found the version where it got broken but even that has issues.
     
    sp193 likes this.
  2. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    I quote. No one could blame on you if you take a little vacation, you did a lot in a very small time. This OPL_CACHE function is awesome, just born and already perfect :D

    What problem?? I'll see if it happens to me too
     
  3. 9
    1
    7
    Vedita BR

    Vedita BR Forum Noob

    Joined:
    Aug 5, 2018
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    7
    Gender:
    Male
    Occupation:
    Caregiver, student and gamer?
    Location:
    Brazil
    Home Page:
    Damn I am too late for prototype #4. Game list cache is really sweet! also, new APPS scheme seems more practical too, sad that OPL proto #4 is down, i couldnt test it. But is really nice, I wouldnt mind moving all my ELFs to the APPS folder, also i read that opl_apps,conf is still supported, so its good for people who dont want to mess with their apps list, which is not my case. I hope these changes are merged in main OPL repo and available through OPL beta builds bot.

    Thanks for the plenty of improvements to OPL )
     
    Last edited: Jan 10, 2019
    Tupakaveli likes this.
  4. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    Yes, having a opl_apps.cfg file OPL should just read it as Always. Btw there's a bug that cause to launch a different app (for now it's just better to use OPNPS2LD-GAMELIST-3 for the old app method).
     
    Last edited: Jan 10, 2019
    jolek and Vedita BR like this.
  5. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    Summing up, OPNPS2LD-GAMELIST-5, should have these modifications:

    [1]. remake the HDD scanning for games partition like it was in OPNPS2LD-GAMELIST-3 ('cause from my and @Tupakaveli test, it was faster building the list and making the games.bin file).

    [2]. Make the IGR function working like this OPL version:
    this way, OPL will never fail to correctly load the games.bin even with IGR path set to OPL.

    [3]. solve the bug about retro-compatibility with opl_apps.cfg

    So OPNPS2LD-GAMELIST-5 will be perfect in itself. Then there will be "just" to continue solving the general OPL compatibility problems (not related to this version in particular).
     
  6. 113
    119
    72
    Tupakaveli

    Tupakaveli VIP PSX-Place Supporter

    Joined:
    Sep 19, 2017
    Messages:
    113
    Likes Received:
    119
    Trophy Points:
    72
    Gender:
    Male
    Location:
    Australia
    It was only faster creating the games.bin by a couple of seconds. Reading games.bin was the same.

    If it's better that the HDD doesn't have to scan across its platters twice then I'm fine with waiting an extra couple of seconds. How many times are you going to create the games.bin anyway?
     
  7. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    Exactly

    I think that something isn't right. How can it be faster scanning twice than scanning one time?? Probably there's a bug in this modification, otherwise it should be faster or at least equal. For this I think that is better to remain with the "traditional" method (or try to find what's wrong).

    Just a thought.
     
  8. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    @sp193
    I tested some games from SMB. I seem to notice that after the games.bin has been created, the list loads faster, even with just 8/10 games.

    I tried deleting the ID prefix from the games, but this way OPL have problems listing some games:

    Immagine.jpg

    Immagine1.jpg

    You see FFXII i.e. have a incomplete ID. Indeed it doesn't show up in the list for many times. But a certain point (after some Ps2 restting) it showed up (I don't know why…) in the list.
    Ace Combat instead, never showed up in the list. I had to rename it with the ID prefix.
     
    TnA likes this.
  9. 573
    990
    147
    sp193

    sp193 Developer

    Joined:
    Oct 13, 2014
    Messages:
    573
    Likes Received:
    990
    Trophy Points:
    147
    Location:
    Singapore
    Home Page:
    Hold on, so it was actually faster? Anyway, I already deleted the commit.

    But yeah, it's not a big difference. I was just wondering if such a minor modification could drastically improve things, even though it seemed unlikely.

    The modification was very simple. It could be something like the heads having to change tracks & wait for the sector to come by. But who knows, since we lack the necessary equipment to measure performance. @[email protected]

    But I don't want to be bothered with this anymore, so I have deleted it.

    I hope you did not re-save that file with Notepad. It's not a text file.
    The cache is a copy of the game list from OPL's memory, which is why it's very unlikely for it to not work.

    If the game could not be listed without you manually specifying the boot filename manually, even before this feature was added, then the problem is with how OPL parsed SYSTEM.CNF. I remember has some problem, but it was never fixed.

    Since it could be that it works fine, but the problem is that it does not have the same traits as the code from OSDSYS, I have replaced the code with a version similar to the official function: https://www.sendspace.com/file/ik8tr2
     
    Peppe90 likes this.
  10. 113
    119
    72
    Tupakaveli

    Tupakaveli VIP PSX-Place Supporter

    Joined:
    Sep 19, 2017
    Messages:
    113
    Likes Received:
    119
    Trophy Points:
    72
    Gender:
    Male
    Location:
    Australia
    For me, OPNPS2LD-GAMELIST-3 was faster by ~4 seconds. I think for @Peppe90 it was ~1 second faster lol.

    Not a huge deal IMO.

    You've cut the loading time down to 1/3 for HDD users, that's pretty amazing.
     
    Last edited: Jan 14, 2019 at 4:36 AM
    Peppe90 and TnA like this.
  11. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    I don't have edited it in any way, just opened (with the notepad). I removed/added the id prefix on the ISO names of my games.

    Sorry I shouldn't have report it here. I know it's absolutely not correlated with the cache list function, it's a OPL old problem.
    Btw I could have some insight into it, being able to read how OPL list the games :)

    So I should try if this version correctly list the games (from SMB) even without ID prefix on games isos?? (it's a OPNPS2LD-GAMELIST version or a normal OPL??).
     
  12. 551
    258
    72
    TnA

    TnA Member

    Joined:
    Jul 1, 2018
    Messages:
    551
    Likes Received:
    258
    Trophy Points:
    72
    Gender:
    Male
    Location:
    Germany --> Saxony
    That matches the definition of editing PERFECTLY and it's not semantics either... :P

    Just because YOU haven't changed anything else does not mean that THE EDITOR hasn't changed something for example something it would interpret as line-breaks and i.e. convert/change it from *nix to DOS/Windows Line-Breaks...
     
  13. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    I don't edited nothing in the games-bin file, I just opened and closed it, as I said.

    I edited my games names removing the IDs

    Immagine.jpg
     
  14. 551
    258
    72
    TnA

    TnA Member

    Joined:
    Jul 1, 2018
    Messages:
    551
    Likes Received:
    258
    Trophy Points:
    72
    Gender:
    Male
    Location:
    Germany --> Saxony
    Oh, I got you wrong before!
    Alright, just the name of the iso itself... But well then the cache-file is invalid and you have to refresh it.

    Let's hope the new merge will get rid of any pending/remaining SYSTEM.CNF-related issues!
     
  15. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    Actually it seemed that from SMB there was the auto-refresh enabled by default… But I don't know on which version (I tested with both OPNPS2LD-GAMELIST-3 and OPNPS2LD-GAMELIST-4). When I refreshed (I done this many times with select button) the list doesn't changed (I mean, it refreshed, but could Always list the same games).
    At a certain point OPL (I don't remember which version…) could list FFXII, but it was after a Ps2 reset (by this I think the auto-refresh was enabled…).

    For me it's not a problem to name the ISOs with the ID prefix, when playing from SMB (I play from iHDD the most).
    But sure, it'd be more comfortable for many people to just not have to worry about iso names.
     
  16. 248
    71
    32
    Peppe90

    Peppe90 Member

    Joined:
    Dec 7, 2018
    Messages:
    248
    Likes Received:
    71
    Trophy Points:
    32
    Gender:
    Male
    I still have to try it with SMB. Meanwhile I tried it (and the official 1258 release too) from iHDD and this what I noticed:

    - All problems with Shawn Palmers and Ferrari Challenge definitely solved! :encouragement:

    - the games.bin is read correctly IGResetting directly to OPL with any game. It takes 3/4 seconds more to load the list after IGR compared to previous OPNPS2LD-GAMELIST (only after IGR, on a first boot, or exiting/re-entering OPL, it takes the usual -5 secs).
    Btw if it's the price for solving the IGR problems, it's welcome!!

    - retrocompatibility with opl_apps.cfg still doesn't work: I have all my apps correctly listed in the OPL apps page as always, but when I try to launch one, it appear this error message: "APPSUPPORT: cannot find mode for path, please report"
     
    TnA likes this.

Share This Page