I’m having a problem syncing an event right on time. Can this somehow be reduced/resolved?
The problem occures as well when a Unityeditor on PC is the server. Strangely, the PC as a client is always right on time, no lag there. Is it a android/mobile/powersafe/wifi issue? This happens in a local wifi. Im using LocalDiscovery to connect. Ping shows 3-8ms.
code is pretty straightforward:
//This is called from UI Button
[ClientRpc]
public void RpcShowTestImage() {
if (isServer)
return;
if (!testImage)
testImage = FindObjectOfType<TestImage>();
testImage.ShowTestImage();
}
public void ShowTestImage() {
transform.position = Camera.main.transform.position + Camera.main.transform.forward * 1.5f;
transform.rotation = Camera.main.transform.rotation;
r.enabled = true;
timer = 3;
}
And here’s my networkmanager
Hope someone can help.
