Sign in to follow this  

Sharing Resources Per Task For Frames

This topic is 3629 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
Do timings only if you require them, but still probably requires multiple threads. Because if you want to wait for something it is probably waiting of some other process to end. :)

Share this post


Link to post
Share on other sites

This topic is 3629 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this