|
tess 1.0.0
Performance-first tile and path simulation substrate
|
#include <tess/storage/chunk_meta.h>
Public Attributes | |
| DirtyMask | mask {} |
| Box3 | bounds {} |
| ContentVersion | content_version {} |
| ResidencyGeneration | residency_generation {} |
Generation-stamped snapshot returned by World::observe_dirty().
Pass it to World::clear_dirty_observed() after rebuilding derived state. The clear succeeds only if no later dirty mark changed the content version, so a maintenance pass cannot erase intervening marks.
residency_generation scopes the observation to one residency interval. A sparse world restarts a rematerialized chunk's content version at zero, so content version equality alone would let an observation taken before an eviction match a mark made after rematerialization and clear work it never saw. Always-resident worlds never evict and leave this invalid on both sides.