Skip to content

FLT-506 project notes (not engine reference)

This file holds FLT-506 game-plan implications of the engine facts pinned in VERSION.md. It is not engine reference: the neutral engine facts (versions, TFMs, API surface, determinism guidance) stay in VERSION.md, and only the project's decisions and plan consequences live here.

BepuPhysics determinism — plan D4

From VERSION.md (BepuPhysics v2 note): on a single machine the simulation is deterministic given deterministic external interaction when either it runs single-threaded (no IThreadDispatcher) or multithreaded with Simulation.Deterministic = true (default false, slight perf cost; different processor architectures may implement instructions differently). Cross-computer determinism is not guaranteed, v2 has no software-float / fixed-point mode, and results are not guaranteed identical across Bepu versions.

Plan consequence: this matches plan D4 exactly: same-ISA exact hash, cross-ISA tolerance, x64-only authoritative servers/validators. Compatibility reading (was "BepuPhysics × determinism contract (D3/D4)" in VERSION.md): ✅ with constraints — official Q&A says deterministic on one machine if single-threaded or Simulation.Deterministic = true; cross-ISA bitwise determinism is explicitly not guaranteed. Plan D4 (x64-only authority, cross-ISA tolerance) is the documented-correct posture. Note Deterministic defaults to false — the sim must set it.

SDL / gamepad gyro — plan D5

Engine facts (in VERSION.md): SDL2 itself exposes gamepad sensors (SDL_GameControllerHasSensor / sensor-data APIs since SDL 2.0.14), but Stride 4.4.3's GameControllerSDL.Update() polls only buttons, axes, and hats — no sensor calls anywhere in the SDL gamepad path. Stride's generic IGyroscopeSensor / IAccelerometerSensor / IGravitySensor / IOrientationSensor interfaces exist in Stride.Input, but nothing in the SDL gamepad backend feeds them in 4.4.3.

Plan consequence (D5): gyro cannot come from Stride's SDL gamepad API as shipped; SDL2 sensor P/Invoke (or JoyShockMapper) plus the C# GamepadMotionHelpers port remains the path, exactly as §12 assumes. Compatibility reading (was "SDL2 (via Stride) × gyro plan (D5)" in VERSION.md): ❌ not via Stride's API. This confirms, and narrows, the §12 assumption "SDL gamepad sensor API (via Stride's SDL layer)": the native API exists; Stride's layer does not surface it.

GamepadMotionHelpers port — plan D5

Engine facts (in VERSION.md): repo https://github.com/JibbSmart/GamepadMotionHelpers, MIT, no GitHub releases and no tags, so pin commit f1a76007ec058122a4bb6f19c816c6c0c7b7f12a (2026-07-13).

Plan consequence: per D5 the algorithms are ported to pure C# from this commit (clean-room rules D16 do not apply — MIT, attribution via the licence note), proved against a recorded native trace within 0.1°. Compatibility reading (was "GamepadMotionHelpers @ f1a7600 × C# port (D5)" in VERSION.md): ✅ compatible — MIT (porting is licensed; keep the copyright notice). No tags/releases exist, so commit-pinning is the only option. Header-only C++ — the port is an algorithm port, proved by the D5 native-vs-C# trace test (0.1°), not by a package restore.

Netcode / transport — LiteNetLib

Engine fact (in VERSION.md): LiteNetLib 2.1.5, TFMs net8.0 + netstandard2.1, no NuGet dependencies, consumable from net10.0.

Project note: transport only, per D19/§12; no Stride coupling.

MCP dev bridge — plan D7

Engine fact (in VERSION.md): ModelContextProtocol 2.4.0, TFMs net8.0 + netstandard2.0, consumable from net10.0.

Project note: per D7 it goes only in the #if DEV_MCP dev bridge assembly, never in Release. Compatibility is conditional on D7/D17: #if DEV_MCP assembly only, excluded from Release publish — a build-graph property, not a version property.

Pin / lock discipline — plan D17 and step 1.1

Project notes moved from VERSION.md:

  • "Pinned version" is the exact version to put in Directory.Packages.props / the lock file — no floating ranges in project files (D17).
  • packages.lock.json + RestoreLockedMode (step 1.1 check, D17) is the mechanism that makes the pin reproducible once the SDK is installed.
  • Which exact BepuPhysics beta (>= beta.28) a restore resolves is decided by NuGet minimum-version rules vs. any central pin — step 1.1's lock file must record the resolved version explicitly.
  • For the .NET SDK: pin 10.0.404 (e.g. global.json with rollForward disabled for the lock, per D17) before the step-1.1 locked-restore check.
  • CommunityToolkit preview.69 runtime/API compat with 4.4.2/4.4.3 changes is checked by the step-1.2 hello-world/code-only build — that build is the check, not VERSION.md.

Editor / workflow — plan D1, §12

Engine fact (in VERSION.md): Game Studio editor is Windows-only (Linux via Wine/Proton, unsupported; no macOS editor), while building/code-only is supported on Windows, Linux and macOS.

Project note: agent-driven YAML/code-only work (D1, §12) avoids the editor constraint; any editor-dependent step is Windows-only.

Overall plan reading (moved from VERSION.md verdict)

The one ❌ in the compatibility matrix is a plan correction, not a version conflict: Stride does not expose gamepad gyro; D5 already budgets the workaround (native SDL sensor path + GamepadMotionHelpers C# port).