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. Dismiss Notice

freezes

Discussion in 'ML-Agents' started by mamaorha, Jun 29, 2021.

  1. mamaorha

    mamaorha

    Joined:
    Jun 16, 2015
    Posts:
    44
    Hi, i have the following settings
    upload_2021-6-29_20-24-29.png

    and i noticed i have "Freeze" from time to time (every X time the game freezes for 1-2 seconds), i have a InvokeRepeating(nameof(CustomUpdate), 0f, 0.1f);

    where the customUpdate method is requesting a decision.
    this is the config file i have:
    https://pastebin.com/x3ufEwGd
     
  2. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi,
    is the "freeze" happening during training? If so, this is expected as the python process needs to update the weights of the neural network in order to improve the model you are training.
     
  3. mamaorha

    mamaorha

    Joined:
    Jun 16, 2015
    Posts:
    44
    hi, indeed this happens during trainig.
    i havnt noticed that on versions prev to 17 tho
     
  4. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi,
    I'm reaching out to our research team to see if significant changes to the trainers went in release 17 that may have caused this.
     
  5. christophergoy

    christophergoy

    Unity Technologies

    Joined:
    Sep 16, 2015
    Posts:
    735
    Hi @mamaorha,
    In release 17 the threading property is set to false by default. This means that the environment does not step while the python update is happening. Previously it threading was set to true by default. This should not have an effect on overall training times.
     
  6. mamaorha

    mamaorha

    Joined:
    Jun 16, 2015
    Posts:
    44
    Thanks for the explanation, was afraid my settings are flawed
     
    christophergoy likes this.