Memory Tracking: Optimize tracking to only use atomic writes when contested with the host GPU
This commit is contained in:
		| @@ -5,6 +5,7 @@ | ||||
|  | ||||
| #include <cstddef> | ||||
| #include <memory> | ||||
| #include <span> | ||||
| #include <string> | ||||
| #include "common/typed_address.h" | ||||
| #include "core/hle/result.h" | ||||
| @@ -15,7 +16,8 @@ struct PageTable; | ||||
|  | ||||
| namespace Core { | ||||
| class System; | ||||
| } | ||||
| class GPUDirtyMemoryManager; | ||||
| } // namespace Core | ||||
|  | ||||
| namespace Kernel { | ||||
| class PhysicalMemory; | ||||
| @@ -458,6 +460,8 @@ public: | ||||
|      */ | ||||
|     void MarkRegionDebug(Common::ProcessAddress vaddr, u64 size, bool debug); | ||||
|  | ||||
|     void SetGPUDirtyManagers(std::span<Core::GPUDirtyMemoryManager> managers); | ||||
|  | ||||
| private: | ||||
|     Core::System& system; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user