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

10 — Performance

Keywords: efficiency pyramid, cache-friendly ECS, simulation LOD, zero-allocation, profiling, benchmarks, GPU compatibility, render tiers, delta encoding, RAM mode

IC follows an efficiency-first philosophy: better algorithms → cache-friendly ECS → simulation LOD → amortized work → zero-allocation hot paths → THEN multi-core as a bonus. A 2-core 2012 laptop must run 500 units smoothly. Render quality tiers down automatically on older GPUs.


Section Index

SectionDescriptionFile
Efficiency PyramidCore principle, 6-layer optimization hierarchy (algorithm → cache → LOD → amortize → zero-alloc → parallelism)efficiency-pyramid
Targets & ComparisonsPerformance targets, vs C# RTS engines, input responsiveness vs OpenRAtargets
GPU & Hardware Compatibilitywgpu backend matrix, 2012 laptop problem, render quality tiers, auto-detection, hardware profiles, config.toml render sectiongpu-hardware
Profiling & RegressionProfiling strategy, regression testing, benchmark infrastructureprofiling
Delta Encoding & InvariantsChange tracking performance, decision record, cross-document performance invariantsdelta-encoding
RAM ModeMinimal memory footprint mode for constrained environmentsram-mode
Data Layout SpectrumNon-ECS data layouts (SoA, AoSoA, Arrow, SIMD), per-subsystem mapping, infrastructure efficiencydata-layout-spectrum