- Home /
Tell me about timing in Unity
Hello, I working on a project, it will be a online game and I have to create and synchronize two timers, server's timer (.Net) and client's timer (Unity3D). I already tried System.Timers.Timer, System.Threading.Timer but that timers working differently in .Net -project and Unity3D. For example: I have created first timer in .Net and tell him - "you must increment variable and display its value every 50ms". Same things i have created in Unity3D, but when I observe values of variables I can see that timer in Unity3D working faster then timer in .Net. So why? And one more thing. I thought that Stopwatch.Frequency is responsible for timing or something like that, but in .Net Stopwatch.Frequency equals to my processor frequency (around 3.200.000) but in Unity3D Stopwatch.Frequency equals to 10.000.000 and i think that is why timers so different in Unity3D and in .Net. So how i can make two identical timers in Unity3D and .Net ? Thanks. p.s. sorry for my bad English, but you are my last hope
Your answer
Follow this Question
Related Questions
how well does unity work for turn-based game time-type? 3 Answers
Two-mode jumping 1 Answer
rotation synced to dspTime? 0 Answers
Visualize audio spectrum with delay 0 Answers