Skip to content

feat(sender): add Retina 16:10 profiles and bounded HiDPI backing - #226

Draft
Betafer wants to merge 1 commit into
swellweb:maint-3.6from
Betafer:codex/feat-retina-16x10-20261023
Draft

Betafer wants to merge 1 commit into
swellweb:maint-3.6from
Betafer:codex/feat-retina-16x10-20261023

Conversation

@Betafer

@Betafer Betafer commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Related to #207. Draft for review and physical 16:10 validation; this does not close the issue or claim that every reported black border is resolved.

The existing stream presets are 16:9, and the virtual-display panel limit discards a 1792 × 1120 HiDPI override on a 3072 × 1920 Receiver. This change adds two selectable Retina 16:10 profiles:

Profile Encoded frame Logical HiDPI desktop
Retina 16:10 3072 × 1920 1536 × 960
Retina 16:10 More Space 3584 × 2240 1792 × 1120

With Extended Desktop and Render Matching Stream Resolution enabled, these profiles can advertise a larger virtual framebuffer on an exact 16:10 panel, bounded to 3584 × 2240. The More Space frame is downsampled to the Receiver's physical 3072 × 1920 panel. Physical-size/color metadata, existing presets, default selection and codec policies are preserved. The larger-backing exception requires an explicit HiDPI render override; other aspect ratios and existing presets retain the previous panel limit.

The patch also adds labels in the five existing languages, automation aliases, 13 XCTest cases, a focused regression helper and testing documentation. It contains no Receiver/protocol changes, generated build metadata or downstream-only features. It is independent of the other open follow-ups.

Validation completed

Base: maint-3.6 at 6fa46ac4f1eba7f3797de75d2c22d50ab94def5c, rechecked before publication. Local machine: Apple M4, macOS 26.6.1.

  • Universal Sender Release build succeeds for arm64 and x86_64 with distribution signing disabled.
  • 194 public Sender XCTest cases pass, including the 13 added tests. The complete suite was repeated successfully during the final check. Tests run with the actual production sources in an isolated native command-line XCTest host; the app entry point is excluded and imports are adapted to that host. This is not the normal application-hosted test run and does not create a virtual display. An initial sandboxed rerun stalled in a pre-existing CGEvent-construction test; the full rerun outside that sandbox passed without sending any input events to the desktop.
  • The focused regression compiles against the original source and fails for both missing profiles; the corrected source passes. A negative control disabling the larger-backing exception fails the geometry assertions.
  • All 189 compared properties of the nine existing profiles match the baseline. Geometry tests cover opt-in, bounds, panel aspect ratios, HiDPI requirements and smaller/larger 16:10 panels.
  • Both new labels resolve through the production localization reader in all five languages; catalogs parse without duplicate keys.
  • Additional local synthetic-video smoke checks: VideoToolbox hardware H.264 and HEVC encoding at both sizes, then the unmodified public Receiver decoder, 12/12 frames per case, repeated after decoder reset. These fixtures are separate from the included tests and do not exercise a complete Sender session.

The included focused check can be run without starting the app:

python3 TargetBridge-Sender/scripts/test_retina_16x10.py . /tmp/tb-retina-check

GitHub-hosted validation — 2026-10-24

Independent fork CI run 40075621990 completed successfully on the exact PR source commit aff146e4f72b46b3ad4fa5a5525a15e8cf989992. Every job checks out and verifies that SHA. The isolated fork branch changes only the workflow configuration; the PR source remains unchanged.

GitHub runner Sender Receiver
macOS 15 Intel (x86_64) Build, 194 app-hosted XCTest cases, focused 16:10 regression, queue guards and permission probes passed Build, 697 checks and permission probes passed
macOS 15 Apple Silicon (arm64) Build, 194 app-hosted XCTest cases, focused 16:10 regression, queue guards and permission probes passed Build, 697 checks and permission probes passed

The normal xcodebuild test suites now pass on both GitHub-hosted architectures, extending the isolated local test-host results described above. Localization checks also passed in all four jobs. No source corrections were needed.

At the time of this audit, the upstream PR had no registered workflow runs or check suites. The linked result is supplemental CI in the public fork; it is not an upstream PR check. It does not validate a physical two-Mac display session, and this PR remains a draft pending the checklist below.

Hardware validation still required

The actual CGVirtualDisplay modes and a complete two-Mac session on a physical 16:10 Receiver have not been tested. Before marking this ready, please verify:

  • Both profiles create the expected logical/backing sizes, particularly 1792 × 1120 HiDPI with a 3584 × 2240 backing on the 3072 × 1920 panel.
  • Fullscreen covers all edges; text is sharp and cursor/input coordinates remain correct at the corners.
  • Reconnect and saved-profile selection retain the expected mode.
  • Existing Full HD, Retina 4K and 5K workflows still behave correctly on 16:9 Receivers.

A test on the MacBook Pro 16-inch (2019) from #207 would be especially useful. Both profiles request 60 fps; sustained frame rate has not been measured or guaranteed. More Space processes about 36% more pixels, so its performance must also be checked on that hardware. Mirror mode continues to follow the source display's aspect ratio.

Add native and More Space HiDPI profiles, bounded opt-in virtual backing,
localized labels, automation aliases and regression tests. Keep hardware
validation explicit and preserve existing profiles and Receiver behavior.
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