Search Unity

World space particles moving near the same velocity as camera appear to stutter

Discussion in 'Visual Effect Graph' started by wx3labs, Nov 30, 2020.

  1. wx3labs

    wx3labs

    Joined:
    Apr 5, 2014
    Posts:
    77
    I created a burning effect in VFX graph using world space particles. Here is a gif of it, slowed down:

    FlameTrail.gif

    I think it looks fine, ignoring the GIF framerate.

    In-game, I noticed a kind of stuttering effect when the player was moving near the same velocity as the burning object. To investigate, I had the camera track the burning object exactly. You can see the stutter in this image:

    FlameStutter.gif

    I created a simplified VFX that emits a red "X" at the velocity of the tracked object to highlight the problem:

    XStutter.gif

    I suspect this is the result of the vfx position update happening independent of the main thread and not in-sync with the camera movement, but I'm not positive.

    Here is the VFX graph that produced the last image:

    X_VFX.png

    Any suggestions for a fix or workaround?
     
  2. RamType0

    RamType0

    Joined:
    Sep 11, 2018
    Posts:
    67
    Set Update Mode of Visual Effect Asset from Fixed Delta Time to Delta Time.
    You can see it in Inspector.
     
    ATate and wx3labs like this.
  3. wx3labs

    wx3labs

    Joined:
    Apr 5, 2014
    Posts:
    77
    Thanks for the suggestion, unfortunately the effect is already set to Delta Time. I tried switching to Fixed Delta Time to see if that changed anything, and it didn't appear to.
     
    RamType0 likes this.
  4. wx3labs

    wx3labs

    Joined:
    Apr 5, 2014
    Posts:
    77
    RamType0 likes this.