39 s.render_pass_duration_ms =
45 for (
const auto&
r : rects) {
46 area +=
static_cast<double>(
r.area());
48 s.dirty_rect_area_px = area;
49 s.dirty_rect_count =
static_cast<int>(rects.size());
Tracks rectangular regions that need repainting.
Definition dirty_tracker.hpp:13
const std::vector< Rect > & dirty_rects() const
Get the list of dirty rectangles (empty if full repaint).
Definition dirty_tracker.hpp:60
Frame-level render pass manager.
Definition render_pass.hpp:41
float total_time_ms() const
Total time for the last frame.
Definition render_pass.hpp:117
Motion cost attribution — correlates render-pass cost and dirty area with the motion traces that were...
std::function< RenderCostSnapshot()> CostProbe
Definition motion_cost.hpp:78
CostProbe make_render_cost_probe(const pulp::render::RenderPassManager *passes, const pulp::render::DirtyTracker *dirty)
Build a CostProbe that snapshots both subsystems each tick.
Definition motion_cost_render.hpp:32
@ s
Definition input_events.hpp:41
@ r
Definition input_events.hpp:41
Snapshot of render-layer cost for the current frame.
Definition motion_cost.hpp:72