FishNet icon indicating copy to clipboard operation
FishNet copied to clipboard

Prediction 2 - Many replicated objects might be corrupting packet.

Open FirstGearGames opened this issue 1 year ago • 1 comments

FN Version 4.1.3-4.1.4

Many replicated objects (32-50) seem to prevent other objects from updating.

FirstGearGames avatar Mar 24 '24 23:03 FirstGearGames

Attached project to replicate.

  • Open P2 Large Reconcile Bug.
  • Start server, join a client in another editor.
  • Select Spawner on scene on server. Spawning roughly 25 objects or more, at once or overtime, results in reconcile datas not being sent for a number of objects. Missing Reconcile Data.zip

FirstGearGames avatar Mar 30 '24 17:03 FirstGearGames

A solution has been found. It is temporary but will get the job done.

Open file NetworkConnection.Prediction. Replace line...

if (writerCount == 0 || (data.Length + PredictionStateWriters[writerCount-1].Length) > mtu)

with this...

if (writerCount == 0)

FirstGearGames avatar Apr 02 '24 17:04 FirstGearGames

Properly resolved next release 4.2.0!

FirstGearGames avatar Apr 03 '24 19:04 FirstGearGames