Skip to content

fix: prevent transient Racing → Loading Race flicker from telemetry gaps - #11

Draft
Refilewski wants to merge 3 commits into
mainfrom
fix/race-loading-telemetry-gap-20261025
Draft

Refilewski wants to merge 3 commits into
mainfrom
fix/race-loading-telemetry-gap-20261025

Conversation

@Refilewski

Copy link
Copy Markdown
Owner

Problem observed in attached diagnostics (AzimuthRPC 0.9.9)

During an ongoing race, event context remains 1 while TelemetryActive briefly flips True → False → True. The current interpreter classifies an unknown UI + context 1 + inactive telemetry as RaceLoading, so Discord may briefly display Loading Race in the middle of racing.

Examples (2026-10-20):

  • 01:09:33–01:09:36: "Racing" → "Loading Race" → "Racing", with context 1 throughout.
  • 01:01:37–01:01:43: same transition lasting several seconds.
  • Another separate UiMode=Loading transition correctly represents a detected loading screen; that should never be hidden.

Change

  • Apply a bounded 2-second grace period to raw Activity=RaceLoading when the same attached event context 1 was recently confirmed as Racing, only if UiMode=Unknown.
  • Preserve explicit loading UI, FreeRoam and detached/unsupported snapshots. Reset on game/hook detach, mapping invalidation, offline and runtime failures.
  • Add deterministic tests for brief gaps, timeout, confirmed loading, FreeRoam and detach.
  • This changes only standalone Discord activity classification. No memory offsets, hooks, native FH2ML plugin or release version are changed.

Validation

  • Review existing diagnostics and add deterministic regression tests
  • GitHub Actions Windows build and tests
  • Live testing: race start, in-race pauses, race finish and reopening the game
  • Check no unintended delay showing genuine race-loading states

Please keep draft until Windows CI and live gameplay confirm behavior.

Related but separate: #10 addresses invalid car IDs and should not be duplicated here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant