Skip to content

About

This Framgen provides a borderless overlay that sits directly on top of the target window. Support and track window movement.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

Repository files navigation

FrameInterpolation-macOS (Framgen)

Real-time frame interpolation for macOS - A spiritual successor to "Lossless Scaling" (LSFG), optimized for Apple Silicon and Intel Macs running macOS 15 Sonoma / Sequoia.

App Header Language Graphics

Overview

FrameInterpolation-macOS (Framgen) is a lightweight utility designed to increase the perceived fluidity of games, videos, and applications. It captures a target window in real-time and overlays a "smoothed" version running at a higher frame rate (targeting 60FPS or display native refresh rate) using a custom Metal-based Temporal Blending algorithm.

Unlike traditional frame-rate-locking tools, this app works as an Overlay, allowing you to keep interacting with your original application while seeing the interpolated results.

Key Features

  • 🚀 Real-Time Interpolation: Double the perceived refresh rate of 30FPS content.
  • 🖼️ Smart Overlay Mode: Creates a borderless, transparent, "click-through" window that sits perfectly on top of your target.
  • ⚡ Ultra-Low Latency: Built on Apple's ScreenCaptureKit and Metal for minimum overhead.
  • 🖥️ Full-Screen Support: Capable of detecting and interpolating native full-screen games and applications.
  • 📍 Window Tracking: The overlay automatically follows and resizes itself when you move the original window.
  • 🎨 Anti-Ghosting Shader: Custom Metal kernel with motion detection to keep static UI elements (like HUDs and text) sharp while smoothing movement.
  • 📊 Real-Time Performance Monitor: Integrated FPS counters for both Input (capture) and Output (render).

Installation & Building

Prerequisites

  • macOS 15.0 or later.
  • Xcode Command Line Tools installed (xcode-select --install).

Build Instructions

Cloud-based builds are not yet provided. Build it locally using the included script:

  1. Clone or download the repository.
  2. Open terminal in the project directory.
  3. Run the build script:
    chmod +x build.sh
    ./build.sh
  4. Find RealTimeFramgen.app in your folder and move it to /Applications or run it directly.

Usage

  1. Permissions: On the first run, macOS will prompt for Screen Recording permissions. Grant them to allow the app to capture the target window.
  2. Selection: Select the window you want to interpolate from the list. If it's not appearing, click "Refresh".
  3. Activation: Click "Activate Overlay (Max FPS)".
  4. Smoothness: The app will generate a floating overlay. You can continue playing your game or watching your video as usual.
  5. Deactivation: Go back to the main control window and click "Stop Interpolation".

How it Works

The app utilizes a specialized pipeline:

  1. ScreenCaptureKit: Grabs the frame stream of a specific WindowID with high efficiency.
  2. Metal Compute: A custom Shader (.metal source included in Swift) compares the current and previous frames.
  3. Smart Blending: If motion is detected between frames, a calculated intermediate frame is blended. If the frames are static, it maintains a sharp original image to avoid blur.
  4. AppKit Layering: A borderless NSWindow with a floating level and ignoresMouseEvents = true provides the visual output.

Technical Details

  • Input capture: 60Hz requested via SCStreamConfiguration.
  • Output Render: 60Hz - 120Hz (ProMotion) adaptive refresh.
  • Support: Native Apple Silicon support.

License

MIT License - feel free to contribute and improve!

About

This Framgen provides a borderless overlay that sits directly on top of the target window. Support and track window movement.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages