How garlyx/garlyfg works
GarlyFG is a Windows frame-generation application and library: it captures two real frames, estimates motion, synthesizes intermediate frames, then paces and presents them. Users can run this in a terminal UI, headless mode, or live game overlay; CPU and D3D11 backends provide generation, while tools cover quality, performance, capture, and live-mode validation. The live pipeline is documented, but most implementation files were not sampled, so some internal links are omitted rather than inferred.
Main entry points: live_session.cpp Live Session · app.cpp Terminal UI · interpolator.hpp Interpolator API · d3d11_interpolator.cpp D3D11 Backend
Components 22
Application
- Terminal UI
app/app.cpp - Settings & Profiles
app/settings_io.cpp - Terminal Canvas
app/tui/canvas.cpp
Frame Generation
- Interpolator API
include/garlyfg/interpolator.hpp - CPU Backend
src/cpu/cpu_interpolator.cpp - D3D11 Backend
src/d3d11/d3d11_interpolator.cpp - Compute Shaders
src/d3d11/d3d11_shaders.cpp - Neural Refinement
src/nn/refine.cpp - Frame Pacer
src/frame_pacer.cpp - GPU Discovery
src/gpu_info.cpp - Image Metrics
src/metrics.cpp
Live Game Mode
- Live Session
src/live/live_session.cpp - Window Capture
src/live/wgc_capture.cpp - DXGI Capture
src/live/dxgi_capture.cpp - Overlay Presenter
src/live/overlay_presenter.cpp
Analysis Tools
- Benchmark
tools/fg_bench/main.cpp - Quality Evaluation
tools/fg_quality/main.cpp - Frame Recorder
tools/fg_record/main.cpp - Live Mode Checks
tools/fg_livecheck/main.cpp - Pacing Simulation
tools/fg_pacing/main.cpp - Image Utility
tools/fg_imgtool/main.cpp
Other components
- User
Connections 22
- User → Terminal UI: operates
README.md - Terminal UI → Settings & Profiles: loads and saves
README.md - Terminal UI → Live Session: starts
app/app.cpp - Terminal UI → Terminal Canvas: draws UI
- Live Session → Window Capture: captures frames
- Live Session → DXGI Capture: may capture
- Live Session → Interpolator API: submits frames
- Interpolator API → D3D11 Backend: selects backend
README.md - Interpolator API → CPU Backend: selects fallback
README.md - D3D11 Backend → Compute Shaders: runs compute
src/d3d11/d3d11_interpolator.cpp - CPU Backend → Neural Refinement: may refine
src/cpu/cpu_interpolator.cpp - D3D11 Backend → Neural Refinement: may refine
src/d3d11/d3d11_interpolator.cpp - Live Session → Frame Pacer: schedules output
- Live Session → Overlay Presenter: presents output
- Terminal UI → GPU Discovery: lists adapters
README.md - User → Benchmark: runs
README.md - User → Quality Evaluation: runs
README.md - Frame Recorder → Quality Evaluation: supplies corpus
README.md - User → Live Mode Checks: runs
README.md - User → Pacing Simulation: runs
README.md - User → Image Utility: runs
README.md - Quality Evaluation → Image Metrics: measures quality
README.md