Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Layout Cache

File: src/layout/core/layout_cache.rs

LayoutCache stores:

  • cached intrinsic sizes
  • dirty flags
  • per-depth entity lists

Best Practices

  • avoid mutating UNode, ULayout, or USelf every frame without a real reason
  • prefer state-driven updates
  • avoid unnecessary hierarchy churn

When To Extend It

  • when node counts grow much larger
  • when dirty ratios stay high most of the time
  • cargo test -p univis_ui_engine --lib layout::core::layout_cache