Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lag between 2 client's movement #1

Open
michaelnorman-au opened this issue Nov 21, 2021 · 13 comments
Open

Lag between 2 client's movement #1

michaelnorman-au opened this issue Nov 21, 2021 · 13 comments

Comments

@michaelnorman-au
Copy link

Hey when I was running 2 versions of the client on the server the other client's movement would update every 3-4 seconds. I haven't changed anything from the original code, but was there a component or something I needed to add for it to function smoothly? Relatively new to networking so there's a good chance I'm missing something. Cheers!

@notgoodusename
Copy link
Owner

Hi!
Try lowering the interp value and if you could please send a video of the issue

@michaelnorman-au
Copy link
Author

I lowered the Time To Reach Target value on the interpolation script to 0.05 but it didn't seem to do much.

Dezz3_Client.-.Menu.-.PC.Mac.Linux.Standalone.-.Unity.2021.1.24f1.Personal._DX11_.2021-11-21.11-52-17.mp4

@notgoodusename
Copy link
Owner

Are you running two instances of the program on the same pc?

@michaelnorman-au
Copy link
Author

That's correct yeah, I'm using ParrelSync but I also tried building it, same result. Also forgot to mention I'm using Unity 2021.1.24f1.

@notgoodusename
Copy link
Owner

I have the same issue and I think its something related to Unity optimization stuff
Try playing in 2 pcs

@michaelnorman-au
Copy link
Author

Just gonna grab lunch and then I'll do this and get back to you. Appreciate you getting back to me so fast btw!

@notgoodusename
Copy link
Owner

Im about to go to sleep so I wont be able to answer, but I will be able to answer later

@notgoodusename
Copy link
Owner

Just found a thread on the unity forum, that mighy be able to help you

@michaelnorman-au
Copy link
Author

Hey I had a look at that thread but I dont think the issue is my FPS, everything's running smoothly and I've had 4 editors open most of the time. Currently having difficulties getting the other computer to connect to the server. I've tried both building it for the lan IPv4 as well as the online ip address, and have forwarded the ports on my router but it's still not connecting. I know it's got nothing to do with your code but if you have any sort of advise on this it'd be beyond helpful.

@notgoodusename
Copy link
Owner

I dont know why you cant connect, you should probably ask that on the Tom Weilands discord
Im sorry I cant be of any more help since I did have this problem but just ignored it, since It would work fine on other pcs

@michaelnorman-au
Copy link
Author

No worries at all dude i might give the discord a shot if i can't figure this out. Thanks anyway!

@michaelnorman-au
Copy link
Author

Hey so I managed to get it working between the two computers but I still had the same issue. Good chance there's something up with the Unity version I'm using or some other unknown factor since it works fine on yours. Reckon I'll just continue on with my original networking solution but I appreciate your time dude.

@notgoodusename
Copy link
Owner

Ok!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants