by pests · 5y ago · 0 comments
The sentence right before your first quote answers your question -
"Note that the client code doesn't "instantiates" the scene explicitly. However, since the scene is marked for replication [... your quote]"
In this case its sending the scene for the clients to instantiate.
They gave an example of messaging as well - RPC.
And for messaging, I wrote "Why is integrating state synchronization with messaging a useful thing?" but I guess it would have been clearer if I asked "Why is integrating state synchronization with RPC a useful thing?"... what are some examples of what that's used for?
I believe you want state sync and RPC integrated because you want a meaningful order to events.
Say a bomb exploding is done via an RPC call for legacy reasons and now position is via state sync. Youd want to ensure the explosion was ordered in respect to position updates to ensure it goes off in the right place.