This seems to improve Syncing.
This commit is contained in:
@@ -216,11 +216,22 @@ void StepManiaLanServer::CheckReady() {
|
|||||||
|
|
||||||
// If All clients were ready, send the start command
|
// If All clients were ready, send the start command
|
||||||
if (Start == true) {
|
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++)
|
for (x = 0; x < NUMBERCLIENTS; x++)
|
||||||
if (Client[x].Used == true) {
|
if (Client[x].Used == true) {
|
||||||
SendValue(131, x);
|
SendValue(131, x);
|
||||||
Client[x].Ready = false;
|
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.
|
//After we start the clients, clear each client's hasSong.
|
||||||
ClearHasSong();
|
ClearHasSong();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user