The planned player count for my game is 16 players, potentially if every player is in some sort of grass at once I’ll be running a while loop than runs every 1 second.
Every second it’ll check to see if the player is moving (by checking move direction), if they are then it checks if the player is in a battle (by checking their battle Id, if it’s a number they’re in a battle). If they are in a battle nothing happens.
Potentially there could be 16 of these loops going on the server at the same time.
Are the calculations here enough to cause lag? Sorry if this is a question that’s not able to be answered but I thought I’d ask instead of worrying about it all the time).