Unity-Technologies / ml-agents

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
https://unity.com/products/machine-learning-agents
Other
17.12k stars 4.15k forks source link

EngineConfigurationChannel with timeScale Problem #5687

Closed ismeyueyue closed 2 years ago

ismeyueyue commented 2 years ago

Behavior: I used EngineConfigurationChannel with timeScale parameter to set Unity Project Time.timeScale.

engine_config = EngineConfigurationChannel()
engine_config.set_configuration_parameters(time_scale=my_time_scale)

Expected Results: The Time.deltaTime should be changed in proportion to the timeScale, and the Time.unscaledDeltaTime remains the same.

Actual Results: The Time.deltaTime remained the same, however the Time.unscaledDeltaTime which is timeScale-independent was changed instead.

Screenshots I used tensorboard to record the results.

image

image

image

Environment (please complete the following information):

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.