Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

Send async riable pipe line

Discussion in 'Unity Transport' started by Farshadfarzan368, Oct 31, 2023.

  1. Farshadfarzan368

    Farshadfarzan368

    Joined:
    Sep 10, 2022
    Posts:
    73
    I made a chat group with transport, in one frame the message should be sent to thousands of people in the group. How does transport send messages? Does he send them one by one or does he try to send them all at the same time?
     
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    The transport package sends all queued messages in the jobs scheduled by
    ScheduleUpdate
    or
    ScheduleFlushSend
    . The entire queue is emptied for each execution of the job. For reliable traffic, the messages are all sent at once (as long as there's room in the reliable window). We do not wait for each individual message to be acknowledged before sending the next one.
     
    Farshadfarzan368 likes this.