Search Unity

ScreenShake and blur problems that changes computer to computer!

Discussion in 'Image Effects' started by zarmen98, Sep 4, 2021.

  1. zarmen98

    zarmen98

    Joined:
    Oct 14, 2018
    Posts:
    6
    We are using ScreenShake for hit feelings, ScreenShake and blur is works well for 70% of people but its weird for 30%

    The problem:




    and in this 30% of people some of same skill shaders are looks different, broken too..
    when you are dashing in game there is 0.5 seconds blur but in this 30% of people the 0.5 seconds blur is more like 2 seconds. And on some of skills there is like some effects for 1-2 secs but on their screen they are like 5-6 secs.

    Any idea how to fix?

    CameraShake and Blur Script:
    Code (CSharp):
    1. void LateUpdate()
    2.     {
    3.         if (ShakeTime > 0)
    4.         {
    5.             transform.localPosition += Random.insideUnitSphere * ShakeAmount * (ShakeTime / _lastShakeTime);
    6.  
    7.             ShakeTime -= Time.deltaTime;
    8.         }
    9.  
    10.         if (_blurTime > Time.time)
    11.         {
    12.             if (_blur.enabled == false)
    13.                 _blur.enabled = true;
    14.  
    15.             _blur.blurSize = Mathf.Lerp(_blur.blurSize, _desiredBlur, Time.deltaTime * 10.0f);
    16.         }
    17.         else
    18.         {
    19.             if (_blur.enabled == true)
    20.                 _blur.enabled = false;
    21.  
    22.             _blur.blurSize = Mathf.Lerp(_blur.blurSize, 0, Time.deltaTime * 10.0f);
    23.         }
    24.     }

    ------------------------------------------ // ------------------------------------------


    The PC Specs that works well:

    Tester 1
    -
    ----------------------------------------------------------------------------

    ----------------------------------------------------------------------------

    The PC Specs that works weird (PROBLEM):

    Tester 1
    -
    ----------------------------------------------------------------------------
    ----------------------------------------------------------------------------

    Tester 2 -
    ----------------------------------------------------------------------------
     
  2. zarmen98

    zarmen98

    Joined:
    Oct 14, 2018
    Posts:
    6
    fixed, its because of computer language and Parse function.
    Parse accepts "," in Turkish and accepts "." in English.
    so 2,5 degree is converted to 25 in English