feat: add STEP-093 runtime validation tooling

This commit is contained in:
tei
2026-09-24 14:39:39 +09:00
parent 8a5d88008c
commit b3ec8edc87
20 changed files with 765 additions and 24 deletions

View File

@@ -265,11 +265,13 @@ bool Renderer::Impl::tryRenderParticleFastFrame(const std::shared_ptr<UpdatePara
.stillImageRequest = updateParameters->stillImageRequest,
.continuousMode = updateParameters->mode == MapMode::Continuous,
.debugDisabled = updateParameters->debugOptions == MapDebugOptions::NoDebug,
.unsupportedContinuousLayer = particlePreparedContinuousUnsupported,
.supportedScene = particlePreparedSceneSupported,
.annotationMutation = annotationMutation,
};
const auto decision = evaluateParticleFastPath(input);
particleFastPathLastReason = decision.reason;
retainedUnderlayCache->recordFastPathDecision(decision.candidate, decision.reason);
if (!decision.candidate) {
particle::incrementRendererDebugCounter(particle::RendererDebugCounter::ParticleFastFrameMiss);
return false;
@@ -310,6 +312,7 @@ void Renderer::Impl::clearPreparedRenderTree() {
particlePreparedRangeConfigRevision = 0;
particlePreparedBottomPresent = false;
particlePreparedTopPresent = false;
particlePreparedContinuousUnsupported = false;
particlePreparedBackendSize = {};
particlePreparedSceneSupported = false;
}
@@ -321,6 +324,7 @@ void Renderer::Impl::render(const RenderTree& renderTree,
particle::incrementRendererDebugCounter(particle::RendererDebugCounter::FullRendererFrame);
if (!particleFastFrame) {
particle::incrementRendererDebugCounter(particle::RendererDebugCounter::ParticleFullFrame);
retainedUnderlayCache->recordFullCpuFrame();
}
auto& context = backend.getContext();
context.setObserver(this);
@@ -591,6 +595,8 @@ void Renderer::Impl::render(const RenderTree& renderTree,
? orchestrator.continuousRangeSupportsParticleFastPath(
ranges.continuousBegin, ranges.continuousEndExclusive)
: retainedSupported;
if (!particleFastFrame) particlePreparedContinuousUnsupported = rangeMode && !fastContinuousSupported;
retainedUnderlayCache->recordFastPathEligibility(retainedSupported && fastContinuousSupported);
if (!particleFastFrame) particlePreparedSceneSupported = retainedSupported && fastContinuousSupported;
const char* retainedFallbackReason = nullptr;
if (!retainedMode) {