Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question VFX on mobile.

Discussion in 'Visual Effect Graph' started by Lieene-Guo, Nov 26, 2020.

  1. Lieene-Guo

    Lieene-Guo

    Joined:
    Aug 20, 2013
    Posts:
    547
    To build a project with VFX to android device.
    We can not assume that the device support compute capability for VFX.
    Work on some mobile devices but not on the others is the same as No Way for production.
    So I'm wondering when can we use VFX for mobile games?

    I found 2 things in roadmap. cpu simulation and dots runtime.

    Here's some question:
    • Does CPU simulation mean all simulation is not going to happen via compute-shader and the vfx is safe to run on any mobile device?
    • Is CPU simulation going to be implemented via DOTS?
    • CPU simulation somehow quite relevant to DOTS runtime, are they going to be implemented together?
    • Will, there be a runtime auto-switch choosing CPU(DOTS) simulation over compute-shader when the target device does not support compute?
    And is there a plan about when will these features be released?

     
  2. VladVNeykov

    VladVNeykov

    Unity Technologies

    Joined:
    Sep 16, 2016
    Posts:
    550
    Hi @Lieene-Guo ,

    Yes, allowing per-particle simulation on the CPU without the use of compute shaders.

    Yes.

    These are two orthogonal tasks. CPU Simulation is about per-particle simulation with DOTS. DOTS runtime is about converting the Visual Effect component at runtime to DOTS entity/component.

    Not 100% sure at this stage, to be honest. Not all blocks would probably be compatible with both GPU and CPU simulation, but assuming a VFX is using compatible blocks, it could be possible. Alternatively, two distinct assets can be prepared for CPU and GPU simulation and with a SystemInfo.supportsComputeShaders check they could be swapped at runtime. It's a bit early to tell.

    These features are planned, but not next up to be developed. Things might change, but I don't think they will be landing soon. In the meantime, the built-in Particle System supports all types of devices and should be the go-to solution for particle effects on mobile.

    Hope this help!
     
  3. koirat

    koirat

    Joined:
    Jul 7, 2012
    Posts:
    2,033
    Does it also mean we will be able to sort transparent particles (per single particle sorting) with other transparent objects on scene ?
     
  4. RamType0

    RamType0

    Joined:
    Sep 11, 2018
    Posts:
    67
    I think that adding support to execute ECS on GPU will be all-in-one solution.
    With this solution, VFX Graph will be implemented in ECS.
    Then, ECS has CPU runtime and GPU runtime.