Thanks for opening the PR, and for taking the time to revisit the benchmark results and explicitly correct the conclusions. That distinction between what was measured and what was inferred is important.
The stated scope of #18977 matches the teardown cleanup we discussed: clear the two static caches once no WebGPU engine remains, without adding work to the per-frame path. Keeping this separate from runtime eviction and from GPU-memory claims is the right approach. The PR can be reviewed on its own merits; this does not depend on resolving the long-lived-engine case.
The corrections do not change the confirmed retention behavior, but they do narrow what the stress runs establish. In particular, the larger scenes were not exercising the claimed number of visible draws, and the reset comparisons involved different versions and growth mechanisms. The 30-box run is useful evidence about that specific workload, not a general result about device-loss prevention or the cost of clearing a large working set. If possible, please add a clearly marked correction to post 5 itself, so someone reading only that post does not miss this update.
The streamed-cell context is useful. Loading and unloading cells within one world is different from replacing the whole world: a world-transition reset removes accumulated history between visits, but does not bound growth during a long visit if cells continually introduce new resource identities. That is a legitimate workload to measure, although it does not yet tell us whether the retained cost is significant at your actual streaming rate or whether automatic eviction is the best solution.
For that question, the most useful next evidence would be a representative streamed route after eliminating avoidable recreation, including revisits to cells: the number of live resources versus newly created resources, retained cache entries over time, session duration, and memory and frame-time impact. Creation totals and retained entry counts should be reported separately, especially across resets. That would help us assess whether resource reuse or cleanup at suitable application-controlled boundaries is sufficient without repeatedly discarding useful entries for cells that remain loaded.
Our constraint remains the same: the current WebGPU path already has more CPU-side overhead than WebGL, partly because of the extra bookkeeping and caches, so we try to avoid adding work to the rendering hot path as much as possible. I would keep default runtime eviction out of the teardown PR. A targeted or opt-in design can be considered if the realistic measurements justify it, with evidence that the disabled path remains effectively unchanged and that the enabled path provides a worthwhile memory/performance tradeoff.
Thanks also for sharing the project context and the rendering caveats alongside the video. Let’s keep the teardown fix moving separately and use the follow-up measurements to decide whether another change is needed.