项目的 README,来自 github.com/apex-compute/ANR。合并为一个 markdown 文件:README.md。
Apex Neural Rendering by Apex Compute.
anr-fg-full: for games without OptiScaler.anr-fg-addon: for games that already use OptiScaler..exe:install.cmdsh install.sh "<folder>", then set the game's launch options to the line it
prints: WINEDLLOVERRIDES="dxgi=n,b" %command%, or winmm=n,b in Vulkan gamesTo uninstall, run uninstall.cmd or sh uninstall.sh with the same folder.
On Windows 10 and 11, and on Linux and SteamOS with Proton.
Please post them as issues:
nr_fg-*.log
from under the game's OptiScaler/custom/Apex Neural Rendering FG folder.OptiScaler is GPL-3.0; its source for each release is attached to the release.
nr-record records the inputs a game gives its frame generation, losslessly. You can then replay a recording through any frame generation DLL you have (ANR FG, a game's DLSS-G nvngx_dlssg.dll) and compare the results as videos or images. nr-record includes no frame generation.
Requirements:
anr-fg-full package installed (it includes OptiScaler);PATH;Install. Download nr-record-1.2-windows.zip or nr-record-1.2-linux.tar.gz from the FG-V.B18 release and extract it. Close the game and run the installer with the folder of the game's .exe:
install.cmd "<folder>". No launch option is needed.sh install.sh "<folder>". Set the game's Steam launch options to WINEDLLOVERRIDES="dxgi=n,b" %command% (the ANR FG installer prints the same line). Do not set this on Windows: the game may not start.The installer copies nr-record into OptiScaler/custom/ and sets FGNvngxReplacement=nr-record in OptiScaler.ini (it keeps the original). When you are not recording, ANR FG generates the frames, or DLSS-G if ANR FG is not installed (forward in nr-record/dlssg/nr_record.ini). uninstall.cmd or sh uninstall.sh with the same folder removes nr-record and restores OptiScaler.ini. To install by hand: copy capture/OptiScaler/custom/nr-record into OptiScaler/custom/, set FGNvngxReplacement=nr-record, and set forward to ..\..\Apex Neural Rendering FG\dlssg\nvngx_dlssg.dll or nvidia.
Record. Turn on DLSS frame generation in the game. F6 starts and stops a recording; F9 records the next 8 frames. Each start and stop beeps. While recording, the game shows only real frames. Recordings go to %LOCALAPPDATA%\nr-record\ (Windows) or ~/.local/share/nr-record/ (Proton). A frame takes about 26 MB at 3840x2160 and 6 MB at 1806x972. nr-record/dlssg/nr_record-<date>-<time>.log lists what was recorded.
To record the upscaler's inputs instead (super resolution, D3D12 games): open OptiScaler's menu (Insert), pick nr-record in the upscaler list, and press F6 to start and stop. It upscales with the upscaler OptiScaler.ini names (DLSS on NVIDIA, else FSR, or XeSS) and records that output too. Pick your upscaler again afterwards. Replay these recordings with --generator dlss, fsr or xess (replay).
Replay. On Windows, in the package folder (REC is a recording's folder):
tools\nr-record.exe info REC
tools\nr-replay.exe --record REC --out out\anr --generator provider --dll "<ANR FG folder>\nvngx_dlssg.dll" --label "ANR FG" --stream - | tools\nr-video.exe video - --out out\anr.mp4
tools\nr-replay.exe --record REC --out out\dlssg --generator nvidia --dll "<game>\nvngx_dlssg.dll" --label DLSS-G --stream - | tools\nr-video.exe video - --out out\dlssg.mp4
tools\nr-video.exe project out\anr.mp4 out\dlssg.mp4 --out out\cmp.compare.json --labels "ANR FG" DLSS-G
On Linux, one command runs both replays under Proton's Wine and writes both videos, a side-by-side video and the compare project:
python3 tools/nr_replay_wine.py --record REC --out cmp --video \
--generator provider --dll "<ANR FG folder>/nvngx_dlssg.dll" --label "ANR FG" \
--b-generator nvidia --b-dll "<game>/nvngx_dlssg.dll" --b-label DLSS-G
For images, replay with --raw instead of --stream and run nr-video png.
Compare. viewer/renderer --compare --project cmp/compare.json (Windows: viewer\renderer.exe --compare --project out\cmp.compare.json) plays both videos in sync, with a divider, side by side view, pixel zoom and marks, and exports videos and images. From the command line: --compare-export PROJECT --out FILE --very-high. viewer/renderer --captures lists your recordings and regenerates their frames with each generator.
Docs: recording, format, replay and videos, viewer.
Build: bazel build //record:nr-record //record/replay:nr-video //renderer; Windows parts: bazel build --config=windows_cross //record/capture:package //record/replay:nr-replay.
@software{apex_neural_rendering,
author = {{Apex Compute}},
title = {Apex Neural Rendering (ANR)},
year = {2026},
url = {https://github.com/apex-compute/ANR},
note = {https://apexcompute.com/neural-rendering}
}