Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    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:
    76
    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,824
    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:
    76
    Ah thanks for the clarification.