Decreasing concurrent light count for better fps.

This commit is contained in:
Faerbit 2015-03-12 19:24:50 +01:00
parent e2e343db1a
commit 436495f0c7

View File

@ -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]);
}
}