feat: add STEP-093 runtime validation tooling
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user