OpenCL?

  • fordcars
    19th Feb 2014 Member 0 Permalink

    Hi,

     

    Wouldn't Powder Toy be way faster using OpenCL? For those who don't know what it is, it is a library that gives you easy access to parallel computing. It is normally used with the GPU to give extra power, and man does it go fast.

     

    Here is a comparison; you can clearly see OpenCL at 1:36: http://www.youtube.com/watch?v=E67jVgcBZS0

    Edited 4 times by fordcars. Last: 19th Feb 2014
  • mniip
    19th Feb 2014 Developer 1 Permalink
    @fordcars (View Post)
    OpenCL can only perform very specific tasks involving floating point computations. TPT on the other hand, mostly works on integers.
    Besides, not everyone has an OpenCL-capable card, for instance, I don't.
  • fordcars
    20th Feb 2014 Member 0 Permalink

    Oh ok. I was pretty sure TPT was pretty much only floating-points

  • mniip
    20th Feb 2014 Developer 0 Permalink
    @fordcars (View Post)
    There is air, heat, ambient heat simulation that is based on floats, but it already runs at a great speed, no improvement needed there.
  • jacob1
    20th Feb 2014 Developer 0 Permalink
    @mniip (View Post)
    air is one of the slowest things in tpt ...
  • edza101
    20th Feb 2014 Member 0 Permalink

    @jacob1 (View Post)

     

    I swear you already have an opencl branch of tpt anyway, it cant be that laborious

  • jacob1
    20th Feb 2014 Developer 0 Permalink
    @edza101 (View Post)
    there is some OpenGL support, but not that much and it doesn't work very well.

    I don't know anything about OpenCL but i'm sure it would also be a lot of work