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 lag on slow movements

Discussion in 'Visual Effect Graph' started by skowronski_m, Nov 23, 2022.

  1. skowronski_m

    skowronski_m

    Joined:
    Oct 5, 2021
    Posts:
    36
    Hey everyone! Sounds like a stupid question but I'm sitting on this one for hours. Consider this *very* basic vfx, which slowly moves a bunch of white quads on the y axis.

    VFX Kopie.jpeg

    Their movement is not smooth for me as you can see in this video: https://nc.artcom.de/index.php/s/CjRHfB5rPDNWogd

    Do I need to factor in delta time in the vfx or is this sort of "micro-jitter" always to be expected for very slow movements?
     
  2. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    817
    You don't need to set velocity every update, you can just initialize it with some velocity and default integration during update will move it for you.

    About the actual problem - I am pretty sure this is caused by different update rate. By default vfx uses fixed delta time, so what you see is the same kind of problem as moving rigidbody without interpolation. It's possible to change this behaviour, if you click the graph asset you can find checkboxes about delta in the inspector.
     
    skowronski_m likes this.
  3. skowronski_m

    skowronski_m

    Joined:
    Oct 5, 2021
    Posts:
    36
    That did something! It definitely improved things, but it still does not feel 100% smooth..

    https://nc.artcom.de/index.php/s/Z6dz7JJzLSXxjmX

    There are still these micro jitters in there that are really noticeable in slow animations. Hope the recording captures it
     
  4. Qriva

    Qriva

    Joined:
    Jun 30, 2019
    Posts:
    817
    In this case I have no other idea other than the one you mentioned already, it might be just that precision flicker between pixels. Maybe you should try some custom integration with rounding or with different delta?