tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::DeltaCollector Class Reference

#include <tess/sim/delta_frame.h>

Public Member Functions

 DeltaCollector (DeltaCollectorOptions options)
void reserve (std::size_t chunk_capacity, std::size_t tile_capacity, std::size_t entity_capacity, std::size_t overlay_capacity=0, std::size_t overlay_node_capacity=0)
void begin_tick (std::uint64_t tick) noexcept
void record_move (EntityHandle entity, Coord3 from, Coord3 to)
void record_teleport (EntityHandle entity, Coord3 from, Coord3 to)
void record_spawn (EntityHandle entity, Coord3 at)
void record_despawn (EntityHandle entity, Coord3 at)
void record_park (EntityHandle entity, Coord3 at)
void record_place (EntityHandle entity, Coord3 at)
auto append_chunk_record (TileChunkDelta record) -> std::size_t
auto append_tile_record (TileDelta record) -> std::size_t
auto pending_tile_count () const noexcept -> std::size_t
void note_collected_mask (std::uint32_t dirty_mask) noexcept
void drop_pending_tile_state () noexcept
void mark_baseline_pending () noexcept
void stage_path_overlay (EntityHandle entity, PathTicket ticket, PathView remaining)
auto publish () -> DeltaFrame
void clear () noexcept
auto version () const noexcept -> RenderVersion
auto options () const noexcept -> const DeltaCollectorOptions &
auto stats () const noexcept -> const DeltaCollectorStats &

Static Public Attributes

static constexpr std::size_t kDropped = static_cast<std::size_t>(-1)

Detailed Description

Accumulates invalidations into bounded caller-sized frame storage.

The collector owns every returned frame view until its next mutation. After reserve, steady-state recording does not allocate; overflow truncates the frame and requires a baseline resynchronization.


The documentation for this class was generated from the following file: