How saog0721/magpie works
Magpie Experimental is a Windows window-content processing application. The documented user workflow is to choose an effect group and target window, capture its content, process frames through configured effects, then present the result; the UI also supports live parameter editing, comparison, timing/FPS monitoring, screenshots, and frame pacing. The graph includes the documented processing stages and major experimental capabilities. Source excerpts show application startup and service wiring, but do not expose most renderer/backend call paths, so those relationships are documented README flows rather than claims about inspected calls.
Main entry points: Renderer.cpp Frame renderer · EffectDrawer.cpp Effect processing · App.cpp App lifecycle · ScalingService.cpp Scaling session
Components 23
Application and setup
- Application entry
src/Magpie/main.cpp - App lifecycle
src/Magpie/App.cpp - Settings
src/Magpie/AppSettings.h - Effect groups
src/Magpie/ScalingModesService.cpp
Capture and presentation
- Scaling session
src/Magpie/ScalingService.cpp - Scaling window
src/Magpie.Core/ScalingWindow.cpp - Window capture
src/Magpie.Core/FrameSourceBase.cpp - Frame renderer
src/Magpie.Core/Renderer.cpp - Output presentation
src/Magpie.Core/PresenterBase.cpp
Image processing
- Effect processing
src/Magpie.Core/EffectDrawer.cpp - Temporal upscalers
src/Magpie.Core/DLSSSRUpscaler.cpp - Frame generation
src/Magpie.Core/DLSSFrameGenerator.cpp - RTX Video
src/Magpie.Core/RTXVideoDenoiser.cpp - HDR processing
src/Magpie.Core/HdrCaptureProcessor.cpp
User controls and diagnostics
- Parameter editing
src/Magpie/EffectParametersViewModel.cpp - Comparison and metrics
src/Magpie.Core/OverlayDrawer.cpp - Frame tracing
src/Magpie.Core/FrameTrace.cpp - Frame pacing
src/Magpie.Core/FramePacingWait.h
Platform integrations
- Effect cache
src/Magpie.Core/EffectCacheManager.cpp
Other components
- User
- GPU and drivers
- Target window
- Display
Connections 28
- User → Application entry: launches
- Application entry → App lifecycle: starts
src/Magpie/main.cpp - App lifecycle → Settings: initializes
src/Magpie/App.cpp - User → Effect groups: selects group
- App lifecycle → Scaling session: initializes
src/Magpie/App.cpp - Effect groups → Scaling session: configures
- Scaling session → Scaling window: starts session
- Target window → Window capture: provides frames
- Scaling window → Window capture: captures
- Window capture → Frame renderer: supplies frames
- Frame renderer → Effect processing: processes frames
- Effect processing → Output presentation: submits result
- Output presentation → Display: displays
- Frame renderer → Temporal upscalers: uses when selected
- Frame renderer → Frame generation: uses when selected
- Frame renderer → RTX Video: uses when selected
- Frame renderer → HDR processing: processes HDR
- User → Parameter editing: edits parameters
- Parameter editing → Effect processing: adjusts controls
- User → Comparison and metrics: compares output
- Frame renderer → Comparison and metrics: reports timings
- Frame renderer → Frame tracing: records frame data
- User → Frame pacing: sets frame pace
- Frame pacing → Frame renderer: regulates submission
- GPU and drivers → Temporal upscalers: enables supported backends
- GPU and drivers → Frame generation: enables supported backends
- GPU and drivers → RTX Video: enables supported backend
- Effect processing → Effect cache: caches effects