Ryujinx icon indicating copy to clipboard operation
Ryujinx copied to clipboard

Caching Games List Instead of Repopulating on Boot

Open SuperOkay opened this issue 2 years ago • 10 comments

Feature Request

What feature are you suggesting?

Overview:

  • Instead of doing a games list refresh on every boot, cache the existing games list and have a manual refresh option.

Smaller Details:

  • N/A

Nature of Request:

  • Addition
    • Allowing a toggable list caching option or a automatic scan on boot

Why would this feature be useful?

It takes some time to populate a games list. It can become tedious when trying to troubleshoot a game that requires several reboots. For example, my list takes 30 seconds to populate per boot.

SuperOkay avatar Apr 19 '22 18:04 SuperOkay

I don't think an option is necessary, you could just display the cached list while scanning in the background

Jatoxo avatar Apr 22 '22 10:04 Jatoxo

I don't think an option is necessary, you could just display the cached list while scanning in the background

Could you tell me how to display a cached list? I couldn't find an option to do that. My game list was never cached, the games will pop up one by one while scanning on every boot or after stop the emulation. Thank you in advance.

ThinkTwicex2 avatar Apr 25 '22 08:04 ThinkTwicex2

@ThinkTwicex2 This is a feature request, meaning it's not an option in the emulator. They're asking for it to be included.

MetrosexualGarbodor avatar Apr 25 '22 08:04 MetrosexualGarbodor

I made a duplicate of this by accident. But needless to say, I agree with this.

Just have it cache the list and read from that on start up and then when someone launches something, just check that specific game/dlc/update and nothing else.

If the user chooses to use this option, they know that they have to manually hit the refresh tab. And if the user is actually testing or playing games instead of just collecting them, that constant refreshing is not needed and generally wasting time and can be frustrating to users who have more than a few games on it or just open and close it frequently for reasons of playing or testing.

Hate to say it, but as it stands, playing games is better to use a front end that uses command-line for many because of it.

From a UI standpoint, outside of the presentation which looks like Avalon is doing really well with. My only big requests are.

  1. This request
  2. The ability to add DLC and Updates the same way you add game directories as that scanner does already find them and can tell them apart from the games.
  3. The ability to bind hotkeys to controllers and keyboards.

Outside of those and what Avalon looks like it is already doing, from the UI standpoint, I would say Rjujinx would be pretty well set.

TomTurbine avatar Jan 19 '23 19:01 TomTurbine

2. The ability to add DLC and Updates the same way you add game directories as that scanner does already find them and can tell them apart from the games.

That is being done on #4099.

gdkchan avatar Jan 19 '23 19:01 gdkchan

2. The ability to add DLC and Updates the same way you add game directories as that scanner does already find them and can tell them apart from the games.

That is being done on #4099.

Cool, glad to hear it.

In that case, you might want to mark this as a duplicate of it. https://github.com/Ryujinx/Ryujinx/issues/3265

Made it a while back and very closely relates to that. So, can gladly close my version of it since only 1 needs to exist.

TomTurbine avatar Jan 19 '23 19:01 TomTurbine

Assign it to me, will take a look Thanks

gnisman avatar May 10 '23 13:05 gnisman

I've also noticed some optimizations that could be made around constantly reading and writing the ApplicationMetadata. The structure is small enough and could live in an in-memory cache. I could try to implement something to that effect unless you already thought of it @gnisman

patrick-hovsepian avatar May 24 '23 04:05 patrick-hovsepian

@patrick-hovsepian really busy with work so didn't have the time to start this task yet. if you want to can give it a go

gnisman avatar May 24 '23 11:05 gnisman

Opened up #5093 as a starting point to this and have something larger building off of it to address this that I'm still tweaking

patrick-hovsepian avatar May 26 '23 18:05 patrick-hovsepian