Massive difference between Inference and Training performance

Basically, I’m making a 2d platformer where a character tries to touch a target which spawns randomly.

During training, the AI works fine, it easily jumps onto platforms and reaches the target with ease. However, when I import the brain and run it in inference mode, the AI just doesn’t work.

Any help is appreciated.

Turns out, my physics is different based on the timescale. The player jumps higher when the timescale is higher.

moving my jump from time.deltatime to time.fixeddeltatime and moving it from update to fixedupdate seems to have fixed the issue.