C# Timers for game development
Posted
by
Valentin
on Game Development
See other posts from Game Development
or by Valentin
Published on 2011-02-26T14:55:23Z
Indexed on
2011/02/26
15:32 UTC
Read the original article
Hit count: 246
Hi, all!
I want to find out the best way of creating time based events in games. Lets talk for example about Texas Holdem Poker. Server can handle thousands of tables and in every table we have timers: turn timer, hold seat timer and so on.
What is the best way of timers realization for this purpose?
Is System.Timers.Timer class can handle this or it will be more reasonable to create a separate thread with sorted time queue (for example an ascending sorted list with int values which represent time in ms remained)?
Thanks in advance, Valentin
© Game Development or respective owner