Add MetalFX temporal upscaling to the Metal 4 renderer #42

Manually merged
github merged 3 commits from gh-pr/42/head into gh-pr/42/base 2026-11-26 20:05:14 +00:00
Owner

@⁠maple-quartz18 on GitHub · 2026-11-23 10:53 UTC · original
maple-quartz18:feature/metalfx-temporal-final → master · +365 −32 · 6 files · 3 commits · merged 2026-11-23 12:18 UTC

Summary

  • Add opt-in 1.5x and 2x MetalFX temporal upscaling to the Metal 4 renderer.
  • Add motion-vector MRT, Halton jitter, previous-frame matrix state, and full-resolution upscaled output.
  • Use a Git-pinned metal-rust revision while the MTL4FX facade is reviewed upstream, rather than vendoring dependency source.
  • Fall back safely to native resolution when MetalFX Temporal Scaler is unavailable.

Upstream dependency

Verification

  • cargo check --locked -p sixng-gui --features metal4-poc
  • cargo test -p sixng-gui --features metal4-poc mtl4_ (3 passed)
  • Full sixng-gui Metal 4 window launched successfully and presented a first frame.
**@⁠maple-quartz18** on GitHub · 2026-11-23 10:53 UTC · [original](https://github.com/holdmysocks/SixNG/pull/42) `maple-quartz18:feature/metalfx-temporal-final` → `master` · +365 −32 · 6 files · 3 commits · merged 2026-11-23 12:18 UTC ## Summary - Add opt-in 1.5x and 2x MetalFX temporal upscaling to the Metal 4 renderer. - Add motion-vector MRT, Halton jitter, previous-frame matrix state, and full-resolution upscaled output. - Use a Git-pinned `metal-rust` revision while the MTL4FX facade is reviewed upstream, rather than vendoring dependency source. - Fall back safely to native resolution when MetalFX Temporal Scaler is unavailable. ## Upstream dependency - MTL4FX binding: https://github.com/gamesir-labs/Metal-Rust/pull/1 ## Verification - `cargo check --locked -p sixng-gui --features metal4-poc` - `cargo test -p sixng-gui --features metal4-poc mtl4_` (3 passed) - Full `sixng-gui` Metal 4 window launched successfully and presented a first frame.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:05:13 +00:00
github manually merged commit 39eae99c8b into gh-pr/42/base 2026-11-26 20:05:14 +00:00
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-11-23 12:08 UTC · original

Updated per the review feedback:

  • Removed the ~103k-line vendored metal-rust source from this PR.
  • Submitted the narrow MTL4FX binding change upstream: https://github.com/gamesir-labs/Metal-Rust/pull/1
  • SixNG now pins the tested fork commit c417ff66b8b263a5708116d7cdfad966b599db4a temporarily, so the PR no longer carries a full dependency fork.
  • The pin contains the existing SixNG Metal 4 support plus the new Temporal Scaler API. After the upstream PR is merged/released, this pin can be replaced with that upstream revision or release.
  • Verified cargo check --locked -p sixng-gui --features metal4-poc, the 3 focused MTL4 tests, full application startup, and all macOS/Linux/Windows CI jobs.
**@⁠maple-quartz18** on GitHub · 2026-11-23 12:08 UTC · [original](https://github.com/holdmysocks/SixNG/pull/42#issuecomment-7100561483) Updated per the review feedback: - Removed the ~103k-line vendored `metal-rust` source from this PR. - Submitted the narrow MTL4FX binding change upstream: https://github.com/gamesir-labs/Metal-Rust/pull/1 - SixNG now pins the tested fork commit `c417ff66b8b263a5708116d7cdfad966b599db4a` temporarily, so the PR no longer carries a full dependency fork. - The pin contains the existing SixNG Metal 4 support plus the new Temporal Scaler API. After the upstream PR is merged/released, this pin can be replaced with that upstream revision or release. - Verified `cargo check --locked -p sixng-gui --features metal4-poc`, the 3 focused MTL4 tests, full application startup, and all macOS/Linux/Windows CI jobs.
Author
Owner

@⁠maple-quartz18 on GitHub · 2026-11-24 12:00 UTC · original

It would be great if someone could implement open-source FSR3 super-resolution support on Windows and Linux. The implementation should integrate with the existing rendering, motion-vector, depth, jitter, and presentation paths while preserving the current native fallback behavior on each platform.

**@⁠maple-quartz18** on GitHub · 2026-11-24 12:00 UTC · [original](https://github.com/holdmysocks/SixNG/pull/42#issuecomment-7130840309) It would be great if someone could implement open-source FSR3 super-resolution support on Windows and Linux. The implementation should integrate with the existing rendering, motion-vector, depth, jitter, and presentation paths while preserving the current native fallback behavior on each platform.
This discussion has been locked. Commenting is limited to contributors.
No description provided.