Skip to content

Retry a missing stock gauge every 250 ms and notify electric-material bindings once - #178

Merged
Views2k merged 2 commits into
mainfrom
fix/stock-gauge-retry-throttle
Nov 8, 2026
Merged

Views2k merged 2 commits into
mainfrom
fix/stock-gauge-retry-throttle

Conversation

@Views2k

@Views2k Views2k commented Nov 7, 2026

Copy link
Copy Markdown
Owner

When the game's own speedometer is hidden, or the direct gauge object is absent on the current build, the direct gauge resolver re-ran its discovery on every HUD tick and failed every time. On 6.483.970.0 every PC is in this state today.

Changes

  • NativeHudMemoryResolver remembers a missing gauge for the same module, source, car and powertrain and retries after 250 ms. A new car, source or session reads at once, and a successful read resumes normal sampling.
  • Gauge views bind DiagnosticsViewModel.IsElectricPowertrain, which changes only when the powertrain does, instead of re-evaluating NativeGaugeFrame.IsElectric on every frame.

Verification

  • Integration build of main plus all seven 2.7.4 fix branches on the maintainer PC: build clean, dotnet format whitespace --verify-no-changes clean.
  • PR gate selection (Test-AppBehavior.ps1 -BaseRevision main) on that build: Core 780, Telemetry 96, Update 184, Updater 76 and App 1295 tests passed, 0 failed. NativeGaugeDirectResolverTests and DiagnosticsViewModelTests cover the retry window, immediate recovery on a new context, and the single electric-material notification.
  • Not run: the full nightly suite (runs before the 2.7.4 tag) and any live game check.

… bindings once

When the game's own speedometer is hidden, the direct gauge reader found no
child object on every HUD tick and ran its discovery again each time. The
resolver now remembers the missing gauge for the same module, source, car and
powertrain and retries after 250 ms; a new car, source or session reads at
once. Gauge views bind IsElectricPowertrain, which changes only when the
powertrain does, instead of re-evaluating the whole native frame.
@Views2k
Views2k merged commit 5b6f64b into main Nov 8, 2026
10 checks passed
@Views2k
Views2k deleted the fix/stock-gauge-retry-throttle branch November 8, 2026 00:33
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