Search Unity

Water Pro Shaders (Gerstner Waves) Problem on ios

Discussion in 'Shaders' started by qqshnep, Dec 18, 2014.

  1. qqshnep

    qqshnep

    Joined:
    Dec 17, 2014
    Posts:
    7
    Hi guys:

    I built an example with water , which imported from unity3d's package "water pro". When running on my ipad air, the waves got slowly and slowly as the time past by, but frame rate was fine, about 60fps.

    It was weird, so I tried this on macbook, directly running the example at unity editor, and it was all right, the waves were smooth all the time.

    Does anybody know?

    Thanks for your help.
    best regards
     
  2. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,878
    It is probably because of the _Timer value increases to float max value limits. Although im not sure if this is the case,
    Instead using a custom timer that loops between 0-some small value and passing this value as time solves such issues for me.
     
  3. qqshnep

    qqshnep

    Joined:
    Dec 17, 2014
    Posts:
    7
    Thanks very much, let me try
     
  4. qqshnep

    qqshnep

    Joined:
    Dec 17, 2014
    Posts:
    7

    I have tried using "C# time" and "Unity Time" instead of "_Timer", but the problem is still there.

    It happens in about 170+ seconds when app started, not exactly.
     
  5. aubergine

    aubergine

    Joined:
    Sep 12, 2009
    Posts:
    2,878
    i said loop it.

    something like time++; if time > 100; time = 0;
     
  6. qqshnep

    qqshnep

    Joined:
    Dec 17, 2014
    Posts:
    7
    yeah. got it. thank you