- Home /
Light and lag problem
Good day. I create my own game in which the player goes through different maps. There are lights on every map. And here is the problem. On the main map, when the player looks at the building with the lights, the game starts to lag terribly. I don't know why this is happening. At first I thought it was because of the number of lights, but that's not it. There are also a lot of lights on the second map, but I don't have any lag on the second map. What can I do to get rid of these lags? I have been struggling with this problem for two weeks. If I don't find a solution here, I won't find it anywhere else.
The graphic below shows the position of the lights and the approximate size of the maps.
Main map (here are the lags):
-Lights
-Size
Side map (no lags here):
-Lights
-Size
The red markings are point light
The blue markings are Spot Light
I think it's worth mentioning that I created all the objects myself
Your answer
Follow this Question
Related Questions
Which spotlight hit gameobject? 1 Answer
Point lights and spot lights not baking in my scene 6 Answers
Every game object is white when i put in a light? 1 Answer
2D game spotlight issue with floor tiles,2D game spotlight floor tiles get different brightness 0 Answers
Is it possible to create a torus-/ring-shaped light? If so, how? 2 Answers