Max Limit Looping every 1 Second ?
#1

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:

PHP Code:
public OnGameModeInit()
{
    
SetTimer("ClockTimerSystem",1000,true);
    return 
1;
}
forward ClockTimerSystem();
public 
ClockTimerSystem()
{
    
//code of updating time ..
    // ..
    // ..
    // ..
    // ..
    
    
for(new 0< ??; i++) // I'm checking for about 400 variables
    
{
        if(
Variable[i] == 0) continue;
        
        
// Big Code includes (UPDATE statement of MySQL)
        // ..
        // ..
        // ..
        
    
}
    return 
1;

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 ?
Reply


Messages In This Thread
Max Limit Looping every 1 Second ? - by Juvanii - 12.12.2017, 07:27
Re: Max Limit Looping every 1 Second ? - by RoboN1X - 12.12.2017, 07:46
Re: Max Limit Looping every 1 Second ? - by Juvanii - 12.12.2017, 07:53
Re: Max Limit Looping every 1 Second ? - by Juvanii - 12.12.2017, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)