ANR README

项目的 README,来自 github.com/apex-compute/ANR。合并为一个 markdown 文件:README.md。

Apex Compute

Apex Neural Rendering (ANR)

Apex Neural Rendering by Apex Compute.

ANR FG Beta

  1. Download a package from Releases:
    • anr-fg-full: for games without OptiScaler.
    • anr-fg-addon: for games that already use OptiScaler.
  2. Close the game, extract the package and run the installer with the folder of the game's .exe:
    • Windows: install.cmd
    • Linux and Steam Deck (Proton): sh 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 games
  3. In the game, turn on frame generation (the NVIDIA option where the game offers several).

To uninstall, run uninstall.cmd or sh uninstall.sh with the same folder.

Supported GPUs

On Windows 10 and 11, and on Linux and SteamOS with Proton.

Results and problems

Please post them as issues:

OptiScaler is GPL-3.0; its source for each release is attached to the release.

Record and compare frame generation

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:

  1. 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:

    • Windows: install.cmd "<folder>". No launch option is needed.
    • Linux and Steam Deck (Proton): 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.

  2. 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).

  3. 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.

  4. 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.

Citation

@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}
}

ANR (apex-compute/ANR)

正在搜索数据库…

2.6K ·GitHub
这是什么?Apex Neural Rendering(ANR)是 Apex Compute 推出的一组 AI 图形功能。目前只有 ANR FG(帧生成部分)处于 Beta 阶段。超分辨率和光线重建标注为“即将 Beta”。
这是游戏模组还是独立程序?这是游戏的附加组件,不是独立应用。你需要把它安装到游戏文件夹中,它通过 OptiScaler 提供帧生成,以替代游戏自带的帧生成。
我该怎么让它运行起来?从 Releases 页面下载 anr-fg-full(适用于未使用 OptiScaler 的游戏)或 anr-fg-addon(适用于已在使用 OptiScaler 的游戏)。关闭游戏,解压安装包,然后在 Windows 上运行 install.cmd,在 Linux 和 Steam Deck 上运行 sh install.sh,并指定游戏 .exe 所在的文件夹。在 Linux 上,请设置安装程序输出的启动选项,例如 WINEDLLOVERRIDES='dxgi=n,b' %command%。然后在游戏中开启帧生成。
要录制和对比帧,我需要准备什么?你需要一个带有 DLSS 帧生成功能的 D3D12 或 Vulkan 游戏、anr-fg-full 安装包(已包含 OptiScaler)、Windows 10/11 或使用 Proton 的 Linux,并且 PATH 中要有 ffmpeg 和 ffprobe。DLSS-G 回放还需要 RTX 40 或 50 系列显卡。
现在可以直接用了吗?还不完全可以。ANR FG 仍处于 Beta 阶段,超分辨率和光线重建标注为“即将 Beta”,ANR 的主要源代码标注为“即将推出”。
哪些显卡和系统受支持?NVIDIA RTX 20、30、40 和 50 系列,以及 GTX 16 系列;AMD Radeon RX 5000、6000、7000 和 9000 系列,以及 Steam Deck;Intel Arc A 和 B 系列。可在 Windows 10/11 上运行,也可在使用 Proton 的 Linux 或 SteamOS 上运行。
nr-record 是做什么的?它以无损方式记录游戏提供给帧生成的输入。之后你可以用 ANR FG 或 DLSS-G 回放这些录制内容,并在随附的内置查看器中以视频或图片形式对比结果。
它也能录制超分辨率的输入吗?可以。在 D3D12 游戏中,你可以在 OptiScaler 菜单中选择 nr-record,录制超分辨率输入。回放时使用 --generator dlss、fsr 或 xess。
我该怎么反馈性能结果或问题?如果是性能结果,请运行发布版本中的测试工具包,并将其结果文件附在 Issue 中。如果是问题,请提供游戏、显卡和驱动、操作系统、设置,以及最新的 nrfg 日志。
大小
0.8 MB
星标
2.6K
时长
7天
提交 · 90 天