Search Unity

Resolved How do I make ModelRunner use CSharpBurst?

Discussion in 'ML-Agents' started by Creaturtle, Feb 25, 2021.

  1. Creaturtle

    Creaturtle

    Joined:
    Jan 24, 2018
    Posts:
    33
    Hello,

    I am using the inference engine, and would like to make things as fast as possible for my game.

    I see that in ModelRunner, if inferenceDevice is set to CPU in the behaviour parameters, that the WorkerFactor.Type is automatically set to CSharp, and not CSharpBurst.

    Is there a reason for this? And can this be changed?

    EDIT: Updated to the latest package manager version, now it's an option. Resolved!
     
    Last edited: Feb 25, 2021
  2. celion_unity

    celion_unity

    Joined:
    Jun 12, 2019
    Posts:
    289
    Yup, this was added in the 1.8.0-preview release (which just came out yesterday).

    upload_2021-2-25_9-24-58.png

    Note that new agents will use this by default, but existing agents will need to manually change.