r/oculusdev • u/GGAPP_S • Jan 18 '24
Improved Light Performance
Hello, I'm working on a game in unity that takes place in a dark environment. I have three guards walking around with flashlights that need to cast shadows so that the light does not clip through the walls. The Quest 3 can handle this but this kills the performance on the Quest 2. Is there a known way to "fake" the lights? If anybody knows a good way to achieve fake Realtime flashlights that would be very helpful. Thanks.
5
Upvotes
View all comments
Show parent comment
1
u/GGAPP_S Jan 18 '24
I tried projectors but the performance I got was similar to spot lights. What I ended up doing as a compromise was using volumetric light beam asset on non local players then a spotlight on the local player that does not cast shadows. The volumetric light provides context as to where the other flashlights are pointing without the drawbacks of needing real shadows, then having the local player with a real spot light that doesn't cast shadows is fine as it doesn't matter if the light goes through walls locally since for other players the spot light will be switched out for the volumetric light which does not.