When all cached events have been received?

Options
I use Cached Event with AddToRoomCacheGlobal.
By checking ActorNr == 0, I check if it is a Cached Event or not.

I want to hide the loading screen after received all cached events.
And, my game is the low frequency of communication, I don't always get new active messages soon by other players.
Is there any way to know when all Cached Events have been received?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited May 2021
    Options
    Hi @kyubuns,

    Very good question :smile:

    There is no way to tell when all cached events have been sent/received.
    So there are only workarounds.
    Maybe send an event from master client to newly joined/rejoined client and use it as a way to tell if it's a live (non cached) event which are sent after ALL cached events have been sent.
    So when the client receives the first event with ActorNr != 0 hide the loading screen.
  • kyubuns
    Options

    That looks really good.
    It's going to work. I'll try it. Thanks!