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 Lots of GCs have occurred during NN model run

Discussion in 'ML-Agents' started by kokimitsunami, Sep 1, 2022.

  1. kokimitsunami

    kokimitsunami

    Joined:
    Sep 2, 2021
    Posts:
    11
    As the Unity Profiler timeline screenshot attached shows, it appears that a lot of GCs is occurring while myagent's NN model is running, significantly slowing down the execution speed. Is this appropriate behavior? Or am I missing something? I hope someone can help me with this.
    MLAgentsProfile.JPG
     
    airoll likes this.
  2. airoll

    airoll

    Joined:
    Jan 12, 2021
    Posts:
    33
    kokimitsunami likes this.