BeamNGpy icon indicating copy to clipboard operation
BeamNGpy copied to clipboard

CUDA support for shared buffers?

Open MoreTore opened this issue 2 years ago • 1 comments

Does beamng have the ability share GPU memory between processes for running inference on the cameras in real-time?

I need high-res, low latency YUV420 image stream at 20fps. The torque3d engine looks like it could support it but beamng needs to implement it

MoreTore avatar Feb 21 '23 03:02 MoreTore

Hello,

We can use shared memory to achieve these streaming rates at those resolutions. Please have a look at the attached script which demonstrates how this can be done. You may need to adjust some numbers to get the rate set exactly as you like (this will depend on how powerful your hardware is), but the most important camera parameter here is to set the requested update time to 0.05s (20 FPS).

stream.zip

Best regards, BeamNG Tech Team

dstark481 avatar Feb 22 '23 16:02 dstark481