Skip to content
skszone01Public

About

SmoothFG (FrameGen) - Universal Cross-GPU Frame Generation for Windows (Adaptive / 2x / 3x / 4x) with Zero Overlay Interference

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFG Logo

SmoothFG (FrameGen)

Universal Cross-GPU Frame Generation for Windows — Adaptive, 2×, 3× & 4× Modes with Zero Overlay Interference

Windows 10/11 x64 NVIDIA • AMD • Intel Adaptive / 2× / 3× / 4× Zero-Injection Closed-Source Freeware

🇺🇸 English | 🇹🇭 ภาษาไทย | 🇯🇵 日本語 | 🇨🇳 简体中文 | 🇷🇺 Русский


Official Binary Distribution Repository — SmoothFG is Closed-Source Freeware. Pre-built Windows x64 binaries, ONNX neural models, release notes, and SHA-256 verification checksums are published via GitHub Releases.

SmoothFG (FrameGen) is a lightweight, native Windows universal frame generator written in pure Rust and HLSL Compute Shaders. It brings Smooth Motion–style driver-independent frame generation to virtually any Borderless Windowed or Windowed game across NVIDIA, AMD, and Intel GPUs — with Adaptive, 2×, 3×, and 4× multipliers, overlay-safe Z-ordering that keeps Discord/Steam/RTSS/PiP intact, and zero DLL injection.


Core Highlights

1. Smooth Motion–Style Universal Frame Generation — Adaptive, 2×, 3× & 4×

  • Works Across Every Game & Every GPU Vendor: Like NVIDIA Smooth Motion, SmoothFG requires zero per-game developer integration and works in virtually any Borderless Windowed or Windowed game — unlocked across NVIDIA, AMD, and Intel discrete & integrated GPUs.
  • Beyond Fixed 2×: Choose the exact pacing mode that fits your monitor and base framerate:
    • Adaptive (Default) — Automatically targets your monitor's exact refresh rate (or a custom Target Hz, up to 500 Hz) by dynamically synthesizing the exact intermediate phases needed.
    • Fixed 2x, Fixed 3x, and Fixed 4x — Lock cleanly to 2×, 3×, or 4× output frames per real frame.
    • Passthrough — Monitor and compare native frame pacing with zero interpolation.

2. Zero Overlay Interference — Play With Your Favorite Overlays Intact

  • Never Lose or Break Your Overlays: Many external frame generators hijack the topmost window band and bury, flicker, or steal clicks from your desktop tools. SmoothFG is engineered from the ground up for overlay-safe Z-ordering:
    • Mode 1: Overlay-Safe Z-Order (Default) — DirectComposition swap chain anchored immediately above the game window in the non-TOPMOST band, never fighting topmost overlays.
    • Mode 2: DirectFlip Low-Latency — Flip-discard presentation with VRR tearing support (Allow Tearing (VRR)) and bottom-of-TOPMOST anchoring, staying strictly above the game while yielding cleanly beneath external topmost overlays and auto-hiding on Alt-Tab.
  • 100% Click-Through & Cursor-Safe: Full cross-process cursor transparency (WS_EX_LAYERED | WS_EX_TRANSPARENT | WS_EX_NOACTIVATE) and capture exclusion (WDA_EXCLUDEFROMCAPTURE) keep Discord Overlay, Steam Overlay, MSI Afterburner / RTSS, Xbox Game Bar, and YouTube / Browser Picture-in-Picture (PiP) cleanly visible, responsive, and clickable right on top of your game.

3. Dual Compute Engines + Smart GPU & Dual-GPU Offload Advisor

  • Neural AI v2 (DirectML RIFE):
    • Powered by RIFE v4.25-lite FP16 Flow+Mask running 100% GPU-resident via zero-copy D3D11 ↔ D3D12 shared textures and ONNX Runtime DirectML (IoBinding).
    • Runs neural flow + occlusion mask inference once per real frame pair, then warps native full-resolution frames across every 2×, 3×, 4×, or Adaptive intermediate phase (< 0.3 ms composite) with SmoothFG HUD Lock and scene-cut bypass.
    • Automatically falls back to Optical Flow v3 without crashing if DirectML or a model file is unavailable.
  • Optical Flow v3 (Universal All GPUs):
    • Ultra-lightweight pure HLSL cs_5_0 DX11 compute pipeline (~1.26 ms at 1080p @ 50% scale on an AMD Radeon RX 6800) with zero external AI runtime dependency.
    • Features a 5-level feature pyramid, 4-quadrant robust global camera motion (handles fast whip-pans), motion-gated HUD lock (adjustable HUD Mask Strength), FidelityFX-inspired 2D Disocclusion Inpainting, scene-cut detection, and AFMF 2.1-inspired Fast Motion response (Repeat Frame (AFMF 2.1 Crisp), Blended Frame (AFMF 2.1 Smooth), or Off (Always Warp)).
  • Smart GPU & Dual-GPU Offload Advisor:
    • Automatically classifies your GPU tier (AI Cores such as RTX / RX 7000–9000 / Arc, Fast FP16 Shader, Standard Shader, or iGPU) and detects Dual-GPU setups (Dedicated FG GPU).
    • Click Apply Rec to apply the optimal engine, scale (50% / 75% / 100%), inpainting, and fast-motion settings for your exact hardware in one click.

