Jump to content
  • Advertisement
Sign in to follow this  
Angus Hollands

General prediction question

This topic is 2120 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

Hey all, I have a few questions regarding prediction and extrapolation.

So, I am running the local agent ahead of the server. Initially, I simply determined the time the inputs would be received, and stored the simulation for the current game tick (on the server) as the outcome for the tick that the inputs would be received on the server (because then the server can just send the latest state to all the clients rather than very old states). As I write this, another question comes to mind:

Firstly, the method above isn't clean. It means that the other clients will see your position for t=10 as your actual t=0 position, or rather you'll be delayed by the upstream latency on their screen. So, instead I thought perhaps I should extrapolate the remote entities to the time that my inputs would be received (not the current server time, in other words, running the remote agents ahead) then sending the inputs as normal so they'll be processed at that same tick. But then it introduces the problem at the other end. My question is this; how would i run the local agent ahead, and therefore have the inputs arrive "on time" at the server?

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!