Skip to content

In Godot, make data processing efficient #9

@ChernyakKonstantin

Description

@ChernyakKonstantin

Consider default repeat_action = 4.

My robot uses Lidar sensor with maximum data volume of 1080 points per repeat. In total I have 4320 points. The rest data is small enough to not consider them.

One environment step takes 0.14s, out of which ~0.06s is spent on filling protobuf message (Lidar data only) and 0.05s is spent on serialization of entire protobuf message.

It is required to test, whether the following algorithm is faster:

  1. Make message to contain data per one repeat.
  2. Fill, serialize, and send data in separate threads at each repeat.
  3. In python, accumulate data over repeats to form data per step.

The expected improvement upper bound is that repeat_action times faster than current implementation.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions