r/unity • • 2d ago

Question Should I worry? (Multiplayer query)

I'm using purrnet for networking framework And this is actual build work.

Is this much delay in synchronisation too much or is it normal and expected?

I'm using basic network manager and UDP transport and just a player spawner that's it nothing extra.

2 Upvotes

5 comments sorted by

12

u/Garo3853 2d ago

You are in local. The desync should be minimum

2

u/Living_Cell7304 1d ago

When the client receives world data from the server, it doesn’t apply it immediately. It buffers it with a delay like a YouTube video. All netcode frameworks do this in some manner.

That looks like a huge amount of delay though. Never heard of purrnet. Sounds goofy as hell. Use a real netcode framework.

1

u/kaftainzy 1d ago

I just increased the tick rate it works fine now 20-> 60 Purrnet had the best documentation and videos so I just use it Its fairly new and underrated.

1

u/eocron06 1d ago

Yes, every sequential action group in general should be one udp packet (order is important, dedup in group is ok). You probably sending current state rather than update? Like if player moves - you should send button pressed event, not that he is moving, and move/simulate on UI/server until he unpressed.

1

u/BearKanashi 2d ago

Algo estás haciendo mal