Original Post
I'm not sure whether this should be in Game Programming or Web Development, hope this is the good one Games like Planetarion and StarSphere often have a tick-based system. Every tick, which could be hourly for example, the new game state is calculated. Now I'm wondering what's the best way to implement such a system. Basically, I've found three possibilities: 1. Hourly cron job 2. A check at each page request to see whether it's time for a new tick 3. Some kind of program that sleeps for an hour and then does stuff< What's the best option, and why? Currently, I'm tempted to go for #2, but I'm not sure that it doesn't have any serious drawbacks. Thanks!