Quantcast
Channel: Photon Server — Photon Engine
Viewing all articles
Browse latest Browse all 1557

PluginHost.CreateTimer accuracy/regularity

$
0
0
So in this post. I was running into some issues with PluginHost.CreateTimer(). Ilya mentioned that CreateTimer actually relies on System.Timer, not to mention that the plugin could be running on a heavily loaded host etc. I've found that you cannot rely on the timer firing accurately, and in fact relying on it to figure at accurate and precise intervals is a bad idea. I've seen it vary by as much as 20-50ms from the desired frame time (measured using StopWatch).

All this to ask, is this the expected behavior? It seems then that while writing an authoritative server you cannot rely on this being a regular interval, and should not attempt to set accurate server time messages to the client based on it.

Does that sound about right? Or am I misunderstanding something?

Thanks for any help?


Viewing all articles
Browse latest Browse all 1557

Trending Articles