Skip to content

[GPU 20/20] Enforce performance budgets and ship qualified desktop runtime packages #42

Open

Description

@danwalmsley

Parent epic: #22
Implementation order: 20 of 20.
Depends on: #41.

Outcome

Ship reproducible desktop packages with measured GPU-resident presentation, Kestrel usability and honest compatibility/performance claims.

Implementation

  • Add deterministic benchmark automation for Kestrel courtyard/fixture and seeded 10k/100k-line scenes, camera interaction, theme/style changes, live resize, idle and a 30-minute lifecycle/interaction run.
  • Compare hardware Chrome on the same machine with identical logical viewport, DPR, source/shaders/model and interaction script. Record exact hardware/driver/browser/runtime/framework versions.
  • Measure CPU API/encoding/submission, GPU execution, compositor presentation, input-to-presentation latency, dropped frames, managed/native allocations, resident GPU memory and upload/copy/readback bytes separately.
  • Enforce 10k-line sustained 60 Hz at 1920×1080 logical pixels, DPR 1/2. For 100k lines, require 60 Hz where Chrome achieves it; otherwise p95 render/submission time within 20% of Chrome. Record actual presented-frame intervals so app-reported CPU time cannot stand in for smoothness.
  • Require zero ordinary CPU pixel readback/upload, no full geometry reupload for camera-only/unchanged frames, no idle GPU work and bounded memory. Explicit export/readback is a separate benchmark phase.
  • Compare non-GPU tests with the pinned baseline and enforce the agreed 5% regression budget under repeatable measurements. Record repetitions/warmup/variance rather than deciding from a single noisy run.
  • Package pinned Dawn/Tint/ANGLE and presenter hooks for win-x64/osx-arm64/linux-x64. Handle dynamic-library names/search paths, CRT/native ABI compatibility, license notices, symbols and existing signing/distribution requirements.
  • Add clean package-consumer smoke apps for both frameworks; no developer checkout/native build cache may be required at runtime.
  • Publish actual supported OS/GPU/presenter/optional-feature matrix, configuration/fallback options, diagnostics, known exclusions and upgrade/pin policy.
  • Link all child completion evidence back into the epic and close the epic only when every required gate is met.

Tests

  • Hardware performance matrix and repeated long-run resize/loss/document-switch tests.
  • Trace audit confirming shared allocation sampling and identifying any GPU-local conversion copy.
  • Clean-machine/relocated NuGet consumer execution for both presenters and all RIDs.
  • Graphics-disabled/no-adapter behavior, missing/wrong native library, version mismatch and driver/device-loss recovery.
  • Final official conformance, Kestrel exchange/export and application-fallback regression runs.

Verification evidence

Publish a release evidence index containing install/run commands, package hashes, license/symbol manifests, conformance links, performance distributions and memory/copy traces. Hardware-unavailable results cannot satisfy the release gate.

Acceptance

  • Agreed 60 Hz/stress and non-GPU regression budgets pass on the recorded qualification hardware.
  • No ordinary CPU pixel transport, unnecessary geometry upload or idle GPU work.
  • Long-run resources plateau and loss/resize/teardown remain reliable.
  • All three RIDs work from clean packages in Avalonia and Uno.
  • Support/feature/fallback documentation is accurate and complete.
  • Every epic checkbox has linked verification evidence; no stage is closed solely because Kestrel launched.

Completion requirements

Link the implementation PR, exact test commands, native/runtime/framework revisions and verification artifacts before closing. Follow the epic's architecture and copy/lifetime invariants. Any unavailable mandatory hardware or missing required functionality remains incomplete, not a pass.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions