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
+12
View File
@@ -1369,6 +1369,18 @@ void
case CreatingMission:
case LoadingMission:
case WaitingForLaunch:
// LOAD-PHASE MARKER (2026-07-22): each CheckLoad pass that finds the
// event queue still busy delays the ready transition by its 1s
// re-post -- count them so the teal->green minute is attributable.
if (!eventQueue->IsPriorityEmpty(MinEventPriority))
{
static int s_busy_passes = 0;
++s_busy_passes;
if ((s_busy_passes % 5) == 1)
DEBUG_STREAM << "[loadphase] CheckLoad: event queue still busy"
<< " (pass " << s_busy_passes << ") t=" << GetTickCount()
<< std::endl << std::flush;
}
if (eventQueue->IsPriorityEmpty(MinEventPriority))
{
Host *console_host;