4. Built-In Real / FG FPS HUD, HDR Pass-Through & Smart UX

  • Zero-GPU-Overhead Corner FPS HUD: Clean, click-through, capture-excluded HUD displaying REAL | FG FPS (or REAL | AI FPS in Neural AI mode) with customizable Corner (Top-Left, Top-Right, Bottom-Left, Bottom-Right), Size (Small, Medium, Large, Extra Large), and Opacity (20%–100%).
  • HDR Pass-Through & VRR Support: Supports 16-bit floating-point (RGBA16F scRGB) HDR pass-through when Windows HDR is active, plus DXGI tearing for VRR / G-SYNC / FreeSync displays in Mode 2.
  • Effortless Daily Workflow:
    • Per-game profiles (Save Profile) with live updates and crash-safe atomic saves.
    • Alt-Tab auto-pause & auto-resume — seamlessly hides and pauses when you switch windows, then re-engages automatically when you return to the game.
    • Global Toggle Hotkey (Ctrl+Alt+F) and Start (3s Countdown) button.
    • Portable Mode: Place an empty portable.flag file (or smoothfg.ini) next to SmoothFG.exe to keep all settings local instead of %APPDATA%\SmoothFG\.
    • Native Windows UI: Lightweight Win32 System Tray + PerMonitorV2 DPI-aware Control Panel with 4 Hz live telemetry (Status, Target, Frame Rate, GPU Compute timings).

5. Anti-Cheat Friendly & Security Hardened

  • Zero DLL Injection & Zero Game Memory Modification: SmoothFG never injects DLLs, hooks DirectX/Vulkan graphics APIs inside your game, modifies game memory, or installs a kernel driver. It captures externally via the official Windows Graphics Capture (WGC) API (the same system API used by OBS and Xbox Game Bar).
  • Least-Privilege Execution: Runs strictly unelevated (asInvoker, uiAccess="false") and queries foreground process names with minimum-privilege PROCESS_QUERY_LIMITED_INFORMATION only.
  • Hardened Native Binary:
    • Built with /DEPENDENTLOADFLAG:0x800 (restricts implicit DLL loading to System32), /CETCOMPAT (Control-flow Enforcement Technology / Shadow Stack), and SetDefaultDllDirectories(LOAD_LIBRARY_SEARCH_DEFAULT_DIRS) at startup.
    • Strict local file validation rejects symlinks/reparse points on smoothfg.ini and smoothfg.log, and additionally blocks UNC network paths and directory traversal (..) for .onnx models and optional runtime\ DLLs.

Anti-Cheat Note: While external zero-injection capture is designed to be anti-cheat friendly, SmoothFG makes no guarantee for every game's third-party policies. Always verify and respect each game's Terms of Service before use in competitive multiplayer titles.


Feature Comparison

Feature SmoothFG (FrameGen) NVIDIA Smooth Motion AMD AFMF 2.1
Architecture External zero-injection WGC overlay Driver-level (in-driver hook) Driver-level (in-driver hook)
Supported GPUs NVIDIA, AMD & Intel (dGPU + iGPU) NVIDIA RTX 40 / 50 Series only AMD Radeon RX 6000 / 7000 / 9000 & select APUs
Multipliers / Pacing Adaptive (Monitor / Custom Hz), 2×, 3×, 4×, Passthrough Fixed 2× Fixed 2×
Compute Engines Neural AI v2 (DirectML RIFE) + Optical Flow v3 (DX11) Proprietary AI Optical Flow Driver Optical Flow
Dual-GPU Offload Yes (auto-detected + Dedicated FG GPU mode) No No
Overlay Compatibility Overlay-Safe Z-Order (Discord, Steam, RTSS, Game Bar, PiP stay on top) Driver-managed Driver-managed (may conflict with some overlays)
Window Modes Borderless Windowed & Windowed Fullscreen & Borderless Windowed Fullscreen & Borderless Windowed
Per-Game Developer Support Needed None None None
Built-In Real / FG FPS HUD Yes (customizable corner, size, opacity) Via NVIDIA App overlay Via AMD Adrenalin overlay

System Requirements

Component Minimum Recommended
OS Windows 10 2004 (Build 19041) x64 or newer Windows 11 22H2+ x64 (inbox DirectML / ONNX Runtime)
GPU Any DirectX 11 (Feature Level 11_0+) GPU — NVIDIA, AMD, or Intel DirectX 12 GPU with AI Cores (RTX 20+, RX 7000/9000, Intel Arc) or Dedicated 2nd GPU for Neural AI v2
VRAM 2 GB (Optical Flow v3) 4 GB+ (or 1.5 GB+ dedicated / 4 GB+ shared for Neural AI v2)
Game Display Mode Borderless Windowed or Windowed Borderless Windowed

