Original Post
Should I set aside time for processing tasks such as reading and processing the network messages, AI and path finding per frame or can I follow in one big loop. Approach 1 Perform Network Tasks Check If Timer for frame has expired, If not continue AI Processing Check If Timer for frame has expired, If not continue etc.. On Expired: Render and restart loop Approach 2 Network Tasks AI Processing etc.. Render Approach 1 has been used in FPS games, but I was wondering wether you need to allocate and check the time for each function to ensure you don't get laggy games? Game genres for each approach or a custom approach under FPS, MMO and RTS.