Some stats code for knowing how many lights are touching surfaces

This commit is contained in:
Magnus Norddahl 2022-08-28 21:57:42 +02:00
parent 941cf6228a
commit 66124477b2

View file

@ -173,6 +173,15 @@ LevelMesh::LevelMesh(FLevel &doomMap, int sampleDistance, int textureSize)
surface->LightList.push_back(&light); surface->LightList.push_back(&light);
} }
} }
/*
std::map<int, int> lightStats;
for (auto& surface : surfaces)
lightStats[surface->LightList.size()]++;
for (auto& it : lightStats)
printf("%d lights: %d surfaces\n", it.first, it.second);
printf("\n");
*/
} }
// Determines a lightmap block in which to map to the lightmap texture. // Determines a lightmap block in which to map to the lightmap texture.