Page 1 of 1

Lagging on Unity 3d. (ObjectMovement Example).

Posted: 23 Jan 2013, 17:21
by h.hassanalikhan
Lagging on Unity 3d. (ObjectMovement Example).
If we run it on a local server and try to move more than 2 objects simultaneously it become very slow.
How to resolve this issue?

Re: Lagging on Unity 3d. (ObjectMovement Example).

Posted: 24 Jan 2013, 08:24
by Lapo
I have moved your post under the proper section --> SFS2X Client API --> Unity

Re: Lagging on Unity 3d. (ObjectMovement Example).

Posted: 24 Jan 2013, 08:25
by Lapo
What do you mean by slow, does the rendering (frame rate) drops?
Are you running two examples on the same machine? If so, check your CPU usage. Maybe it's maxed out.

Anyways, running two or more instances locally should not cause any slow downs unless, as I said, you're using too much CPU.

Re: Lagging on Unity 3d. (ObjectMovement Example).

Posted: 27 Jan 2013, 22:27
by ThomasLund
Sending is controlled also by the update frequency of the FixedUpdate - so make certain you dont change that too often.

And if both clients run on same machine with 1 being editor, then we've seen issues as well - not even network related. The game running in the editor simply eats a lot of resources.

Best
Thomas