Repository navigation
Fix xHome streaming, Xcode 27 build, and low-latency upscaling - #16
Open
dhartman25 wants to merge 2 commits into
Open
dhartman25 wants to merge 2 commits into
dhartman25 wants to merge 2 commits into
Conversation
- Decode StreamStateResponse leniently: xHome /state replies include
"errorDetails":{"code":null,"message":null} on healthy sessions, which
failed decoding with "State poll error: Decode failed".
- xHome sessions go Provisioning -> Provisioned without passing through
ReadyToConnect, so the home path timed out waiting for it. Accept either
state, and perform the /connect auth step if ReadyToConnect is reported
and an MSA token is available.
- Xcode 27's tvOS SDK marks MTLFXSpatialScaler APIs as tvOS 27.1+, so the
tvOS 26 target no longer compiled. Gate MetalFX use behind
#available(tvOS 27.1); older tvOS falls back through the existing
"MetalFX unavailable" path.
- Add tests for the null errorDetails decode and a Provisioned-only xHome
connect.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ETMULew4xpK5YpbnhMkSUb
VTLowLatencyFrameInterpolation buffers a frame (~33 ms at 60 fps), and on a 1080p -> 4K display it is eligible as a fallback upscaler even when Low Latency Mode is on. Thread the low-latency setting through RenderLadderPlanner into UpscaleCapabilityResolver and exclude LLFI when it is enabled; toggling the setting re-plans the render ladder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ETMULew4xpK5YpbnhMkSUb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed and why
/statereplies for healthy xHome sessions include"errorDetails":{"code":null,"message":null}.StreamStateResponserequired non-null strings, so every xHome launch failed withState poll error: Decode failed. A nullcodenow decodes as "no error".Provisioning→Provisionedand never reportReadyToConnect, so the home path timed out at "Provisioning". It now accepts either state. IfReadyToConnectis reported and an MSA token is available, it runs the/connectauth step the same way the cloud path does.MTLFXSpatialScalerandsupportsMetal4FXas tvOS 27.1+, so the tvOS 26 target no longer compiled. MetalFX use is now gated on#available(tvOS 27.1, *). The scaler is stored asAnyObject?behind an availability-gated accessor, because stored properties can't carry availability. On older tvOS it falls back through the existing "MetalFX unavailable" path.VTLowLatencyFrameInterpolationbuffers a frame (about 33 ms at 60 fps). On a 1080p to 4K display it stayed eligible as a fallback upscaler even with Low Latency Mode on. The setting is now passed throughRenderLadderPlannertoUpscaleCapabilityResolver, which skips LLFI when it is enabled.Screenshots or recording
N/A
Test plan
swift testfor StratixModels, StreamingCore, VideoRenderingKit and XCloudAPI: all pass (129 tests).errorDetailsdecoding, and an xHome connect that only ever reportsProvisionedwith nullerrorDetails. The existingReadyToConnecthome tests still pass.Stratix-ReleaseRunwith Xcode 27.2 and ran it on an Apple TV 4K (tvOS 27.2.1). Streamed from an Xbox Series X over xHome. Before this change, the launch failed at the decode error and then at the provisioning timeout. After it, the stream connects and plays.🤖 Generated with Claude Code
https://claude.ai/code/session_01ETMULew4xpK5YpbnhMkSUb