Search Unity

[Theoretical] Sending Jobs to the GPU

Discussion in 'Entity Component System' started by Guedez, Mar 21, 2020.

  1. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    Considering how strict Burst Jobs are, can't they be reasonably easily converted into compute shader code?
    Why exactly this is not possible/preferable? Is it because of the BUS lag?
    What about the onboard GPUs some processors have? Couldn't that be used without having to go through the BUS?
    I get that there is probably no currently implemented CPU driver that lets you send stuff to the onboard GPU, but shouldn't it be possible? Shouldn't CPU manufacturers explore this?
     
  2. SurprisedPikachu

    SurprisedPikachu

    Joined:
    Mar 12, 2020
    Posts:
    84
    I think somewhere in forum it was mentioned that Unity has plans about GPU support for jobs. And the goal is to be able to switch between GPU and CPU with an attribute or something. I could be wrong though. It was a long time ago when I saw that.
     
  3. Kichang-Kim

    Kichang-Kim

    Joined:
    Oct 19, 2010
    Posts:
    1,012
  4. DreamingImLatios

    DreamingImLatios

    Joined:
    Jun 3, 2017
    Posts:
    4,271
  5. Guedez

    Guedez

    Joined:
    Jun 1, 2012
    Posts:
    827
    Burst jobs writing straight to GPU memory and C# shaders would probably accomplish jobs on the GPU.
    Nice to know it will actually happen Soon™
     
    DreamingImLatios likes this.