Extending AdhocMatching's timeout by 500ms should be sufficient for players with high latency.

This commit is contained in:
ANR2ME committed 2023-10-13 00:21:53 +07:00
1 parent abb196766d
commit f63ed56b4e
1 file changed
+1 -1
+1 -1
View File
@@ -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<SceNetEtherAddr, u16_le>();