From f63ed56b4e242f1ecd7556ec8fe06686ce6abb5a Mon Sep 17 00:00:00 2001 From: ANR2ME Date: Mon, 9 Oct 2023 22:19:50 +0700 Subject: [PATCH] Extending AdhocMatching's timeout by 500ms should be sufficient for players with high latency. --- Core/HLE/sceNetAdhoc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/sceNetAdhoc.cpp b/Core/HLE/sceNetAdhoc.cpp index 2e593ffec2..e9d8e73dd2 100644 --- a/Core/HLE/sceNetAdhoc.cpp +++ b/Core/HLE/sceNetAdhoc.cpp @@ -4935,7 +4935,7 @@ static int sceNetAdhocMatchingCreate(int mode, int maxnum, int port, int rxbufle if (keepalive_int < 1) context->keepalive_int = PSP_ADHOCCTL_PING_TIMEOUT; else context->keepalive_int = keepalive_int; // client might set this to 0 context->keepalivecounter = init_count; // used to multiply keepalive_int as timeout context->timeout = (((u64)(keepalive_int)+(u64)rexmt_int) * (u64)init_count); - context->timeout += adhocDefaultTimeout; // For internet play we need higher timeout than what the game wanted + context->timeout += 500000; // For internet play we need higher timeout than what the game wanted context->handler = handler; context->peerPort = new std::map();