I have created a very small traffic simulation in which the GPU is responsible for updating the locations and behaviours of all cars. This would speed up my program by a lot, were it not for the pesky detail that I have to copy the cars data from the GPU to the host where I then use SDL to render it (which then sends a subset of that data back to the GPU for rendering actually, making this whole thing even worse). This is clearly inefficient and it would be much better if I could start displaying directly from the GPU. I looked around but could not find any resources on the matter. Is there a standard way to do this?
2.1m questions
2.1m answers
60 comments
57.0k users