▲ | animal531 3 days ago | |
Yeah, for example Unity uses C#, so you can used a managed CUDA library. If you're using a C engine like Unreal etc. its even easier since you can just include the code. But having said that, a giant drawback to using CUDA in gaming is that the overhead of transforming and copying your data to/from CUDA kills off a lot of the performance, so while its still great its not nearly as good as writing compute shaders. They are a topic of their own, the code can start off quite basic but with recent additions you can now also do some really advanced thread management and coordination. They still come with big overhead to moving data around, but in general they're better suited to the use-case than CUDA. |