This seems to improve Syncing.

This commit is contained in:
Charles Lohr
2004-09-06 07:21:53 +00:00
parent 323d43f828
commit dc5993a1bd
+11
View File
@@ -216,11 +216,22 @@ void StepManiaLanServer::CheckReady() {
// If All clients were ready, send the start command
if (Start == true) {
//(Test this)
//For whatever reason we need to pause in a way
//that will not use a lot of CPU.
//When you try playing the music as soon as it's loaded
//it will not always play ... immediately
for (x = 0; x < NUMBERCLIENTS; x++)
Client[x].clientSocket.blocking = true;
usleep ( 2000000 );
for (x = 0; x < NUMBERCLIENTS; x++)
if (Client[x].Used == true) {
SendValue(131, x);
Client[x].Ready = false;
}
for (x = 0; x < NUMBERCLIENTS; x++)
Client[x].clientSocket.blocking = false;
//After we start the clients, clear each client's hasSong.
ClearHasSong();
}