Skip to content

Repository files navigation

FSR Monitor Advanced ๐ŸŽฎ

Comprehensive FSR Detection System for Linux

Detects all FSR (FidelityFX Super Resolution) versions including FSR4 RDNA3 hacks with 95% confidence using environment variables and advanced detection methods.

๐Ÿš€ Quick Install

# One-command installation with desktop integration
./install.sh

โœจ Installs everything: binary, desktop app, icon, documentation, and desktop integration!

Features โœจ

  • ๐Ÿ”ฅ Environment Variable Detection (95% confidence - most reliable)
  • ๐ŸŽฏ FSR4 RDNA3 Hack Support - All variants (FP8, FP16, WMMA, DXIL)
  • ๐Ÿš€ Mesa Integration - Detects Mesa-based FSR implementations
  • ๐Ÿ“Š Real-time Monitoring - Live FSR status overlay
  • ๐ŸŽฎ Game Detection - 50+ game executable patterns
  • ๐Ÿ”ง 7 Detection Methods - Comprehensive coverage

FSR Versions Detected ๐ŸŽจ

FSR Type Color Description
FSR3 ๐ŸŸข YellowGreen Standard FSR3
FSR4 FP8 ๐Ÿ”ด DeepPink 8-bit precision hack
FSR4 FP16 ๐Ÿฉท HotPink 16-bit precision hack
FSR4 WMMA ๐ŸŸฃ Orchid Wave Matrix ops workaround
FSR4 DXIL ๐ŸŸช MediumOrchid DirectX IL translation

Requirements ๐Ÿ“‹

  • Linux (Wayland/X11)
  • GTK4 + gtk4-layer-shell
  • AMD GPU (RDNA2/RDNA3/RDNA4)
  • ImageMagick (optional - for custom icon)

For building from source only:

  • Rust (latest stable)

Ubuntu/Debian Dependencies

sudo apt install libgtk-4-dev libgtk4-layer-shell-dev build-essential imagemagick

Arch Linux Dependencies

sudo pacman -S gtk4 gtk4-layer-shell rust imagemagick

Fedora Dependencies

sudo dnf install gtk4-devel gtk4-layer-shell-devel rust cargo ImageMagick

Note: ImageMagick is optional but recommended for custom icon creation.

Quick Start ๐Ÿš€

Recommended: Easy Installation with Desktop Integration

# Make installer executable
chmod +x install.sh

# Install with full desktop integration
./install.sh

# Launch from applications menu or run:
fsr_monitor_advanced

Alternative: Portable Use

# Make executable
chmod +x fsr_monitor_advanced

# Create desktop shortcut (optional)
./create_desktop_shortcut.sh

# Run directly
./fsr_monitor_advanced

Build from Source

# Install dependencies first (see Requirements section)

# Build with included script
./build.sh

# Or manually:
cargo build --release
./target/release/fsr_monitor_advanced

FSR4 RDNA3 Setup ๐Ÿ”ง

To enable FSR4 on RDNA3 GPUs, set these environment variables:

For Steam Games

# Add to Steam launch options:
DXIL_SPIRV_CONFIG=wmma_rdna3_workaround FSR4_UPGRADE=1 %command%

For Wine/Proton Games

export DXIL_SPIRV_CONFIG=wmma_rdna3_workaround
export FSR4_UPGRADE=1
export RADV_FSR4_FP8=1

For Native Linux Games

RADV_FSR4_FP8=1 ./game_executable

Detection Methods ๐Ÿ”

  1. Environment Variables (95% confidence)

    • DXIL_SPIRV_CONFIG=wmma_rdna3_workaround
    • FSR4_UPGRADE=1
    • RADV_FSR4_FP8=1
  2. Memory Pattern Detection (85-90% confidence)

    • FSR library mapping
    • Mesa driver detection
  3. Vulkan API Detection (75-80% confidence)

    • VK_KHR_cooperative_matrix
    • RADV driver with FSR4 support
  4. Driver State Inspection (90-95% confidence)

    • AMD debug interfaces
    • GPU capability detection
  5. Shader Cache Analysis (75-80% confidence)

    • FSR shader compilation
    • Cooperative matrix shaders
  6. Graphics API Detection (70-75% confidence)

    • D3D11/D3D12 with FSR
    • OpenGL FSR integration
  7. Runtime FSR State (65-80% confidence)

    • Active FSR usage patterns
    • Performance metrics

Supported Games ๐ŸŽฎ

