Long story short, my gameserver is written in V8 JS (nodejs).
It's a instanced based game similar to Diablo 2. Players can join and leave games and when a player joins a game, then goes to a dungeon (specific map) the temporary monster data (chp/position/id) are loaded into the buffer.
A player can move around the map (X,Y) ordinates so I do check collision and range for melee and ranged skills so I check against that serverside for each mob to see if the player is in range.
With that said, when a player get's close to a mob, monster agro and AI attacking starts. This is where the Monster AI timer comes into play. So basically the monster's position in the buffer get's synced to that map instance/object and then sent to the client.
My question is: Do I just run one main loop to handle all positioning updates and synchronization, or do I need each game Instance Object to have their own specific timer?