Hey everybody, New problem here,
I build some game, And the problem is that when somebody join to my room (Server) I see him on lags’s.
That means that he is stack when he is move his Camera every second (Really!).
nad I can’t see his “Sparks” When he is shooting on something.
And when he is move forward, backward, left, right I see him stack too (Vove with lag’s).
Whan I need to do to fix the lags and the stacks?
What is it “Network View”?
I need to use it somewhere?
TNX for helping.
Hi
I have the same problem and I have asked here already for that. But do not worry it’s not bad if you ask again.
Here’s the link:
http://forum.unity3d.com/threads/91735-very-very-bad-lag
The networkview transmit the position of an object into the network so that everybody can see it. The networkview has also some other cool things.
So please look in the unity3d scriptreference after that.
The lag you described is because the data will only every 10 frames syncronized with you and the server.
So the other players look like they have a very very bad ping thereforce you have to smooth the movement and the physics.
Here is the link for that (it’s also in my post) :
http://www.unifycommunity.com/wiki/index.php?title=NetworkView_Position_Sync
Sorry, I can’t explain that very well but in my post you can read a better to understand version.
realm_1
The 10/sec was for illustrative purposes, the default as far as I know is 15/sec. This is the Network.sendrate value.
Oh ok.
So do you know how can I change this value?
Unless you have a sufficient understanding of how networking actually works, the default is fine. Since we already covered that it is Network.sendrate value, perhaps you can find it in the docs?
UP.
UP.
Why are you bumping this? You asked a question, I told you the property, now go read on that property. It would the same time to read about Network.sendrate as it would take to log into the forums just to bump your thread.
UP
I found that script:
http://unity3d.com/support/documentation/ScriptReference/Animation.SyncLayer.html
And it’s fix a little bit my lags…
I don’t know how but it fix it.
Did you know how?
And one more question:
those little code blocking my animation.
I have animation of:
1.walk right left backward and forward.
2.run right left backward and forward.
those little coe blocking my animation but not the walk forward and the run forward…
How can I fix it too?
One more question:
What
Can Do to the lag’s???
UP.
UP.
UP…
UP.
UP.
I’ve reported you for being distruptive and needlessly bumping your thread. Could you show some consideration?