BeamNG / BeamNGpy

Python API for BeamNG.tech
https://beamng.tech
MIT License
257 stars 46 forks source link

Socket message transfer very slow #267

Open Leviathan321 opened 5 months ago

Leviathan321 commented 5 months ago

I am doing research with beamng and I am using basically a driving controller which has to retrieve the camera images to process and to calculate driving commands (similiar to here: https://github.com/sbft-cps-tool-competition/cps-tool-competition).

However, I am facing the problem that retreiving the sensor data and as well other state information takes roughly 0.20 s (BeamNG 0.26.2).

It looks to me that the socket communication is very slow. Did anyone had similar issues before?

aivora-beamng commented 5 months ago

Hi, 0.2s seems very slow indeed, are you creating multiple large-resolution camera sensors? If not, maybe you have some software installed that filters/slows the connection? If you share your script (here or to tech@beamng.gmbh), we can try to run it and test its performance at our machine.

Leviathan321 commented 5 months ago

Actually, I am directly using the code from the competition here: https://github.com/sbft-cps-tool-competition/cps-tool-competition. I have tried the code on different machines. I was running it on

  1. Windows 11, with an Nvidia Geforce GTX 4090
  2. Windows 10, with an Nvidia Geforce 1080 Ti

There was a similar problem...