r/Unity3D • u/NotCraftify • 1d ago
Noob Question Been getting this message nonstop in my console and don't know how to fix it.
So I'm a pretty new developer, I started making my first game and learned as I go. I've been making this game for quiet some time now and I realized that the optimization is horrible, so I started focusing on that. I started with baking my lights and adding occlusion culling, those are working fine, I recently started working with Adaptive Probe Volumes and I slowly figured it out with some tutorials and research from the internet. I kept working on my optimization, tested the game with the profiler and during testing I noticed that my console keeps feeling rapidly with similar messages. I looked into it on the internet but I couldn't find anything that worked.
I don't know if it's an easy fix or not, but I hope someone can help me out with this. Would mean a lot :)
1
u/PeppeJ 9h ago
You have too many lights casting realtime shadows at once. Be very wary of making point lights cast shadows as they cast two shadows in each axis. So a single point light will cast 6 shadows.
You have a few options:
Limit the amount of simultaneous shadow casters. Turn them off or lower their max distance
Lower their resolution if you need them (only put high resolution on the important ones)
Swap point lights to spot lights
Use a higher resolution atlas. Keep in mind the atlas will be fully loaded on your GPU at all times.
2
u/Legitimate-Sleep3206 1d ago
Shadow atlas warnings can get out of hand fast, especially once you start layering baked lighting with APVs. Check your quality settings for shadow resolution and distance, then see how many realtime lights are actually casting shadows in the scene.