Quick Start (3 Steps)

  1. Download & Extract Download the latest SmoothFG-v*.zip from GitHub Releases and extract it to a local folder (keep SmoothFG.exe and the models\ folder together).
  2. Configure Your Game & Settings Launch SmoothFG.exe, click Apply Rec (optional) to apply the Smart GPU Advisor's recommended engine and scale, choose your Pacing Mode (Adaptive, Fixed 2x, Fixed 3x, or Fixed 4x), and set your game to Borderless Windowed (or Windowed).
  3. Activate Frame Generation Focus your game window and press Ctrl+Alt+F — or click Start (3s Countdown) in the Control Panel and click into your game. Watch the corner HUD confirm REAL | FG FPS (e.g., REAL 60 | FG 120 FPS or AI), and press Ctrl+Alt+F again anytime to stop.

Tip: Closing the Control Panel minimizes SmoothFG to the System Tray so it stays out of your way. Double-click the tray icon to reopen the panel, or right-click it to toggle FG or exit cleanly. You can also launch with SmoothFG.exe --minimized (or -m).


Dual-GPU Offload Tip

Have two GPUs in your PC (for example, a primary gaming GPU plus a secondary discrete card or integrated GPU)? SmoothFG lets you offload 100% of frame generation compute to the second GPU so your primary GPU keeps its full base framerate:

  1. In the Control Panel, change GPU Adapter from Auto (High-Performance GPU) to your secondary GPU.
  2. SmoothFG automatically detects the dual-GPU configuration and enables Dedicated FG GPU (Dual-GPU / Not Running Game).
  3. Click Apply Rec — because the dedicated FG GPU isn't competing with your game, even GPUs without hardware AI cores (such as GTX 10/16 or RX 5000/6000 cards) can smoothly run Neural AI v2 via DirectML DX12 shaders!

Download & Integrity Verification

All official releases are published exclusively on the GitHub Releases page alongside a SHA256SUMS.txt manifest.

Verify your downloaded archive in PowerShell before running:

Get-FileHash .\SmoothFG-v0.1.0-win64.zip -Algorithm SHA256

Compare the output hash against the corresponding line in SHA256SUMS.txt attached to the release.


FAQ & Troubleshooting

Why does SmoothFG require Borderless Windowed or Windowed mode?

SmoothFG captures game output externally via the Windows Graphics Capture (WGC) API and presents frames on a zero-injection overlay window. Legacy Exclusive Fullscreen (FSE) takes exclusive ownership of the display output and prevents external capture/overlay presentation. Switching your game to Borderless Windowed (or Windowed) gives SmoothFG clean, low-latency access while preserving full-screen visuals — and on modern Windows 10/11 with DXGI Flip Model, Borderless Windowed matches Exclusive Fullscreen latency.

Why did Windows Defender SmartScreen show "Windows protected your PC"?

SmoothFG is an independent, closed-source freeware release that is not signed with a paid EV Code Signing Certificate. Microsoft SmartScreen displays an "Unknown publisher" warning on new unsigned executables until enough users run the exact binary and build reputation. You can verify the release binary's SHA-256 hash against SHA256SUMS.txt and check the VirusTotal scan link published in each GitHub Release's notes before choosing More info → Run anyway.

Neural AI v2 says DirectML / ONNX Runtime is unavailable on Windows 10 — what should I do?

Windows 11 includes compatible DirectML.dll and onnxruntime.dll libraries in System32, which SmoothFG loads automatically. On older Windows 10 builds where inbox DirectML/ONNX Runtime isn't present (or is older than ORT API v17):

  • Optical Flow v3 works out of the box with zero extra files.
  • To enable Neural AI v2 on Windows 10, create a runtime\ folder right next to SmoothFG.exe and place official x64 onnxruntime.dll (Microsoft.ML.OnnxRuntime.DirectML 1.17+) and DirectML.dll inside runtime\. SmoothFG validates and loads them securely from runtime\ as a fallback.
My overlays (Discord, RTSS, Steam, YouTube PiP) disappeared or went behind the game.

Make sure Presenter Mode is set to Mode 1: Overlay-Safe Z-Order (recommended default). If you prefer Mode 2: DirectFlip Low-Latency for VRR tearing, SmoothFG still anchors at the bottom of the topmost band so external overlays stay on top; if an overlay was opened before SmoothFG started, toggling the overlay or Alt-Tabbing once restores its Z-order immediately.

Where are settings and logs stored, and how do I use Portable Mode?

By default, SmoothFG stores smoothfg.ini and smoothfg.log in %APPDATA%\SmoothFG\. To run completely portable (e.g., from a USB drive or game folder), simply create an empty file named portable.flag (or copy smoothfg.ini) into the same folder as SmoothFG.exe.


License & Third-Party Notices

  • End-User License Agreement (Closed-Source Freeware): See LICENSE.txt.
  • Third-Party Open-Source Attributions (including MIT-licensed RIFE model weights & AMD FidelityFX-inspired algorithms, Windows SDK / Rust crates): See THIRD_PARTY_NOTICES.txt.

About

SmoothFG (FrameGen) - Universal Cross-GPU Frame Generation for Windows (Adaptive / 2x / 3x / 4x) with Zero Overlay Interference

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors