only lightmap updated tiles once they're visible
This commit is contained in:
parent
ca61ae470f
commit
aa51ac7b6d
6 changed files with 26 additions and 7 deletions
|
|
@ -140,6 +140,12 @@ LevelMeshTileStats LevelMesh::GatherTilePixelStats()
|
|||
stats.tiles.dirty++;
|
||||
stats.pixels.dirty += area;
|
||||
}
|
||||
|
||||
if (tile.AlwaysUpdate)
|
||||
{
|
||||
stats.tiles.dirtyDynamic++;
|
||||
stats.pixels.dirtyDynamic += area;
|
||||
}
|
||||
}
|
||||
stats.tiles.total += Lightmap.Tiles.Size();
|
||||
return stats;
|
||||
|
|
|
|||
|
|
@ -250,7 +250,7 @@ struct LevelMeshTileStats
|
|||
{
|
||||
struct Stats
|
||||
{
|
||||
uint32_t total = 0, dirty = 0;
|
||||
uint32_t total = 0, dirty = 0, dirtyDynamic = 0;
|
||||
};
|
||||
|
||||
Stats tiles, pixels;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue