Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question What are good general rules when it comes to optimizing network performance code-wise?

Discussion in 'Multiplayer' started by One_Learning_Man, Jan 6, 2022.

  1. One_Learning_Man

    One_Learning_Man

    Joined:
    Sep 30, 2021
    Posts:
    81
    For example, in one of Mirror's purchased asset, the developer writes:

    upload_2022-1-5_22-22-1.png

    I would never have known this as a newer developer. What are methods or components I should use and vice versa - avoid? Are there any hints or signs I can be aware of to avoid bad performance?
     

    Attached Files:

  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    That comment isn't actually networking related. There's a lot of threads on the forum about reducing or avoiding the creation of garbage. It is a pretty big topic on its own.

    On actual network performance....
    Avoid sending updates to clients for information the client doesn't need to know. Avoid sending updates to clients more frequently than necessary.
     
    One_Learning_Man likes this.
  3. One_Learning_Man

    One_Learning_Man

    Joined:
    Sep 30, 2021
    Posts:
    81
    Ah thanks for the clarification.