Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement movement prediction #425

Open
tonihele opened this issue Dec 12, 2022 · 0 comments
Open

Implement movement prediction #425

tonihele opened this issue Dec 12, 2022 · 0 comments

Comments

@tonihele
Copy link
Owner

Implement movement prediction. Currently our steering and animation systems run on a separate thread with very high intervals for smooth movement. It is very heavy and poses some challenges on multithreading. We are quite ok with multithreading, but not 100% secure.

The biggest thing is perhaps is that this is not the correct way of doing things. Especially looking at multiplayer aspect. And creature possession.

I propose the following:

  • Have the animation and movement to be part of the single game loop that we already have
  • Client should have movement prediction (works on its own FPS and thread, probably the render thread)

This should be fairly straight forward to implement. The only thing I'm kinda thinking is that somehow we would need to probably know on the client side, that what object is static and what is not. There are many objects on the map and only some are really moving. I'm not entirely sure at this point that is this going to be an issue or not.

And another thing is our steering. It is a bit wonky... So how easy it is to linearly interpolate / predict? I mean it should be... right? But might need so adjustments to the steering itself which has proven to be quite challenging...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant