Description
bg3fgvk adds NVIDIA DLSS Frame Generation (x2, x3 or x4) to Baldur's Gate 3 running in Vulkan mode. It is free and open source.
The game's own DLSS Super Resolution already produces the depth and motion vectors that frame generation needs; bg3fgvk hands those to NVIDIA Streamline, and the NVIDIA driver generates the extra frames. There is no replacement upscaler, no menu of its own, no account and no key. A 30-35 fps scene at 1440p shows at roughly 120-140 fps with x4 on an RTX 50 card, with evenly paced frames.
RTX 30 cards reach x2 to x4 with one extra community mod; RTX 40 cards can go past x2 the same way. See the sections below.
It runs alongside the Baldur's Gate 3 Script Extender and mods that draw their UI through it, including Mod Configuration Menu. It also runs on Linux through Proton, and together with DLSS 5 Neural Rendering through OptiScaler (see the DLSS 5 section).
Source code and issue tracker: github.com/thierbig/bg3fgvk
New in 1.2: performance and stability
- Smoother frame pacing. At x4, generated frames could arrive in bursts, so motion stuttered even with a high fps counter. Each real frame now finishes on the GPU before the generated frames are timed against it, so displayed frames come out evenly spaced at every multiplier. On by default (PresentPacing=1 in fgvk.ini). It costs nothing measurable on some systems and a few percent of rendered fps on others; set it to 0 to trade the smoothness back.
- Camera-orbit flickering fixed. Frame generation was reading depth and motion vectors after the game had already reused their memory.
- Upgrading needs no config edits. On first launch, 1.2 updates an fgvk.ini from an older version once (TagHUDLess=0, PresentPacing=1) and keeps your other settings. fgvk.log confirms it with "config: updated fgvk.ini".
Installation instructions
- Install Native Mod Loader if you do not have it: manual download, extract its bin folder over the game's bin folder, let it replace bink2w64.dll. Make sure bin\NativeMods\ exists.
- Extract the contents of the bg3fgvk zip into the game's bin folder (the one with bg3.exe). Merge the NativeMods folder when asked. You end up with bin\NativeMods\fgvk.dll and bin\NativeMods\Streamline\ (the NVIDIA Streamline runtime, leave it there).
- In the game's Video settings: renderer Vulkan, Upscaling set to DLSS (any quality, or DLAA). In Windows: Settings > System > Display > Graphics > Default graphics settings > Hardware-accelerated GPU scheduling ON.
Load a save. Frame generation turns itself on a couple of seconds into the world and suspends on loading screens and menus. Numpad * toggles it, End cycles x2/x3/x4.
Updating from an older version: extract the new zip over the old files. Your fgvk.ini is kept and updated automatically.
Settings live in bin\NativeMods\fgvk.ini (created on first launch). Logs: bin\fgvk.log and bin\sl.log.
If the NVIDIA App has a DLSS Override for Frame Generation set for Baldur's Gate 3 (often set globally, for example "Multiplier: 4x"), it pins the multiplier so End does nothing, and it can crash the DLSS 5 setup. Set it to "Use 3D app setting".
Uninstall: delete bin\NativeMods\fgvk.dll, bin\NativeMods\fgvk.ini and bin\NativeMods\Streamline.
Note: if DLSS disappears from the game's Video settings after a failed launch, just select it again.
RTX 30 series: x2, x3 and x4 frame generation
Confirmed on an RTX 3070 Ti at x2, x3 and x4. This is real DLSS-G, not FSR.
NVIDIA's frame generation runtime ships its GPU kernels only for RTX 40 and RTX 50, so an RTX 30 needs RTX30MFG-Unlock to supply the missing piece. Install bg3fgvk first (steps above), then:
- In bin\NativeMods\fgvk.ini pick the multiplier: DLSSGFrames=3 for x4, 2 for x3, 1 for x2. End cycles them in game. x4 costs the most GPU time; if your rendered frame rate is low, x2 or x3 is the better trade.
- Put Ultimate ASI Loader (x64) in bin, renamed to version.dll. bg3.exe loads that name early enough. Do not name it bink2w64.dll, Native Mod Loader owns that one.
- From RTX30MFG-Unlock v1.2.2, copy RTX40MFG.asi and RTX40MFGCore.dll into bin, and merge the supplied global.ini next to the loader. The RTX40 prefix in the file names is expected, the project is a fork. RTX40MFG-UI.addon64 is its ReShade menu and is not needed.
- Let the game control the multiplier. In the NVIDIA App: Graphics > Baldur's Gate 3 > DLSS Override > Frame Generation > "Use 3D application setting" (in NVIDIA Profile Inspector: DLSS-MFG - Generation Factor > application-controlled). A pinned setting makes the driver swap in its own Streamline plugins, which on RTX 30 either refuse frame generation or cap it at x2.
Play for about half a minute in the world, then check bin\fgvk.log for a line like:
FG stats: 300 presents -> 1200 frames displayed (x4.00) status=0
Do not let another mod replace bin\NativeMods\Streamline\nvngx_dlssg.dll. Other RTX 30 frame generation mods work by substituting that file; with bg3fgvk it must stay as shipped, because it is what tells Streamline your card is supported.
Full guide, including what to do when it does not work and which other RTX 30 mods were tried and failed: docs/RTX30.md
No OptiScaler and no ReShade are needed for this. RTX 20 is untested; reports welcome on GitHub.
x3 and x4 on RTX 40 series (optional)
NVIDIA caps frame generation at x2 on RTX 40. The community MFG Ada Unlock ReShade add-on lifts that cap: install ReShade with add-on support, put renodx-mfgunlock.addon64 beside bg3.exe, then set DLSSGFrames=3 in fgvk.ini for x4.
Linux / Proton
Set the mod up exactly as on Windows, on a current Proton and NVIDIA driver. No registry edits are needed: Proton reports hardware GPU scheduling to the driver for you, and a recent driver loads the Vulkan Reflex path on its own. If frame generation stays idle and sl.log shows status=2 (Reflex off), add DXVK_NVAPI_VKREFLEX=1 to the game's Steam launch options.
Versions before 1.1.0 crashed a second or two into the world on Proton. That is fixed.
DLSS 5 Neural Rendering alongside frame generation (optional, RTX 50)
bg3fgvk works together with DLSS 5 Neural Rendering through OptiScaler. The recommended build is janblade's OptiScaler-F5-DLSSNR-Multipass. It runs the Neural Rendering model on the game's render-resolution image just before DLSS upscales it, and bg3fgvk reads that same DLSS call, so the generated frames carry the Neural Rendering result too. You get DLSS Super Resolution, Neural Rendering and frame generation x4 at the same time.
You need an RTX 50 card, NVIDIA driver 616.56 or newer, and NVIDIA's nvngx_dlssnr.dll (the DLSS 5 model, about 165 MB, "NVIDIA DLSSNR" in its file properties). Neither OptiScaler nor bg3fgvk ships that file; the RenoDX Discord distributes it with its DLSS 5 add-on.
Install bg3fgvk first (steps above) and check it works, then:
- From the fork's Releases page, download the OptiScaler-DLSSNR-F5-...zip release asset (not GitHub's source-code zip) and extract everything into the game's bin folder, next to bg3.exe.
- Rename OptiScaler.dll to dxgi.dll (or run setup_windows.bat and pick dxgi.dll). Do not use winmm.dll for this game; bg3.exe does not load it.
- Put nvngx_dlssnr.dll into bin too. Leave the package's own nvngx.dll_dlssnr.dll where it is: the two names differ by one character and both are needed. Ignore the Optional folder (a backend for AMD and Intel cards).
- Open bin\OptiScaler.ini in a text editor and set these keys (search for each one, they are in different sections):
[Upscalers] VulkanUpscaler=dlss (required: OptiScaler's default for Vulkan games is FSR 2.2, which silently replaces the game's DLSS)
[DlssNr] Enabled=true
[DlssNr] RunBeforeSR=true
[DlssNr] FinishedPicture=false (must stay off with bg3fgvk, or the generated frames miss the effect)
[DlssNr] Passes=1
[Spoofing] StreamlineSpoofing=false and [Spoofing] Dxgi=false (otherwise frame generation can be capped at x2)
- In the NVIDIA App, set Baldur's Gate 3's DLSS Override - Frame Generation Mode to "Use 3D app setting". With an override active this OptiScaler build crashes a few seconds after launch.
- Launch the game and load a save. Neural Rendering is already on through the ini; you do not need to open the OptiScaler menu (Insert), though it works with frame generation running.
Notes:
- Neural Rendering is expensive; expect your rendered frame rate to drop, and frame generation multiplies what is left. Model resolution below 100% in the OptiScaler menu makes it cheaper.
- Tested with janblade v0.1.24 on an RTX 5070 Ti, driver 616.92. The fork changes often; check its release notes. None of this is supported by NVIDIA.
- wilsjo2's OptiScaler-DLSSNR-PreSR-Multipass and Dagherbou's original OptiScaler_DLSSNR also work. Setups through ReShade and the RenoDX DLSS 5 add-on do not coexist with frame generation.
- Full guide and troubleshooting: docs/DLSS5.md
To remove DLSS 5 and keep frame generation, delete from bin: dxgi.dll, OptiScaler.ini, OptiScaler.log, nvngx.dll_dlssnr.dll, nvngx_dlssnr.dll, the OptiScaler, Licenses, docs and redist folders, and the fork's .md, setup_* and get_streamline.ps1 files. bg3fgvk in bin\NativeMods is unaffected.
Main features
- DLSS Frame Generation x2, x3 or x4 (multi frame generation on RTX 50).
- Even frame pacing: each real frame finishes on the GPU before the generated ones are timed against it, so motion stays smooth instead of bursting.
- RTX 30 support: x2 to x4 real DLSS-G, with one extra community mod. Confirmed on an RTX 3070 Ti.
- Frame generation runs through NVIDIA Streamline and the driver, the same path games with built-in DLSS-G use, not a userspace re-implementation.
- Feeds the game's real DLSS depth, motion vectors and camera jitter every frame, with the inputs protected from the game's memory reuse, so camera orbits stay clean.
- Compatible with DLSS 5 Neural Rendering through OptiScaler: generated frames carry the Neural Rendering result.
- Reflex Low Latency + Boost, required by DLSS-G, enabled automatically.
- Turns itself on when the 3D world renders and off on menus, loading screens and videos. No stutter from re-creating resources.
- Coexists with the Script Extender and MCM: the mod routes Vulkan so the extender's overlay draws on the frames actually presented.
- Runs on Linux through Proton, with no registry edits.
- Hotkeys: numpad * on/off, End cycles the multiplier. Both rebindable in fgvk.ini.
- Updates older config files by itself; nothing to edit when upgrading.
- Open source, MIT. Detailed logs for troubleshooting.
Requirements
- NVIDIA RTX 40 series (x2, or x3/x4 with MFG Ada Unlock) or RTX 50 series (x2 to x4). RTX 30 series reaches x2 to x4 with RTX30MFG-Unlock, see the RTX 30 section. No AMD/Intel support: this is NVIDIA DLSS-G.
- Baldur's Gate 3 in Vulkan mode (the default bg3.exe, not DirectX 11) with DLSS enabled in Video settings.
- Native Mod Loader
- For DLSS 5: RTX 50 series, NVIDIA driver 616.56 or newer, OptiScaler-F5-DLSSNR-Multipass and your own copy of nvngx_dlssnr.dll.
Shout outs
- NVIDIA, for the Streamline SDK and DLSS Frame Generation, and for publishing Streamline's source, which is what made the integration debuggable.
- Norbyte, for the Baldur's Gate 3 Script Extender.
- The author of Native Mod Loader, which loads this mod.
- Microsoft Detours, used for the hooks.
- PureDark, whose BG3 frame generation work served as the reference for what the game's buffers look like.
- anatolek123456, who found the cause of the x4 pacing bursts and benchmarked the fix in 1.2.
- kaanaldemir, who tracked the camera-orbit flickering to the game's memory reuse and fixed it in 1.2.
- janblade, wilsjo2 and Dagherbou for the chain of OptiScaler DLSSNR forks behind the DLSS 5 setup, clshortfuse (RenoDX), whose DLSS 5 work they build on, and !FingerPaint for finding that the combination works with bg3fgvk.
- deusimperatork, who found the working RTX 30 combination and produced the logs that proved it, and lendingaicryp for the first RTX 30 report. mcsoderh for RTX30MFG-Unlock, and dashdogy for the unlocker it is forked from.
- Robert Rautenbach, who diagnosed and fixed the Linux/Proton crash.
来源与文件
来源列出的依赖与关系
- 作者列出的前置:Native Mod Loader — REQUIRED
前往 N 网打开所选文件。安装与下载要求以原作者及平台说明为准。
<!-- aoe-mods-source:nexusmods:baldursgate3:24804 -->