ismail0234 / Subnautica-Below-Zero-Multiplayer

Subnautica Below Zero Multiplayer Mod. An multiplayer modification for the game Subnautica BZ.
https://subnauticamultiplayer.com/
49 stars 9 forks source link

Network - Creature Position Optimization #182

Closed ismail0234 closed 4 months ago

ismail0234 commented 1 year ago
  1. It is currently possible to fit 40 fish locations in 1 packet. (With the heaviest optimization, I can increase this value to 82.)
  2. On average, there are 200 fish near a player. This value can increase up to a maximum of 300 fish.
  3. Using a dictionary instead of a class reduces the packet size by 40-80 bytes.

Creature:

Packet (avg)

Synchronisation of 200 positions per second (Not Optimized)

ismail0234 commented 6 months ago

Optimized Version;

Creature:

Packet (avg)

Synchronisation of 100 positions per second (Optimized)

ismail0234 commented 4 months ago

Completed.