game-loop

Algorithm for Client-Server Games

For stand alone games, the basic game loop is (source: wikipedia) while( user doesn't exit ) check for user input run AI move enemies resolve collisions draw graphics play sounds end while But what if I develop client-server-like games, like Quake, Ragnarock, Trackmania, etc, What the Loop/Algorithm for client and the ser...

Should I always use a Gaming Loop in a Silverlight Game?

I have read about using CompositionTarget.Rendering Timer for the primary gaming loop in silverlight. To be used for hit testing and general game logic as would be done in any language. This said I was wondering is it best to move objects around inside this x pixels at a time (as a game in any other language) or can I utilise silverligh...

Object movement choppy when frame rate is capped

I've been having some trouble with choppy movement of objects in a game. If the frame rate isn't capped, the game runs smooth. If I cap the frame rate at say, 60 fps, the movement is choppy. An object's movement looks like this... m_distance += m_speed * GetFrameTime() Where speed is in pixels per second, and GetFrameTime() returns...