Archive 17/01/2023.

[Solved] Are remote events part of the fixed scene update?

Enhex

When I send a remote event is it sent with the scene replication update to the client, so they’re in sync?

cadaver

EDIT: was posting incorrect info. Remote events and scene replication are both processed at the network tickrate that’s set with Network::SetUpdateFps(). Scene replication update is sent first, followed by remote events queued up to that point. Though because part of that is ordered data, and part of it is unordered (things like position & velocity updates) some re-ordering may happen.

Enhex

Are raw network messages also part of the tickrate update?

cadaver

No. Raw messages will not be queued internally to Urho, but go directly to kNet. kNet will use its own queuing system, but generally you can assume they’re sent immediately with the next UDP packet, if possible.