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.
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.
- 🚀 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
ScreenCaptureKitandMetalfor 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).
- macOS 15.0 or later.
- Xcode Command Line Tools installed (
xcode-select --install).
Cloud-based builds are not yet provided. Build it locally using the included script:
- Clone or download the repository.
- Open terminal in the project directory.
- Run the build script:
chmod +x build.sh ./build.sh
- Find
RealTimeFramgen.appin your folder and move it to/Applicationsor run it directly.
- Permissions: On the first run, macOS will prompt for Screen Recording permissions. Grant them to allow the app to capture the target window.
- Selection: Select the window you want to interpolate from the list. If it's not appearing, click "Refresh".
- Activation: Click "Activate Overlay (Max FPS)".
- Smoothness: The app will generate a floating overlay. You can continue playing your game or watching your video as usual.
- Deactivation: Go back to the main control window and click "Stop Interpolation".
The app utilizes a specialized pipeline:
- ScreenCaptureKit: Grabs the frame stream of a specific
WindowIDwith high efficiency. - Metal Compute: A custom Shader (
.metalsource included in Swift) compares the current and previous frames. - 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.
- AppKit Layering: A borderless
NSWindowwith afloatinglevel andignoresMouseEvents = trueprovides the visual output.
- Input capture: 60Hz requested via
SCStreamConfiguration. - Output Render: 60Hz - 120Hz (ProMotion) adaptive refresh.
- Support: Native Apple Silicon support.
MIT License - feel free to contribute and improve!