Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CUDA support for shared buffers? #204

Open
MoreTore opened this issue Feb 21, 2023 · 1 comment
Open

CUDA support for shared buffers? #204

MoreTore opened this issue Feb 21, 2023 · 1 comment

Comments

@MoreTore
Copy link

MoreTore commented Feb 21, 2023

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

@dstark481
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants