UDP package is full and disconnected

Options
I'm making a tower defense game.
When a tower hits an enemy, it fires a "hit" Rpc.

The problem is that over time the number of towers increases and sometimes the towers attack speed faster.
Then, the message "UDP package is full. Commands in Package: 24. Commands left in queue: 4280" appears and the connection is automatically disconnected.

The connection seems to be disconnected due to a lot of RPCs. Is there any solution?
I'm looking for a way other than reducing the number of towers and attack speed.

Comments

  • googolhkl
    Options
    Hit RPC function's format is below.

    [PunRpc]
    public void RpcHit(int damage, bool isCritical, int targetViewID, string attackerNickName)
    {
    ...
    }