From c7c81ed95d3d23b37d78aad49dab6beddac200bc Mon Sep 17 00:00:00 2001 From: Eladash Date: Mon, 11 Sep 2023 15:03:39 +0300 Subject: [PATCH] PPU: Limit concurrent OVL files processing to 2 --- rpcs3/Emu/Cell/PPUThread.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/rpcs3/Emu/Cell/PPUThread.cpp b/rpcs3/Emu/Cell/PPUThread.cpp index fb54501c45..ee89bb4692 100644 --- a/rpcs3/Emu/Cell/PPUThread.cpp +++ b/rpcs3/Emu/Cell/PPUThread.cpp @@ -3802,6 +3802,8 @@ extern void ppu_precompile(std::vector& dir_queue, std::vector possible_exec_file_paths; + ::semaphore<2> ovl_sema; + named_thread_group workers("SPRX Worker ", std::min(utils::get_thread_count(), ::size32(file_queue)), [&] { #ifdef __APPLE__ @@ -3868,6 +3870,15 @@ extern void ppu_precompile(std::vector& dir_queue, std::vector