Hi all,
I'm trying to draw a timer on the HUD. It needs to be very accurate as it displays microseconds.
Basically the deal is that I set a replicated variable to Level.TimeSeconds in my GameReplicationInfo and then send it to clients. The clients are basically printing out (Level.TimeSeconds - ReplicatedTimerVar).
Now that would be fine, except that Level.TimeSeconds is the time since the game started for that machine. And so for example, when a client joins 10 seconds later their timer will always be out by those 10 seconds.
Is there such thing as an accurate time variable that is constant between all machines? Or must I work around this another way..?
cheers!
I'm trying to draw a timer on the HUD. It needs to be very accurate as it displays microseconds.
Basically the deal is that I set a replicated variable to Level.TimeSeconds in my GameReplicationInfo and then send it to clients. The clients are basically printing out (Level.TimeSeconds - ReplicatedTimerVar).
Now that would be fine, except that Level.TimeSeconds is the time since the game started for that machine. And so for example, when a client joins 10 seconds later their timer will always be out by those 10 seconds.
Is there such thing as an accurate time variable that is constant between all machines? Or must I work around this another way..?
cheers!