From b2835b494b9fa938199f8b596e4680a0553ce551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Wed, 2 Oct 2024 17:17:11 +0200 Subject: [PATCH] ps5 updates --- WickedEngine/wiHelper.cpp | 4 ++++ WickedEngine/wiJobSystem.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/WickedEngine/wiHelper.cpp b/WickedEngine/wiHelper.cpp index 16579617e1..7ae09b49cf 100644 --- a/WickedEngine/wiHelper.cpp +++ b/WickedEngine/wiHelper.cpp @@ -1484,6 +1484,10 @@ namespace wi::helper mem.process_physical = l * PAGE_SIZE; // there doesn't seem to be an easy way to determine // swapped out memory +#elif defined(PLATFORM_PS5) + wi::graphics::GraphicsDevice::MemoryUsage gpumem = wi::graphics::GetDevice()->GetMemoryUsage(); + mem.process_physical = mem.total_physical = gpumem.budget; + mem.process_virtual = mem.total_virtual = gpumem.usage; #endif // defined(_WIN32) return mem; } diff --git a/WickedEngine/wiJobSystem.cpp b/WickedEngine/wiJobSystem.cpp index 3791f2ad87..8301ae914d 100644 --- a/WickedEngine/wiJobSystem.cpp +++ b/WickedEngine/wiJobSystem.cpp @@ -309,7 +309,7 @@ namespace wi::jobsystem #undef handle_error_en #elif defined(PLATFORM_PS5) - wi::jobsystem::ps5::SetupWorker(worker, threadID); + wi::jobsystem::ps5::SetupWorker(worker, threadID, core, priority); #endif // _WIN32 } }