Skip to content

A Bug where "set" will affect the speed of "get" #96

Open
@wuzpeng

Description

@wuzpeng

Sorry to bother you, I'm back again. I found a possible bug in your project.
I have done many tests in my own projects and your project(Both in Ubuntu20.04). I found the following problem:

If a function "df.set_plane_yaw()" that sets environment parameters is executed at some point before a function "df.get_plane_state()" that gets environment information is executed, the speed of "df.get_plane_state()" will become very slow, which looks like an abnormal delay. Otherwise, the speed of "df.get_plane_state()" is normal.

image
The above figure shows the normal speed of obtaining status information. This speed is obviously no problem.
But if I add the "df.set_plane_yaw()" function in front, the following will execute very slowly:

image
As you can see, the time increased from about 0.0003 to about 0.040 seconds!!

My guess is that this may be because the TCP connection is disconnected when "df.set_plane_yaw()" is executed, and reconnection is required to obtain status information again. There may be other reasons, but I don't know how to solve them.

For single-agent reinforcement learning training, this time delay may be acceptable, but for large-scale multi-agent reinforcement learning, because the state information of each agent needs to be obtained, this delay will greatly affect the training speed. I really need your help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions