mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 10:43:44 +01:00
GameInfoCache: Prioritize loads, so launching doesn't wait behind search
Type-to-search asks for the title of every game in the list, queueing a load for each, and launching a game whose info wasn't loaded yet then blocked until the whole queue had drained. Search's loads are now LOW, and launching asks at HIGH, which queues its own load rather than wait for a pending one. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
ae460c9e1a
commit
3aaea4c0f9
4 files changed
+27
-10
No files matched your search
+2
-1
@@ -473,7 +473,8 @@ void GameButton::Draw(UIContext &dc) {
|
||||
}
|
||||
|
||||
std::string GameButton::DescribeText() const {
|
||||
std::shared_ptr<GameInfo> ginfo = g_gameInfoCache->GetInfo(nullptr, gamePath_, GameInfoFlags::PARAM_SFO);
|
||||
// LOW: search calls this for every game in the list, which mustn't hold up the visible ones.
|
||||
std::shared_ptr<GameInfo> ginfo = g_gameInfoCache->GetInfo(nullptr, gamePath_, GameInfoFlags::PARAM_SFO, nullptr, GameInfoFlags::EMPTY, TaskPriority::LOW);
|
||||
if (!ginfo->Ready(GameInfoFlags::PARAM_SFO))
|
||||
return "...";
|
||||
auto u = GetI18NCategory(I18NCat::UI_ELEMENTS);
|
||||
|
||||
Reference in new issue
Block a user