Reducing visible lightCount.
This commit is contained in:
parent
a9e9384165
commit
18bda9181f
@ -524,9 +524,9 @@ void Graphics::updateClosestLights() {
|
||||
std::sort(closestLights.begin(),
|
||||
closestLights.end(),
|
||||
[this](Light a, Light b) {return compareLightDistances(a, b); });
|
||||
if (level->getLights()->size() > 32) {
|
||||
if (level->getLights()->size() > 15) {
|
||||
closestLights = std::vector<Light>(&closestLights[0],
|
||||
&closestLights[31]);
|
||||
&closestLights[14]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user