Decreasing concurrent light count for better fps.
This commit is contained in:
parent
e2e343db1a
commit
436495f0c7
@ -526,9 +526,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[15]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user