little lightmanager optimization