No announcement yet.

How to offload computation to GPU?

  • Filter
  • Time
  • Show
Clear All
new posts

    How to offload computation to GPU?

    My game is somewhat bottlenecked by CPU. Does anyone know how to offload computation onto the GPU?

    Any insight would be appreciated. Cheers

    This probably won't work the way you're hoping. As far as I know, UDK offers no way for you to run calculations directly on the GPU.

    But if you have a calculation that you want to run, and it doesn't have to happen in the same tick, you can write your own C++ dll and bind it to an UnrealScript class. Call a function in the dll, passing it whatever data the calculation needs, and then run it on the GPU, and the dll can have an answer ready when you check on a later tick.
    Check out Himeko Sutori, the upcoming tactical RPG where you control armies of over 100 unique characters.