From c76a3366ec45a5b566bf9b8248232a88f18e3729 Mon Sep 17 00:00:00 2001 From: Elad <18193363+elad335@users.noreply.github.com> Date: Sun, 7 Sep 2025 13:03:36 +0300 Subject: [PATCH] Network: Increase P2P listener thread rest duration (#17474) 1 milisecond is not enough time for WSAPoll to be CPU time efficient, 5 miliseconds seems to address it. --- rpcs3/Emu/Cell/lv2/sys_net/network_context.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_net/network_context.cpp b/rpcs3/Emu/Cell/lv2/sys_net/network_context.cpp index 377da5bf31..18a1c2a935 100644 --- a/rpcs3/Emu/Cell/lv2/sys_net/network_context.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_net/network_context.cpp @@ -295,7 +295,8 @@ void p2p_thread::operator()() } #ifdef _WIN32 - const auto ret_p2p = WSAPoll(p2p_fd.data(), num_p2p_sockets, 1); + // WSAPoll seems to consume a lot of CPU time relative to its waiting duration, upping the timeout solves it + const auto ret_p2p = WSAPoll(p2p_fd.data(), num_p2p_sockets, 5); #else const auto ret_p2p = ::poll(p2p_fd.data(), num_p2p_sockets, 1); #endif