Search Unity

Point Light Freezing in Android

Discussion in 'General Graphics' started by Friction, Jan 5, 2016.

  1. Friction

    Friction

    Joined:
    Jan 6, 2015
    Posts:
    18
    Hello everyone, I'm currently working on mobile racing game. I have a brake lighting system. Here my script:

    for(int i =0; i < brakeLights.Length; i++){
    if(!reversing)
    brakeLights.intensity = brakeLightInput*4;
    else
    brakeLights.intensity =0f;
    }​

    On PC, it's working perfectly. But on my mobile phone if I braking first time in a scene, when I braking, game freezing about 2 seconds. After that I'm braking repeatedly but game not freezing.
     
    Last edited: Jan 10, 2016