mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Extending AdhocMatching's timeout by 500ms should be sufficient for players with high latency.
This commit is contained in:
1 parent
abb196766d
commit
f63ed56b4e
1 file changed
+1
-1
@@ -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>();
|
||||
|
||||
|
||||
Reference in new issue
Block a user