I work on an online game server. For regeneration of player's hitpoints, I consider using timers. That is, if the player is online and his HPs or mana is lower than maximum, every minute these stats are incremented. Normally, there is no more than 50-80 players online at the same time. Is a wise approach to create a timer per class (an instance of Player )that would trigger an HP++ and Mana++ events?
Another idea I had was to have a timer on the main server thread, firing every minute, and having the players to subscribe for events.
Is there something wrong with this approach and is it reasonble, performance-wise?