Fallout 4

Fallout 4

View Stats:
Kaldaien Nov 10, 2015 @ 11:56pm
Fallout 4 "Works" - v 0.3.4 [Texture Cache] - (8/31/2016)
Introduction
This project uses advanced features from WIndows 8, 8.1 and 10 to improve frame pacing. Some of these features are available in Windows 7 (with Platform Update), but to get the most out of the mod you need a modern Operating System.

The primary goal is to increase render smoothness without sacrificing input latency. This is not something that can be done effectively in Windows 7. On Windows 7 triple-buffering adds a constant frame of latency and nothing can fix this. Windows 8+ allows triple-buffering without added latency, in fact it can do far more than 3 buffers without any added latency.

In addition to improving frame pacing, the mod also includes a texture caching system to reduce VRAM consumption, eliminate texture streaming bottlenecks and prevent memory fragmentation. This feature works on Windows 7 or later.

Download

    The mod
    The latest GitHub Release is here[github.com].
    Microsoft Visual C++ 2015 Redistributable (x64)
      This is REQUIRED and can be found here.[www.microsoft.com]

Usage
  1. Unzip the contents of FO4W.zip to SteamApps/common/Fallout 4/

  2. Ensure no driver overrides for VSYNC or Pre-Rendered Frames are active

    • Both should be set to application preference, or the driver will give you massive input latency and probably stuttering as well.

  3. Run the game in Borderless Window mode (for best frame pacing)

    • If you opt to run in Fullscreen mode, you will probably need to change PreRenderLimit to 2 for decent performance

    • The game may hang when it first starts in Fullscreen mode in certain resolutions, if this happens use Borderless Window mode instead

    • Fullscreen mode should only be used on laptops or SLI-based systems, borderless window mode offers the most reliable frame timing for minimum stutter.

Configuration
    Settings you SHOULD tweak
[Manage.Memory] ReservePercent=66.0 ; Amount of system memory the game is allowed to consume before the cache begins pruning itself. ; This is set conservatively low, you can probably set it up to about 80 or 90%... ; The idea is to self-balance the texture cache size so that nothing is ever paged to/from the swap file [Textures.Cache] MaxSizeInMiB=3072 ; Default = 3 GiB, you will probably want to increase this value ; (A good rule of thumb: up to 0.25 * Installed System Memory + 1 * Installed VRAM). MaxEntries=8192 ; Default is appropriate for up to 4 GiB, double this if you set your cache > 4 GiB. ; (Keeping this value low slightly reduces CPU overhead, but 8192 entries isn't enough to fill out a cache larger than 4 GiB) ; The other settings in Textures.Cache should be ignored, I already tuned them.

    It is unlikely that you will need to spend any quality time adjusting these, so do not let them overwhelm you.

These are the current default settings, along with a description

[Render.DXGI] PresentationInterval=0 ; Use 0 for Windowed mode, 1 for Fullscreen (to fix tearing) SwapChainBufferCount=5 ; 1=Double-Buffering, 2=Triple-Buffering, ... PreRenderLimit=3 ; 1=No Render-Ahead, 2=1 Frame Render-Ahead, ... -1=Driver Preference TargetFPS=60.0 ; Custom framerate limiter (0.0=Unlimited) UseFlipDiscard=true ; Automatically drop late frames on Windows 10

Many of those INI options can be changed in-game if you have Riva Tuner Statistics Server setup.
  • Open/Close the console by pressing Ctrl + Shift + Tab
  • "PreRenderLimit ..." (requires a game restart)
  • "BufferCount ..." (requires a game restart)
  • "PresentationInterval ..."
  • "MaxDeltaTime ..."
  • "UseFlipDiscard ..." (requires a game restart)


dxgi.dll adds a feature to any Steam game it is used in where it plays the PSN trophy sound when you unlock an achievement. If for some reason you don't like this, you can disable it by editing dxgi.ini:

[Steam.Achievements] NoSound=True

You can make it play any sound you want by supplying the name of a .wav file in SoundFile=....

Likewise, dxgi.dll also adds an OSD that is more thorough than MSI Afterburner or EVGA Precision. If you do not like this, it can be disabled by changing dxgi.ini:

[RSFN.OSD] Show=False ; Or simply press Ctrl + Shift + O while the game is running to toggle this


†NOTE:
RivaTuner Statistics Server v. 6.4.0 or newer is required for the overlay features to work. This ships with certain overclocking software such as MSI Afterburner, or can be downloaded as a standalone package from Guru3D here.[www.guru3d.com]

See here[github.com] for suggested RTSS settings.

OSD Functions
Toggle Framerate Counter
Ctrl + Shift + F
Toggle Clock / Version No.
Ctrl + Shift + T
Toggle GPU Monitor
Ctrl + Shift + G
Toggle CPU Monitor
Ctrl + Shift + C
Toggle Memory Monitor
Ctrl + Shift + M
Toggle I/O Monitor
Ctrl + Shift + I
Toggle Disk Monitor
Ctrl + Shift + D
Toggle Page File Monitor
Ctrl + Shift + P

Resize OSD
Ctrl + Shift + + / -
Toggle Entire OSD
Ctrl + Shift + O

Toggle Command Console
Ctrl + Shift + Tab


Version History
FO4W v 0.3.0 (6/10/16)[github.com] Testing Texture Caching
  • Reduces driver performance bottlenecks caused by poor texture memory management
FO4W v 0.2.2 (12/2/2015)[github.com] SteamAPI Compatibility
  • Fixes a situation in this game where achievements were backlogging
FO4W v 0.2.1 (11/23/2015)[github.com] Improved Stability
  • OSD and Steam API related stability fixes
  • Parses Fallout 4's ini file to determine if the game is running in windowed mode or fullscreen
  • Will change desktop resolution if a borderless window is requested at a different resolution
    • The game's "Maximize Window" feature is supposed to work this way, but it does not scale the framebuffer correctly.
FO4W v 0.1.1 (11/14/2015)[github.com] Support for Windows 7 and Vista
  • Detects when Windows 7 Platform Update is present and can use the DXGI 1.2 Flip Model for best performance
    • Uses DXGI 1.0 otherwise on Windows 7
  • Disabled NVIDIA Optimus bypass code from the original Batman Fix project
  • Increased SwapChainBufferCount to 4 to reduce latency in Flip Model mode
  • Slightly improved Fullscreen support
FO4W v 0.1.0 (11/13/2015)[github.com] (Experimental) Fullscreen Mode Support
  • Adds support for fullscreen mode
    • Performance gains are not as substantial as windowed mode, but this does make enabling triple buffering extremely simple
    • Tends not to work unless the fullscreen resolution selected is the same as the desktop resolution
  • Renamed BackBufferCount to SwapChainBufferCount in Render.DXGI because it was misleading
  • Bringing up the command console (Ctrl+Shift+Tab) will pause the game
    • The game will stop responding to keyboard input until the console is closed--as designed.
  • Adds (and enables by default) a feature that takes a screenshot whenever you unlock an achievement
    • You should disable the screenshot sound in the steam overlay because the DLL already plays a different sound on unlock
FO4W v 0.0.4 (11/12/2015)[github.com] AMD Compatibility Fix and NVIDIA Framerate Limiting
  • No longer prints an NvAPI error message when run on AMD GPUs.
  • Can setup arbitrary framerate limiting on NVIDIA GPUs
    • [Render.DXGI] TargetFPS=...
    • A value of 0 means unlimited
    • The game will restart itself the next time you run it whenever you change this setting in the INI file.
  • Prevents BackBufferCount from being set to anything less than 2


For the time being, this only works reliably if you run the game in borderless window mode.
Last edited by Kaldaien; Feb 16, 2017 @ 4:09am
< >
Showing 1,366-1,377 of 1,377 comments
Smart Fridge AI Jul 18, 2020 @ 1:45pm 
an alternate to this mod if you have an nvidia gpu is using inspector and setting the framerate limiter to "delay flip" mod and 60fps, infact it seems to have the same outcome as this mod
Last edited by Smart Fridge AI; Jul 18, 2020 @ 1:45pm
Kaldaien Jul 18, 2020 @ 1:50pm 
This entire mod was long ago made obsolete when these features were made a core part of Special K.

https://store.steampowered.com/app/1157970/Special_K/

There's a thread on the forums where you can request access to the beta. Normal release should be approved by the end of July (~ the 21st if Valve's estimates are accurate).
just for lulz Jul 28, 2020 @ 12:27pm 
Special K is not yet available on Steam. So I tried manual install of Special K 0.10.2.1.

