- Home /
Question by
Alex-Teme · Apr 07, 2021 at 10:15 AM ·
unity 5networkingdevice
Time.time is influenced by the performance? Can i use it in a multiplayer game?
Can i use Time.time in a multiplayer game without a server? It is the same on different devices?
Comment
Time.time is the real time since the application started. It's not frame-rate dependant (performance-dependant) but it's not going to be the same for all clients connected to the server. See this post here
Famous FPS multiplayer games such as TF2, use a global timer on the server, to sync all clients correctly. Hope that helps. @$$anonymous$$-Teme
Answer by VoidVenom · Apr 08, 2021 at 10:09 AM
Depends how you want to use it, really. According to the documentation, it is the time since the game was started so its a logical assumption that no two machines will ever have matching Time.time
values.