Content Capabilities
This page is not a tutorial — it is an acceptance page: every block below corresponds to a rendering feature that is actually wired up. Copy the structure when writing; no configuration change is needed.
Admonitions
Use admonitions to qualify a conclusion ("follow the source of your current version"), not to carry the main line of an argument.
Two admonitions back to back break reading rhythm; use a list when you need parallel points.
Code blocks: line highlighting and line numbers
void FSceneRenderer::PrepareView()
{
// Highlighted lines point at the lines to watch, not the whole block
for (FViewInfo& View : Views)
{
View.ViewFrustum = BuildFrustum(View);
View.PrimitiveVisibilityMap.Reset();
}
VisibilityFlags.SetNumZeroed(Primitives.Num());
ParallelFor(Primitives.Num(), [&](int32 Index) {
VisibilityFlags[Index] = TestFrustum(Primitives[Index]) ? 1 : 0;
});
}
Tabs: two views of the same thing
- Render thread
- RHI thread
Visibility is decided on the render thread and written into per-view flag arrays. This stage only decides; it produces no draw commands.
Draw commands are generated by later stages and submitted by the RHI thread. The two threads hand off through command lists and share no mutable state.
Mermaid: flowcharts
KaTeX: formulas
Inline math carries a criterion, for example "the point is inside the frustum" as ; display math carries a derivation:
Like code blocks, formulas support a conclusion; they never replace the explanation.
Wide tables
Horizontal scrolling is handled by the stylesheet, so a wide table never pushes a horizontal scrollbar onto the whole page:
| Stage | Input | Output | Thread | Typical cost driver | Parallelisable | Debug entry point |
|---|---|---|---|---|---|---|
| View preparation | FSceneView / FViewInfo | Frustum planes, culling matrices, occlusion history | Render | View count and occlusion readback | No (depends on earlier results) | FSceneRenderer::PrepareView |
| Frustum culling | Primitive set + bounds | Pass / reject bit flags | Render | Primitive count × bounds test cost | Yes (slice by index range) | VisibilityFlags slots |
| Relevance computation | Primitives that survived | Per-view visibility flags, static mesh batches | Render | Material and LOD relevance tests | Yes (local buffers + merge) | ComputeRelevance |
| Command generation | Visible set | FMeshDrawCommand | Render → RHI | Draw-state sorting and cache hits | Partially | MeshPassProcessor |