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.
  2. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug URP Too many GPU events leads to compile errors

Discussion in 'Visual Effect Graph' started by DanielleBBI, May 12, 2022.

  1. DanielleBBI

    DanielleBBI

    Joined:
    Mar 28, 2018
    Posts:
    30
    I am on 2021.2.3f URP and have a VFX graph that has 4 GPU events. When I try to add another GPU event I get this compile error There are more uavs (9) than the maximum supported (8) in ComputeShader '[fx_multi_missileLaunch] [Main Projectile] Update Particle' kernel 'CSMain'.

    Looking at the Unity issue tracker this is marked as fixed but... it doesn't say what version of unity it was fixed on or if the fix was applied to URP or not https://issuetracker.unity3d.com/issues/vfx-too-many-gpu-event-leads-to-compilation-error
     
  2. JulienF_Unity

    JulienF_Unity

    Unity Technologies

    Joined:
    Dec 17, 2015
    Posts:
    280
    Hi! Yes GPU event is still an experimental feature and you can go over the maximum autorized UAV count by using too many of them. There's no work around except from using less of them.

    The GPU event feature will be completely overhauled in the future.
     
  3. DanielleBBI

    DanielleBBI

    Joined:
    Mar 28, 2018
    Posts:
    30
    What is the proper way to attach death effects to particles with VFX graph then? I cant trigger a subgraph from a GPU event since that breaks the binding and I am limited to less then 4 GPU events on end. How can I trigger complex effects off death of particles?