Skip to content

[Perf] parallel load library games#5660

Open
MateoGonzalezLourido wants to merge 2 commits into
Heroic-Games-Launcher:mainfrom
MateoGonzalezLourido:perf-parallel-load-library-games
Open

[Perf] parallel load library games#5660
MateoGonzalezLourido wants to merge 2 commits into
Heroic-Games-Launcher:mainfrom
MateoGonzalezLourido:perf-parallel-load-library-games

Conversation

@MateoGonzalezLourido

@MateoGonzalezLourido MateoGonzalezLourido commented Jun 11, 2026

Copy link
Copy Markdown

Game library data is now loaded asynchronously, preventing the UI from blocking during startup.

Performance impact

  • Cold cache: operations that could take several seconds now complete in milliseconds.
  • Warm cache: load time is roughly the same, but the UI no longer freezes while data is being fetched.

Use the following Checklist if you have changed something on the Backend or Frontend:

  • Tested the feature and it's working on a current and clean install.
  • Tested the main App features and they are still working on a current and clean install. (Login, Install, Play, Uninstall, Move games, etc.)
  • Created / Updated Tests (If necessary)
  • Created / Updated documentation (If necessary)

@MateoGonzalezLourido MateoGonzalezLourido changed the title Perf- parallel load library games [Perf] parallel load library games Jun 11, 2026
@CommandMC

Copy link
Copy Markdown
Member

This is largely a repeat of the second part of my comment here: #5661 (comment)

  1. The UI is not driven by the Backend process, so it using synchronous code does not cause it to freeze
  2. If you're gonna rewrite things to be async, at least use actual async APIs (fs/promises in this case)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants