I have a turn based game where each player gets a fixed amount of time to play his turn. I have this turn management in server side lua script.
Currently what I have planned is to use the match loop to schedule the events, like for example if current tick is 15 and player gets 5 seconds to play then check at each match loop if the tick is equal to 20 then execute the next action.
Is this a correct approach or is there something better that I am missing?
Also, is it possible that due to heavy execution a tick can be missed (like a frame on the client-side) and the tick goes from 19 directly to 21 and 20 was skipped because things were processing?