aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/query_cache
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/query_cache')
-rw-r--r--src/video_core/query_cache/query_cache.h4
-rw-r--r--src/video_core/query_cache/query_cache_base.h9
2 files changed, 8 insertions, 5 deletions
diff --git a/src/video_core/query_cache/query_cache.h b/src/video_core/query_cache/query_cache.h
index 6e084cc079..3aeeb8dcab 100644
--- a/src/video_core/query_cache/query_cache.h
+++ b/src/video_core/query_cache/query_cache.h
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
@@ -10,7 +10,7 @@
#include <deque>
#include <memory>
#include <mutex>
-#include <unordered_map>
+#include <ankerl/unordered_dense.h>
#include <utility>
#include "common/assert.h"
diff --git a/src/video_core/query_cache/query_cache_base.h b/src/video_core/query_cache/query_cache_base.h
index 00c25c8d63..242e24388f 100644
--- a/src/video_core/query_cache/query_cache_base.h
+++ b/src/video_core/query_cache/query_cache_base.h
@@ -1,3 +1,6 @@
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
+// SPDX-License-Identifier: GPL-3.0-or-later
+
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
@@ -7,7 +10,7 @@
#include <mutex>
#include <optional>
#include <span>
-#include <unordered_map>
+#include <ankerl/unordered_dense.h>
#include <utility>
#include "common/assert.h"
@@ -157,7 +160,7 @@ protected:
}
}
- using ContentCache = std::unordered_map<u64, std::unordered_map<u32, QueryLocation>>;
+ using ContentCache = ankerl::unordered_dense::map<u64, ankerl::unordered_dense::map<u32, QueryLocation>>;
void InvalidateQuery(QueryLocation location);
bool IsQueryDirty(QueryLocation location);
@@ -165,7 +168,7 @@ protected:
void RequestGuestHostSync();
void UnregisterPending();
- std::unordered_map<u64, std::unordered_map<u32, QueryLocation>> cached_queries;
+ ankerl::unordered_dense::map<u64, ankerl::unordered_dense::map<u32, QueryLocation>> cached_queries;
std::mutex cache_mutex;
struct QueryCacheBaseImpl;