356 Commits

Author SHA1 Message Date
Henrik Rydgård
59a56d66c7 Add a "reason" argument to sleep_ms().
sleep_ms() should generally be avoided when possible. This can be used to try
to track down unnecessary sleeps by adding some logging.

This commit on its own doesn't actually add any logging.
2024-11-21 15:28:51 +01:00
AdamN
73cf77940d Merge branch 'master' into adhoc_matching 2024-09-18 07:36:38 +07:00
Herman Semenov
3c66f149d3 [Common/Core/Windows] Removed excess check pointer before delete or free() 2024-09-17 11:34:42 +02:00
Henrik Rydgård
5926886c0c Some include cleanup, delete some obsolete code 2024-07-25 14:52:41 +02:00
Henrik Rydgård
e01ca5b057 Logging API change (refactor) (#19324)
* Rename LogType to Log

* Explicitly use the Log:: enum when logging. Allows for autocomplete when editing.

* Mac/ARM64 buildfix

* Do the same with the hle result log macros

* Rename the log names to mixed case while at it.

* iOS buildfix

* Qt buildfix attempt, ARM32 buildfix
2024-07-14 14:42:59 +02:00
AdamN
9e8e43f7b7 Update NetAdhocPtp_Close 2024-06-29 00:46:44 +07:00
AdamN
2222254f3e Update NetAdhocPdp_Delete 2024-06-29 00:44:51 +07:00
Henrik Rydgård
23a253dbb5 Fix connected check 2023-12-30 21:50:22 +01:00
Henrik Rydgård
8228e59423 Check if multiplayer if connected, enforce run-behind if so 2023-12-30 21:50:22 +01:00
Herman Semenov
af41281761 [Core/Dialog/ELF/FileSystems/HLE/HW/Util] Added const reference for function params 2023-12-14 14:22:24 +03:00
AdamN
c6628ee55c An attempt to fix Tekken 6 stuck issue when exiting Lobby 2023-11-20 19:36:26 +07:00
ANR2ME
2f3e9073f6 Process incoming packets quicker whenever available to handle more than 2 players better, instead of one datagram message per 10ms sleep interval which will delay the event generated from the message by 10ms for each additional player. 2023-10-13 01:53:07 +07:00
ANR2ME
f4c2967969 Checks timeout before Pinging instead of on each message loop to give time for other event to occurs before timeout event. 2023-10-13 01:19:24 +07:00
ANR2ME
88f367f502 Process event messages quicker to prevent event queue from piling up when there are more players. Might also improve the success rate of joining process on Def Jam Fight for NY. 2023-10-13 00:21:55 +07:00
ANR2ME
5ca44f4ad9 Lets not delete the peer immediately, as handleTimeout function need the peer to be existed in order to trigger the TIMEOUT Event. 2023-10-13 00:21:54 +07:00
ANR2ME
f63ed56b4e Extending AdhocMatching's timeout by 500ms should be sufficient for players with high latency. 2023-10-13 00:21:53 +07:00
ANR2ME
abb196766d Allow BYE Event to intervene Joining process. 2023-10-13 00:21:51 +07:00
ANR2ME
270943dd59 Show socket id in Info Log when successfully created/accepted. 2023-08-26 06:43:24 +07:00
ANR2ME
3c66523f04 A quick fix for Metal Gear Acid due to adhocctl's busy state never reset to false when there are no adhocctl's handler. 2023-08-22 04:29:07 +07:00
Henrik Rydgård
eb21a2e6c9 Break out the OSD data holder from Common/System/System.h, into OSD.cpp/h 2023-06-30 17:15:49 +02:00
Henrik Rydgård
7cc8c6cea4 OSD: Add semantics, move the the OSD state to common (while keeping the renderer in the UI). 2023-06-20 14:40:46 +02:00
Brad Smith
3518abb47d Build fixes for OpenBSD 2023-05-19 22:04:36 -04:00
Henrik Rydgård
ee6234ecb6 I18N: Switch to getting categories by index instead of by string lookup
Also gets rid of the shared_ptr usage, and generally makes things nicer.

Needed for later config refactorings, good to get in early.
2023-04-07 10:35:01 +02:00
Henrik Rydgård
9e125eeba7 Remove NotifyUserMessage from Host 2023-03-25 10:32:09 +01:00
ANR2ME
e9cb37993f Fix assertion issue when playing Cars over public adhoc server. 2022-09-23 20:12:16 +07:00