buffer_cache: Improve buffer cache locking contention (#1973)

* Improve buffer cache locking contention

* buffer_cache: Revert some changes

* clang fmt 1

* clang fmt 2

* clang fmt 3

* buffer_cache: Fix build
This commit is contained in:
TheTurtle 2025-01-02 15:39:02 +02:00 committed by GitHub
parent 6862c9aad7
commit c25447097e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 104 additions and 240 deletions

View file

@ -4,8 +4,8 @@
#pragma once
#include <memory>
#include <mutex>
#include <boost/icl/interval_map.hpp>
#include "common/spin_lock.h"
#include "common/types.h"
namespace Vulkan {
@ -35,8 +35,8 @@ private:
struct Impl;
std::unique_ptr<Impl> impl;
Vulkan::Rasterizer* rasterizer;
std::mutex mutex;
boost::icl::interval_map<VAddr, s32> cached_pages;
Common::SpinLock lock;
};
} // namespace VideoCore