mirror of
https://github.com/ZDoom/ZDRay.git
synced 2024-11-22 12:01:09 +00:00
Some stats code for knowing how many lights are touching surfaces
This commit is contained in:
parent
941cf6228a
commit
66124477b2
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue