Efficient way to send out Tower's Data

I’m trying to find out an efficient way to send Unit/Tower’s data, which is a Total Damage, this data can be millions or even billions of number, so its kinda high to send from server to client.

My current way is to send whole Total Damage number to the clients, this way is kinda inefficient i think, since my units also got a DOT(Damage Over Time) mechanism this makes the Bytes received on client more hellish, some of my units also got a AOE type Attacks so the Bytes received will also be heavenly to the clients.

I’m still finding a way to optimize this, if u got any questions or solutions, please help.

1 Like

Assuming the Total Damage send to client is only for visual purposes, the server can tell the client to calculate the damage based off tower’s stats, multipliers, etc… and display the Damage value instead. For DOT, if the Damage Over Time step is consistent (damage every 0.5s, 0.2s, etc…) then you can use the aforementioned way, telling the client to start its own DOT and calculate the values from there, while the real damage will still be handled by the server

1 Like