Game slows down when passing near lights
I have a little map with just 6 spot lights and a directional light acting as sun. The sun has hard shadows and the spot lights have no shadows at all. All the scene is manually baked with no big textures at all. So I couldn't be more perplexed.
I've run my game with the profiler and when I pass by a light the method FixedUpdate of FirstPersonController script takes 93 to 98 % of the CPU cycles while all the rest remains low. I haven't modified that script at all. My FPSController doesn't have attached a 3D object. It's just the collider and the camera.
What is curious is that the "game" (is more a virtual tour around an old shelter from the spanish civil war) doesn't have any big custom scripting. Just a pause menu assigned to ESC key that leads you to a simple GUI.
I am completely lost. Can someone give me some directions to solve the issue?
If you wan't to see the map, it is available via WebGL here http://mhyst.es/Refugios/
Though, in the windows game it doesn't get as slow as in webgl version.
Your answer
Follow this Question
Related Questions
Splotchy lightmap results after bake 0 Answers
Background image is too bright on iOS, ok in Editor and Android APK 0 Answers
Is it impossible that terrain trees' shadows are baked on terrain? (Lightmapping) 0 Answers
Is anyone else having trouble with Unity 5.5 lightmapping? 1 Answer
My shiny man turned into a dark one 0 Answers