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

Add Delay-based Netcode #27

Open
rameshvarun opened this issue Apr 10, 2021 · 1 comment
Open

Add Delay-based Netcode #27

rameshvarun opened this issue Apr 10, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@rameshvarun
Copy link
Owner

Lockstep netcode allows you to synchronize a deterministic game over the network even if you cannot serialize / restore it. This is used in the physics demo. However lockstep is not really practical, since a stall-free experience requires latency < timestep.

Delay-based netcode adds input delay to allow additional time for inputs to resolve.

I think the best move is to add this as a new class. Trying to implement delay as a parameter to LockstepNetcode could make the lockstep code too complicated.

@rameshvarun rameshvarun added the enhancement New feature or request label Apr 10, 2021
@ryanodd
Copy link

ryanodd commented May 16, 2022

I think input delay would also be useful to apply to rollback netcode, in my opinion about 2 frames of input delay usually makes rollback a better experience. Without a few frames of input delay, player will see more 'warping'.

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

No branches or pull requests

2 participants