Works with 50+ game patterns including:

  • Cyberpunk 2077
  • Baldur's Gate 3
  • Starfield
  • Horizon Forbidden West
  • Red Dead Redemption 2
  • Alan Wake 2
  • All Steam games
  • Wine/Proton games

Installation & Usage ๐Ÿ’ก

1. Install FSR Monitor Advanced

# Run the installer (recommended)
./install.sh

What the installer does:

  • โœ… Installs binary to system PATH
  • โœ… Creates desktop application entry
  • โœ… Installs custom FSR-themed icon
  • โœ… Adds documentation
  • โœ… Updates desktop database
  • โœ… Enables right-click actions

2. Launch FSR Monitor

From Desktop:

  • Search "FSR Monitor Advanced" in applications
  • Find in Games โ†’ System โ†’ Monitor category
  • Right-click for quick actions

From Command Line:

fsr_monitor_advanced

3. Enable FSR4 on RDNA3 and Launch Games

# Steam launch options (recommended):
DXIL_SPIRV_CONFIG=wmma_rdna3_workaround FSR4_UPGRADE=1 %command%

# Or command line:
DXIL_SPIRV_CONFIG=wmma_rdna3_workaround FSR4_UPGRADE=1 ./game

4. Monitor Features

  • ๐Ÿ” Real-time FSR detection
  • ๐ŸŽจ Color-coded FSR types
  • ๐Ÿ“Š Detection confidence levels
  • ๐Ÿ”ง Multiple detection methods
  • โš™๏ธ Transparency controls
  • ๐Ÿ“ฑ Desktop integration

Available Scripts ๐Ÿ“œ

Installation Scripts

  • install.sh - Full system installation with desktop integration
  • create_desktop_shortcut.sh - Portable desktop shortcut creator
  • create_icon.sh - Custom FSR icon generator

Build & Test Scripts

  • build.sh - Build from source with dependency checking
  • test_fsr_detection.sh - Comprehensive FSR detection test

Usage Examples

# Full installation (recommended)
./install.sh

# Create portable shortcut
./create_desktop_shortcut.sh

# Test FSR detection
./test_fsr_detection.sh

# Build from source
./build.sh

Troubleshooting ๐Ÿ”ง

Installation Issues

Desktop entry not appearing:

# Update desktop database manually
update-desktop-database ~/.local/share/applications/

Icon not showing:

# Recreate icon and update cache
./create_icon.sh
gtk-update-icon-cache -f -t ~/.local/share/icons/hicolor/

No FSR Detected

  • Check if game is in supported list
  • Verify environment variables: env | grep FSR
  • Ensure Mesa 24.x+ is installed: glxinfo | grep Mesa

Permission Errors

  • Some detection methods require /sys/kernel/debug access
  • Try: sudo mount -t debugfs none /sys/kernel/debug

Build Errors

  • Install all dependencies (see Requirements section)
  • Update Rust: rustup update
  • Use build script: ./build.sh

Testing ๐Ÿงช

Quick Test

# Run comprehensive FSR detection test
./test_fsr_detection.sh

Manual Testing

# 1. Install FSR Monitor
./install.sh

# 2. Launch FSR Monitor
fsr_monitor_advanced &

# 3. Test with environment variables
DXIL_SPIRV_CONFIG=wmma_rdna3_workaround FSR4_UPGRADE=1 sleep 60 &

# 4. Check detection
# Monitor should show FSR4 WMMA hack detected

Desktop Integration Test

# After installation, test desktop integration:
# 1. Search "FSR" in application launcher
# 2. Right-click desktop entry for actions
# 3. Check Categories: Games โ†’ System โ†’ Monitor

Technical Details ๐Ÿค“

FSR4 RDNA3 Implementation

  • FP8 Emulation: Software emulation of 8-bit precision
  • WMMA Workaround: Wave Matrix Multiply Accumulate fallback
  • Mesa Integration: VK_KHR_cooperative_matrix support
  • Performance: ~20% slower than native RDNA4

Architecture

  • Rust: Memory-safe systems programming
  • GTK4: Modern UI framework
  • Layer Shell: Wayland overlay support
  • Procfs: Process inspection
  • Real-time: 1-second update intervals

Contributing ๐Ÿค

  1. Fork the repository
  2. Create feature branch
  3. Add detection methods
  4. Test thoroughly
  5. Submit pull request

License ๐Ÿ“„

MIT License - Use freely for any purpose

Support ๐Ÿ’ฌ

  • GitHub Issues: Report bugs/feature requests
  • Discord: Community support
  • Email: Technical questions

Made with โค๏ธ for the Linux gaming community

Enabling FSR4 on RDNA3 GPUs through the power of open source!

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages