Lagging on Unity 3d. (ObjectMovement Example).

Post here your questions about the Unity / .Net / Mono / Windows 8 / Windows Phone 8 API for SFS2X

Moderators: Lapo, Bax

h.hassanalikhan
Posts: 2
Joined: 07 Sep 2012, 22:40

Lagging on Unity 3d. (ObjectMovement Example).

Postby h.hassanalikhan » 23 Jan 2013, 17:21

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?
User avatar
Lapo
Site Admin
Posts: 21081
Joined: 21 Mar 2005, 09:50
Location: Italy

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

Postby Lapo » 24 Jan 2013, 08:24

I have moved your post under the proper section --> SFS2X Client API --> Unity
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 21081
Joined: 21 Mar 2005, 09:50
Location: Italy

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

Postby Lapo » 24 Jan 2013, 08:25

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.
Lapo

--

gotoAndPlay()

...addicted to flash games
ThomasLund
Posts: 1297
Joined: 14 Mar 2008, 07:52
Location: Sweden

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

Postby ThomasLund » 27 Jan 2013, 22:27

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
Full Control - maker of Unity/C# and Java SFS API and indie games
Follow on twitter: http://twitter.com/thomas_h_lund

Return to “SFS2X C# API”

Who is online

Users browsing this forum: No registered users and 3 guests