#Network Bandwidth optimizations

1 messages · Page 1 of 1 (latest)

spark wasp
#

how do i decrease my network bandwidth? I'm trying to send an array that has 2 vectors ( the vector library ) on client every 10 frames per second.

tawny blaze
#

I think it would be better to just find another way

spark wasp
#

its important

#

like very imporatnt

spark wasp
#

can i do it on 400 npcs

#

oh yeah what im trying to do is send position and rotation data of an npc on client then smooth it out with linear interpolation

#

i have my own physics system with colission detection

spark wasp
tawny blaze
#

wait do you send the data to the client or on the client to the server?

spark wasp
spark wasp
#

allclient

#

i'm trying to get it to 400 npc with atleast 6kbs or even lower network recv

tawny blaze
#

do your npc move a lot? Or do they sometimes move just in straight lines?

spark wasp
#

i mean

#

every 3 - 6 seconds

#

i only send moving npc data on client

#

not the npc that are idled

tawny blaze
#

I was going to suggest just sending to the client where the npc wants to move and not where it is

spark wasp
#

its custom physics

spark wasp
tawny blaze
# spark wasp how about the physics and stuffs on server

Im not quite sure but I think handling physics on the server is in general not that good. I've only been working with studios for a year now but from what I understand i think its better if you would handle them on the client

spark wasp
#

trying to implement sways when you move right or left

tawny blaze
#

just keep track of positions and make sanity checks for anti cheats

spark wasp
#

ykwim

spark wasp
#

there are two types of npc

#

enemy and the civillian

#

oh yeah

#

i looked thru this post

#
#

i still did not understand anything 💔

tawny blaze
spark wasp
tawny blaze
uncut vaporBOT
#

studio** You are now Level 5! **studio

keen loom
#

compress data into a buffer using squash before sending to client

#

and the uncompress on client

#

also use blink or zap