Dears ,
I wanna know what is the max number can i loop in one second ?
Situation:
I have created a system which is based on the game-time-in-seconds such as:
Everything is working fine, but the system stills new and most of the variables are equal to 0
I don't know if this will cause a lag to the server if the 400 variables were equal to 1
Do you have any advice, or leaving it like this ?
I wanna know what is the max number can i loop in one second ?
Situation:
I have created a system which is based on the game-time-in-seconds such as:
PHP Code:
public OnGameModeInit()
{
SetTimer("ClockTimerSystem",1000,true);
return 1;
}
forward ClockTimerSystem();
public ClockTimerSystem()
{
//code of updating time ..
// ..
// ..
// ..
// ..
for(new i = 0; i < ??; i++) // I'm checking for about 400 variables
{
if(Variable[i] == 0) continue;
// Big Code includes (UPDATE statement of MySQL)
// ..
// ..
// ..
}
return 1;
}
I don't know if this will cause a lag to the server if the 400 variables were equal to 1
Do you have any advice, or leaving it like this ?