Took SpecialK64.dll, renamed to dxgi.dll, put alonside the Fallout4.exe and started the game in borderless window mode. I got this weird image, no textures, no shaders, just black geometry. Skybox is ok though. Special K GUI is working.
https://i.imgur.com/Pn0zPsD.png

Enable Texture Caching is off.
Use flip model presentation is on, settings are: 1, 3, 4. Waitable Swap Chain in on, 200 Max wait period. How do you make a screenshot with Special K GUI by the way ? Print Screen makes them without UI.

dxgi.log - https://pastebin.com/jLgU8upk

Radeon RX 5600 XT, drivers 20.4.2

What am I doing wrong ?
Last edited by just for lulz; Jul 28, 2020 @ 1:14pm
cunnilingus enjoyer Jan 12, 2021 @ 11:11pm 
Wich document holds the parts we should tweak?
Kaldaien Jan 13, 2021 @ 2:25am 
None, I'd suggest just using any new version of Special K. They have an in-game config UI.

Texture cache is pre-enabled in all modern versions, doesn't really need any tweaking because it's been tested in hundreds of games by this point.
TOVOT Feb 13, 2021 @ 4:14pm 
How I can run this dxgi.dll (article) + ReShade + ENB ? ( or its impossible ? )
Agravaile Feb 25, 2021 @ 12:52pm 
I have a question about MaxSizeInMB and MaxEntries. So, with 4GB VRAM and 16GB RAM, which should i use for these parameters? I've also set ReservePercent to 90 which i guess is fine.
Last edited by Agravaile; Feb 25, 2021 @ 12:53pm
Hornet Sep 3, 2023 @ 6:40am 
this just caused my game to enter a perpetual loop of infinite black screen loading whenever I launch it with F4SE, I don't recommend this anymore.
MonkInsane Dec 5, 2023 @ 5:33am 
Dude - you are my hero!! this sorted out ALL the issues i was having with lod textures & texture loading, stuttering etc... etc...
MonkInsane Dec 5, 2023 @ 5:34am 
Originally posted by Hornet:
this just caused my game to enter a perpetual loop of infinite black screen loading whenever I launch it with F4SE, I don't recommend this anymore.
You did it wrong - or it's conflicting with something on pc. This sorted out A LOT of issues I had with the game.
HWDP 1000 % Sep 20, 2024 @ 8:26am 
ENBSeries + directx 8-9 v == fast game Fallout 4

:VLOVEIT:
< >
Showing 1,366-1,377 of 1,377 comments
Per page: 1530 50

Date Posted: Nov 10, 2015 @ 11:56pm
Posts: 1,377