Load-phase markers: attribute the teal->green minute

The measured 58s uncontended load has ~0.2s of model loads -- the rest
is unattributed.  Stamp the renderer LoadMission span and count the
CheckLoad passes that find the event queue still busy (each delays the
ready transition by its 1s re-post), so the next live run names the
cost.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
arcattack
2026-07-22 20:28:01 -05:00
co-authored by Claude Opus 4.8
parent 54fd4a4ab0
commit 0ef5a3c4e1
2 changed files with 29 additions and 0 deletions
+17
View File
@@ -9607,6 +9607,23 @@ void DPLRenderer::SetViewAngle(Degree new_angle)
void
DPLRenderer::LoadMissionImplementation(Mission *mission)
{
// LOAD-PHASE MARKER (2026-07-22): the teal->green minute is almost all
// unattributed (models are ~0.2s of ~58s measured) -- stamp the
// renderer-side load so the next run names its share.
struct BTPhaseTimer
{
unsigned long t0;
BTPhaseTimer() : t0(GetTickCount())
{
DEBUG_STREAM << "[loadphase] renderer LoadMission BEGIN t=" << t0
<< std::endl << std::flush;
}
~BTPhaseTimer()
{
DEBUG_STREAM << "[loadphase] renderer LoadMission END +"
<< (GetTickCount() - t0) << "ms" << std::endl << std::flush;
}
} _phase;
Check(this);
Tell("DPLVideoRenderer::StartImplementation has been called\n");
DPLReadEnvironment(mission);