# Stale SceneCulling explicit chunk bounds when a cell gets static and dynamic dirty marks in the same frame 

**URL:** <https://forums.unrealengine.com/t/stale-sceneculling-explicit-chunk-bounds-when-a-cell-gets-static-and-dynamic-dirty-marks-in-the-same-frame/2854994>\
**Category:** Rendering\
**Tags:** unreal-engine, Epic-Pro-Support, question\
**Created:** [October 14, 2026, 10:13pm UTC](https://forums.unrealengine.com/t/stale-sceneculling-explicit-chunk-bounds-when-a-cell-gets-static-and-dynamic-dirty-marks-in-the-same-frame/2854994 "2026-10-14T22:13:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 14, 2026, 10:13pm UTC](https://forums.unrealengine.com/t/stale-sceneculling-explicit-chunk-bounds-when-a-cell-gets-static-and-dynamic-dirty-marks-in-the-same-frame/2854994/1 "2026-10-14T22:13:29Z")

</div>

I have multiple runtime PCG volumes in my scene, which uses HLSL point processor and GPU static mesh spawners.

When I walk around the map, the runtime cells gets culled in and out, depending on my camera angle.

After investigating, I’ve got to the solution below.

I really just want to ask if you think that’s a reasonable fix or wasn’t actually a bug (is it has a real reason to not accumulate the dirty flags?).

**The bug**

`MarkCellBoundsDirty` (SceneCulling.cpp:1911) keeps two “needs a bounds rebuild” flags per cell, one for static chunks and one for dynamic chunks. Stock UE **assigns** them instead of combining them. If a cell gets marked twice in the same frame:

1. A static change marks it, for example a grass’s instance update (line 2116).
2. Something else in the same cell marks it dynamic-only (line 2032 or line 1595). That call writes `false` into the static flag.

The cell stays in the dirty list, but the rebuild step (line 2535) only recomputes static chunks when the static flag is set. The grass’s chunk bounds keep their old data, and the GPU culls against those as the camera moves.

**The fix**

OR the dirty flags into the masks instead of overwriting them. A cell that already has a static mark keeps it until the bounds rebuild runs.

```auto
    SC_FORCEINLINE void MarkCellBoundsDirty(int32 CellIndex, bool bStaticChanged, bool bDynamicChanged)
    {
        if (ExplicitBoundsMode == EExplicitBoundsUpdateMode::Incremental)
        {
            if (!(DirtyCellBoundsMaskStatic[CellIndex] || DirtyCellBoundsMaskDynamic[CellIndex]))
            {
                DirtyCellBoundsIndices.Add(CellIndex);
            }
            //BEGIN MAGIC SOUP - rmartinez - Accumulate dirty flags; assigning let a later dynamic-only mark clear a static mark from the same frame, leaving static chunk bounds stale
            if (bStaticChanged)
            {
                DirtyCellBoundsMaskStatic[CellIndex] = true;
            }
            if (bDynamicChanged)
            {
                DirtyCellBoundsMaskDynamic[CellIndex] = true;
            }
            //END MAGIC SOUP
        }
    }

```

[Attachment Removed]

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [October 14, 2026, 10:13pm UTC](https://forums.unrealengine.com/t/stale-sceneculling-explicit-chunk-bounds-when-a-cell-gets-static-and-dynamic-dirty-marks-in-the-same-frame/2854994/2 "2026-10-14T22:13:32Z")

</div>

**Steps to Reproduce** [Attachment Removed]

---

<div class="post-metadata">

**Author:** ![Petrockets](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/petrockets/32/1142518_2.png) [@Petrockets](https://forums.unrealengine.com/u/Petrockets)\
**Post date:** [October 14, 2026, 11:49pm UTC](https://forums.unrealengine.com/t/stale-sceneculling-explicit-chunk-bounds-when-a-cell-gets-static-and-dynamic-dirty-marks-in-the-same-frame/2854994/3 "2026-10-14T23:49:56Z")

</div>

Hello,

Thanks for reporting this culling problem. I’ve created the following issue which should be public soon for tracking [https://issues.unrealengine.com/issue/UE\-403021\](https://issues.unrealengine.com/issue/UE%5C-403021%5C). We’ll likely implement a similar fix if there isn’t something related to PCG going on here.

[Attachment Removed]
