r/gamedev•
mektel

Estimating Network Bandwidth, And Reducing It

Question

I put together a spreadsheet to estimate what my network bandwidth should look like in terms of egress, because that's what you get charged for. I assumed protobuf for serialization due to their encoding format (4 bytes per floats, 1-2 for small integers, etc.).

 

Would it really cost me $2 per match to send around 200 players 28 GB worth of data for 15 minutes? I know about AWS free tier, that wouldn't work if the numbers grew. I'm interested in identifying where I could improve the network bandwidth/costs.

 

Half the players get one set of data, the other half gets another set of data. Is there some cheaper way to send those updates? Or is my only option culling (with some breathing room) the list that gets sent to players? Which would mean custom list per player, more internal memory, computation, etc. Each half is friendly to that half, so maybe they could send data to each other?

 

I'm well aware this is a foolish endeavor to be so ambitious with so little networking and multiplayer experience but I'm committed.

 

edit:

I feel like my understanding has tripled; thank you all for the knowledge dump!

Revamped numbers, though they do not include calculations such as culling or fewer updates based on distance. I can consider this a soft upper bound though.

Posted Jan 16, 2023, 10:30 PM UTC · edited

619
Loading comments…