How apex-compute/anr works
This repository’s documented runtime product is nr-record plus the renderer-based comparison and capture viewer, rather than the separately packaged ANR frame-generation runtime. The main workflow captures FG or upscaler inputs, replays recordings through selected generators, turns outputs into videos or images, then compares them in the viewer. README statements and the supplied source index support the major workflow; several viewer and replay subsystem details are unsampled, so uncertain internal links are omitted.
Main entry points: recorder.cpp Recorder · clip_viewer.cpp Compare Viewer · capture.cpp FG Capture DLL · reader.cpp Recording Reader
Components 27
Game Capture
- FG Capture DLL
record/capture/capture.cpp - SR Capture DLL
record/capture/sr_capture.cpp - SR Host
record/capture/sr_host.cpp - Recorder
record/recorder.cpp - GPU Packing
record/d3d12_packer.cpp - Vulkan Ring
record/vulkan_ring.cpp - Recording Folder
Replay and Media
- Recording Reader
record/reader.cpp - FG Replay
record/replay/nr_replay.cpp - SR Replay
record/replay/sr_replay.cpp - FG Generators
record/replay/ngx_generator.cpp - SR Generators
record/replay/sr_generators.cpp - Replay Frame IO
record/replay/frames.cpp - Video Tools
record/replay/nr_video.cpp
Comparison Viewer
- Renderer Entry
renderer/main.cpp - Clip Modes
renderer/clips/clip_session.cpp - Compare Viewer
renderer/clips/clip_viewer.cpp - Capture Studio
renderer/clips/captures/studio.cpp - Capture Store
renderer/clips/captures/store.cpp - Video Sources
renderer/clips/video/nri_video_source.cpp - Video Exporter
renderer/clips/exporter.cpp
Shared Runtime
- Window and Input
renderer/app.cpp - Vulkan Support
device/vulkan.cpp
Other components
- Game
- Generator DLL
- FFmpeg Tools
- Operator
Connections 30
- Game → FG Capture DLL: supplies FG inputs
README.md - Game → SR Capture DLL: supplies SR inputs
README.md - FG Capture DLL → Recorder: records frames
record/capture/capture.cpp - SR Capture DLL → Recorder: records frames
record/capture/sr_capture.cpp - SR Host → SR Capture DLL: hosts upscaler
record/capture/sr_host.cpp - Recorder → GPU Packing: packs textures
- Recorder → Vulkan Ring: uses Vulkan ring
- Recorder → Recording Folder: writes recording
- Operator → Game: starts capture
README.md - Recording Folder → Recording Reader: opens recording
- Recording Reader → FG Replay: provides frames
record/replay/nr_replay.cpp - Recording Reader → SR Replay: provides frames
record/replay/sr_replay.cpp - FG Replay → FG Generators: dispatches generator
record/replay/nr_replay.cpp - SR Replay → SR Generators: dispatches generator
record/replay/sr_replay.cpp - FG Generators → Generator DLL: invokes DLL
README.md - SR Generators → Generator DLL: invokes upscaler
README.md - FG Replay → Replay Frame IO: writes replay frames
record/replay/nr_replay.cpp - SR Replay → Replay Frame IO: writes replay frames
record/replay/sr_replay.cpp - Replay Frame IO → Video Tools: streams frames
README.md - Video Tools → FFmpeg Tools: uses ffmpeg
README.md - Operator → Renderer Entry: launches viewer
README.md - Renderer Entry → Clip Modes: dispatches clip mode
renderer/main.cpp - Clip Modes → Compare Viewer: runs comparison
renderer/clips/clip_session.cpp - Compare Viewer → Video Sources: opens videos
README.md - Compare Viewer → Video Exporter: exports comparison
- Clip Modes → Capture Studio: runs captures mode
README.md - Capture Studio → Capture Store: loads capture data
- Compare Viewer → Window and Input: uses window loop
- Capture Studio → Window and Input: uses window loop
- FG Capture DLL → Vulkan Support: supports Vulkan