Search Unity

Particle Systems render wrong texture while using Graphics Jobs in 5.5

Discussion in 'General Graphics' started by maxxa05, Dec 20, 2016.

  1. maxxa05

    maxxa05

    Joined:
    Nov 17, 2012
    Posts:
    186
    Since we upgraded to 5.5, our particle systems sometimes render the wrong textures when using Graphics Jobs, like that:
    Untitled-1.jpg
    It seems to be somewhat random and it just flickers on and off. The replaced textures are often hard to recognize, but some of them seem to be Speed Tree billboards. It also seem to depend on the viewport position of the particles, as it happens more often when the particles are close to the edge of the screen. My guess is that it comes from some kind of race condition in particles rendering when using graphics jobs, but I can't know for sure.

    For now, we've been unable to reproduce the bug in a separate project that we could use for a bug report, and we're unable to pinpoint exactly the conditions needed to get this bug.

    Did anybody see this and know a workaround to fix it?
     
  2. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    715
    We have concluded that the problem resides in the SpeedTree new billboard shader; replacing the 5.5 shader with the 5.4 one fixes the aformentioned issue.

    @maxxa05 could you please update the post title to better describe what's going on here? Better are the chances that the right person from the graphics team at Unity will take a look at this if the title reflects the actual problem (which might well be SpeedTree shader in this case).
     
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,299
    Are you using the latest patch version of 5.5? Are you able to share the project so we can attempt to recreate the bug? I believe we recently fixed an issue with memory being incorrectly used that may be related.
     
  4. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    715
    Hi Karl,

    We are running the project on PC and PS4 on p2 and on p1 on Xbox One. The only platform that we couldn't reproduce it is PS4.

    We are doing our best to shrink our project to fit the 2 gb requirement, but anything we do to reduce its size get rid of the issue for some reason.

    For now even the shader replacement fix did end up not working. It's pretty random actually and very difficult to find solid repros.

    Disabling Graphics Jobs is the only workaround, and that's a shame to not have that on Xbox.
     
  5. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,299
    We can provide a way to upload larger projects. Submit a bug report with the information you have and post the bug number here. I will then ask QA to get back to you with details on how to submit large projects which we can append to the bug report.
     
  6. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    715
    Hi Karl, issue #863719 has been submitted and we're zipping our project in order to transfer it to you once we receive the details. Cheers!
     
    karl_jones likes this.
  7. maxxa05

    maxxa05

    Joined:
    Nov 17, 2012
    Posts:
    186
    We just tested, it's still happening in 5.5.0p3