Skip to content

Lockstep game (only confirmed entities) #779

Answered by cBournhonesque
OlivierCoue asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, great to hear that you like it :)

As you have to opt in either predicted or interpolated when registering component for replication (you cannot just say, "replicate/full /server to client" afaik) I was thinking of registering all my component with "interpolate/full/server to client" and then only work with the confirmed entities for the render (and actually ignore the Interpolated ones..)

You can definitely register a component without prediction/interpolation enabled! See here in the tests: https://github.com/cBournhonesque/lightyear/blob/main/lightyear/src/tests/protocol.rs#L246
Prediction/Interpolation is totally optional. However you often want to do interpolation otherwise the …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by OlivierCoue
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants