Giter Club home page Giter Club logo

gta5_fsr's Introduction

Grand Theft Auto V + FidelityFx Super Resolution 1.0

This mod replaces original Grand Theft Auto V upscaler with FidelityFx Super Resolution 1.0

Build status

FSR 2.1?

FSR 2.x supports DirectX 12 and Vulkan. GTA 5 uses DirectX 11/10

Original upscaler VS FidelityFx Super Resolution:

youtube

Screenshots:

  1. Original upscale VS FSR upscale
  2. Native VS FSR #1
  3. Native VS FSR #2

Other videos (benchmarks, reviews, comparisons):

  1. GTA 5 4K | AMD FSR FidelityFX Super Resolution (MOD) ON/OFF | RTX 3090 | R7 5800X | Ultra Settings by Jansn Benchmarks
  2. Grand Theft Auto V FSR (mod) 4K - RX6900 XT + R9 5950X - Ultra Settings - Benchmark by 程國龍

Installation:

  1. Get the latest release
  2. Copy d3d11.dll and gta5_fsr.ini to Grand Theft Auto V root folder (e.g. \Steam\steamapps\common\Grand Theft Auto V)
  3. Go to ingame Graphics settings and make sure DirectX Version is set to DirectX 11
  4. Go to ingame Advanced Graphics settings and set Frame scaling mode:
    • 0.5x - Performance Mode
    • 0.667x - Balanced Mode
    • 0.75x - Quality Mode
    • 0.883x - Ultra Quality Mode
  5. Check gta5_fsr.ini file if you need more control over mod settings

Compatibility:

Name Compatibility Comment
ENB ✔️ Rename d3d11.dll (enb) to d3d11_enb.dll. Copy d3d11.dll (fsr) to game folder where enb was located. Open gta5_fsr.ini file and set EnableProxyLibrary=true, InitProxyFunctions=true and ProxyLibrary=d3d11_enb.dll
GTA:O ✔️ Check GTA Online section below for more details
FiveM ✔️ Change Graphics -> Render Resolution instead of Advanced Graphics -> Frame scaling mode
RAGE.MP ✔️ No issues found
ReShade ✔️ Open gta5_fsr.ini file and set EnableProxyLibrary=true, InitProxyFunctions=false and ProxyLibrary=d3d11.dll
R.E.A.L. (VR) Check this

Troubleshooting

If mod doesn't work or you are not sure if it works:

  1. Open gta5_fsr.ini end set:
PrintDebug=true
  1. Download and start DebugView.
  2. Go to "Edit" -> "Filter/Highlight" and set "Include" to "GTA5_FSR"
  3. Start game. If mod works you should see messages like:
[20736] GTA5_FSR: Loaded original d3d11.dll
[20736] GTA5_FSR: D3D11CreateDevice
[20736] GTA5_FSR: D3D11CreateDeviceAndSwapChain
[20736] GTA5_FSR: Reading config file...
[20736] GTA5_FSR: Creating default resources...
[20736] GTA5_FSR: Initialized
[20736] GTA5_FSR: Updated some resources.
[20736] GTA5_FSR: FSR PASS, FPS: 100, MSAA: 2, FXAA: 0
[20736] GTA5_FSR: FSR PASS, FPS: 101, MSAA: 2, FXAA: 0
[20736] GTA5_FSR: FSR PASS, FPS: 99, MSAA: 2, FXAA: 0

If you don't see those lines or you see lines like "GTA5_FSR: Failed to create..." then save log and attach it to new issue. Additionally, include settings.xml (C:\Users%username%\Documents\Rockstar Games\GTA V\settings.xml) and your PC configuration.

GTA Online

In general, mod works in GTA Online. If you are worried about being banned... Well, I don't know how GTA Online anticheat works so I can't guarantee that. I tried my best to make it anticheat-friendly based on my knowledge how other anticheats work. This mod doesn't require DLL injection, it doesn't modify game files, it doesn't change ingame memory, setup hooks etc. People ask me to add this mod to ReShade because it is allowed in GTA:Online. First of all, it's impossible. ReShade doesn't work with frame scaling and custom resolutions AFAIK. Secondly, ReShade became allowed because it started disabling Depth Stencil Buffer access, which is widely used in WallHack cheats, if any internet activity is detected (i.e. you are playing online). This mod doesn't touch depth buffer at all. Anyway, use this mod in GTA Online at your own risk.

gta5_fsr's People

Contributors

narutoua avatar saraprc-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gta5_fsr's Issues

not working on my rig sadly

I did everything you said like putting the files next to the game's .exe and tried to turn on FSR by putting the frame scaling mode to 0.5x and it was just the normal mode. Even after that i tried to to turning it on by tapping the button F3. nothing.

i have one question, how did you get your hands on FSR? i tought it was exclusive for a limited time before being open source.

my PC specs:
AMD ryzen 5 2500u 4 cores / 8 threads 2Ghz
AMD Radeon rx 560x 4GB
MICRON 16GB DDR4 2400mhz dual channel
SSD Hynix 128GB / WD 1TB 5400tr/mins
180 watt power supply
(yes it's a laptop, the ACER Nitro 5 AN515-42-R5Q4)

Tank you for taking your time to read my comments.

nexusmods.

Hi. I am new to github. I register just to contact you @NarutoUA.
I could not find find a way to contact you. I just fund this, and it is not exactly optimal but i hope you read it.
I posted your GTA 5 FSR as a mod on nexusmods. Of course with all credits to you. First thing i have poster there.
I hope that is alright with you. If not, please let me know on nexusmods and i will delete it.

I think this mod is amazing and the world should knew about it. Thank you for your work.

Here are the link to nexusmods. https://www.nexusmods.com/gta5/mods/362?tab=description

Regards.

Works on GTX660?

Well i tested this mod with nvidia GTX660 but i'm not sure if it works.

I did not notice any diffrence, probably because i'm playing at 720P lol

anyways i just wanted to say that this may work on nvidia old GPU's too but someone with high res monitor could try this out.

here is the log file, it says it worked :)
GTX660.LOG

I'm not complaining about anything, all i say that this may work on older gpu's too.

Thank you for this great mod :)

Works on 940MX?

I did all the steps but I had to do the DebugView part, but when I start the game I get "Failed to create EASU shader", what should I do? or my graphics card is not compatible?

The mod won't work with numerous tries

Issue.LOG
settings.txt

Hello. This is a very cool mod but unfortunately, It won't work for me. I have done all your instructions.

1:d3d11.dll (fsr file) + enb file renamed to d3d11_enb.dll both located inside GTAV Root folder ( Mine is from epic games )

2: I have executed the dbgview test and its missing all the line you have mentioned

RTX3090 STIX OC - RYZEN 9 5950X - G.SKILLS 32GB TRIDENTZ NEO (F4-4000C18D-32GTZN) - X570 TUF GAMING - WINDOWS 10 PRO

Thanks in advance

How can I learn to do this kind of stuff

Hi, congrats on the fsr implementation. I am just getting into game programming and wanted to learn how I can write custom shaders like this and make them work with game executables. Would be glad if you could point me in the right direction. Thank a lot :)

ENB and reshade won't work together, is it possible to fix?

I followed all your instructions about ENB, but my ENB won't start properly.
Or maybe just my mistake.
螢幕擷取畫面 2021-07-08 130638
d3d11.dll is from ENB and d3d11_fsr is your mod.
螢幕擷取畫面 2021-07-08 130702
I have ENB and reshade installed, and I just saw a video about using reshade + ENB together, and it needs to set EnableProxyLibrary=true, InitProxyFunctions=false, and ProxyLibrary=d3d11.dll. So I think that's why.

FSR Doesn't Work

Hi. I've tried multiple ways to enable FSR but it just doesn't seem to work on GTAV in my laptop. I followed all the installation steps (paste files in game folder, graphics lib - DirectX 11, frame resolution scaling - 1/2 [0.5]), have no mods installed, even turned on F3 toggle in gta5_fsr.ini file but there are no visible changes when I press it.

Here is the Log from DebugView: Pastebin
Here is my settings.xml for GTAV: settings.xml

My PC configuration:
CPU: Intel Core i3-4005u
GPU: Intel HD Graphics 4400 (integrated)
RAM: 8gb (4gbx2) Dual Channel

Game is launched through Epic Games.

Failed to create EASU texture

Привет, сделал всё по инструкции, установив последнюю версию мода, но он не работает.
[2500] GTA5_FSR: Updating resources... Src: [1600x900]->[1600x900], Dst: [1920x1080]->[1920x1080]
[2500] GTA5_FSR: Failed to create EASU texture
В Дебуге выдаёт данную ошибку при отрисовке каждого нового кадра. Пытался менять разрешение, в окне/полном экранном режиме, безуспешно.
logs.LOG
settings.txt
ПК:
cpu: TripleCore AMD Athlon II X3 435, 2900MHz
gpu: nVIDIA GeForce GT 440
mem: 8 gb

Safe for GTA:Online

Hi, thanks for this awesome news, i got a question: Is safe use it in GTA Online? Thanks

Not working on amd RX590

Hi there !

my config : ryzen 7 3700X and RX590

DebugView shows me only the first 2 lines but nothing else :

[11536] GTA5_FSR: Loaded original d3d11.dll
[11536] GTA5_FSR: D3D11CreateDevice

You can see attached the settings xml file.
settings.txt

Failed to create EASU texture on gtx 960

LOG.LOG
settings.txt

Win7 x64
gtx960 with latest drivers (471.96)
i7 3770
16gb

Tried without reshade (smaa only) - same results. Although 960 is not officialy supported, games with native FSR like Riftbreaker work fine with this gpu, so what could be the problem?

(off) request for different game impl

Could you make a implementation for resident evil 2 remake dx11 mode?
It also has a resolution up/down scaler in game settings, you can turn it down to 50%
Also would be easy to make it work in other RE engine games like DMC5

not working anymore

worked after copying the files to GTA5 folder, after changing the settings to normal and restarted the game it is not working anymore.

How do I install it in fivem?

I've been looking for how to install it, but there is still nothing ... if having it in the root folder of gta v is the installation for fivem, I think it doesn't work for me

Not working on APU Ryzen 2400G

both the .dll and .ini files are next to the game .exe file, i'm using a Ryzen 2400G APU and feels like it's failing to inject the .dll into the game (failing to load the library maybe?)
Pressing F3 for ultra quality mode (while using the correct render scale) also does nothing, if you have any logging feature please make me aware of it.

Some system info:
AMD Radeon Software: 21.6.2 (FSR compatible, at least that's what AMD says, even tho FSR is just two shaders...)
CPU: Ryzen 2400G with Radeon Graphics
8 GB RAM
2 GB DDR4 for Vega 11

I don't know if the mod is working. I don't see any effect .

00000027 29.64176559 [2736] GTA5_FSR: Loaded original d3d11.dll
00000028 29.64994621 [2736] GTA5_FSR: D3D11CreateDevice
00000030 30.02933693 [2736] GTA5_FSR: Loaded original d3d11.dll
00000031 30.03509521 [2736] GTA5_FSR: D3D11CreateDevice
00000032 31.61503983 [2736] GTA5_FSR: D3D11CreateDevice
00000033 31.65420723 [2736] GTA5_FSR: D3D11CreateDeviceAndSwapChain
00000034 31.67276192 [2736] GTA5_FSR: Reading config file...
00000035 31.67285156 [2736] GTA5_FSR: UseFidelityFxSuperResolution is 1
00000036 31.67298889 [2736] GTA5_FSR: AutoSharpness is 1
00000037 31.67644501 [2736] GTA5_FSR: Sharpness: 0.500000
00000038 31.67848587 [2736] GTA5_FSR: PrintDebug is 1
00000039 31.67986488 [2736] GTA5_FSR: Creating default resources...
00000040 31.68344688 [2736] GTA5_FSR: Initialized
00000041 31.68358421 [2736] GTA5_FSR: Wrapping ID3D11Device [d3d11]
00000042 31.68368721 [2736] GTA5_FSR: Wrapping ID3D11DeviceContext [d3d11]
00000043 31.68397141 [2736] GTA5_FSR: Wrapping IDXGISwapChain [d3d11]

Gtx 1050

Привет , я так понял ты из Украины ))). Я писал насчёт этого мода , у меня он не работает почему то , в debug мне показывает как он пытается что то сделать , ставил предыдущие версии , но не помогло , можешь посмотреть что не так ? Вот скрин из игры , настройки стоят максимальные и 2х msaa (пробовал и без него) в полном экранном режиме , не работает все равно помоги мне с ним пожалуйста
7IPjPRVcdvs

Not working for fivem

When i go to my graphics nothing shows up for like this step "Go to ingame Advanced Graphics settings and set Frame scaling mode:
0.5x - Performance Mode
0.667x - Balanced Mode
0.75x - Quality Mode
0.883x - Ultra Quality Mode
"
These settings dont show up i attched my log file please someone help me?

I attached my log file
log fsr.LOG

My PC configuration:
CPU: Intel Core i7-4770 3.40GHZ
GPU: NVIDIA Geforce GTX 1060 6Gb
RAM: 8gb (4gbx2) Dual Channel

Game is launched through Epic Games.

Not workin for rx 570

Hi this mod dont work with the rx 570 it doesnt increase 1 fps but in advanced graphics settings appear Frame scaling and when applying it just low resolution but doesnt get 1 fps more

No issue

Hey nice tool and thx! :)
what will happen if i go over 0.883x will the game super sample?

Game crashes on boot with FSR mod installed

Please note that FSR works with other games in this setup, like DOTA 2.

After installing 1.0.4, the game crashes a few seconds after opening the game. I don't even get the intro nor the legal info screen.

Event Viewer Output

Faulting application name: GTA5.exe, version: 1.0.2372.0, time stamp: 0x60f08a31
Faulting module name: GTA5.exe, version: 1.0.2372.0, time stamp: 0x60f08a31
Exception code: 0xc0000005
Fault offset: 0x00000000012cc2ec
Faulting process id: 0x262c
Faulting application start time: 0x01d7a1d55f401904
Faulting application path: E:\Grand Theft Auto V\GTA5.exe
Faulting module path: E:\Grand Theft Auto V\GTA5.exe
Report Id: 14c0e168-9063-4603-a819-12f8f1d5f1ca
Faulting package full name: 
Faulting package-relative application ID: 

FSR Mod Output

00000069	1.32148111	[9772] GTA5_FSR: PrintDebug is 1	
00000070	1.32152259	[9772] GTA5_FSR: Reading config file...	
00000071	1.32156622	[9772] GTA5_FSR: UseFidelityFxSuperResolution is 1	
00000072	1.32161462	[9772] GTA5_FSR: AutoSharpness is 1	
00000073	1.32165766	[9772] GTA5_FSR: Sharpness: 0.500000	
00000074	1.32169855	[9772] GTA5_FSR: KeyToggleFSR: 114.000000	
00000075	1.32173860	[9772] GTA5_FSR: KeyUpdateSharpness: 115.000000	
00000076	1.32177901	[9772] GTA5_FSR: EnableProxyLibrary is 0	
00000077	1.32343769	[9772] GTA5_FSR: PrintDebug is 1	
00000078	1.32348120	[9772] GTA5_FSR: Reading config file...	
00000079	1.32352078	[9772] GTA5_FSR: UseFidelityFxSuperResolution is 1	
00000080	1.32356584	[9772] GTA5_FSR: AutoSharpness is 1	
00000081	1.32361174	[9772] GTA5_FSR: Sharpness: 0.500000	
00000082	1.32365263	[9772] GTA5_FSR: KeyToggleFSR: 114.000000	
00000083	1.32368970	[9772] GTA5_FSR: KeyUpdateSharpness: 115.000000	
00000084	1.32372773	[9772] GTA5_FSR: EnableProxyLibrary is 0	
00000085	1.32938838	[9772] GTA5_FSR: Loaded wrapped module. LoadOrigLib: 1, UseOrigExports: 1	
00000086	1.32943094	[9772] GTA5_FSR: D3D11CreateDevice	
00000090	17.46598816	[9772] GTA5_FSR: PrintDebug is 1	
00000091	17.46604538	[9772] GTA5_FSR: Reading config file...	
00000092	17.46608734	[9772] GTA5_FSR: UseFidelityFxSuperResolution is 1	
00000093	17.46612930	[9772] GTA5_FSR: AutoSharpness is 1	
00000094	17.46618271	[9772] GTA5_FSR: Sharpness: 0.500000	
00000095	17.46622467	[9772] GTA5_FSR: KeyToggleFSR: 114.000000	
00000096	17.46626472	[9772] GTA5_FSR: KeyUpdateSharpness: 115.000000	
00000097	17.46630478	[9772] GTA5_FSR: EnableProxyLibrary is 0	
00000099	17.82966805	[9772] GTA5_FSR: Loaded wrapped module. LoadOrigLib: 1, UseOrigExports: 1	
00000100	17.82970810	[9772] GTA5_FSR: D3D11CreateDevice	
00000101	17.83349037	[9772] GTA5_FSR: D3D11CreateDevice	
00000102	17.87598038	[9772] GTA5_FSR: D3D11CreateDeviceAndSwapChain	
00000103	17.91921997	[9772] GTA5_FSR: Creating default resources...	
00000104	17.94907570	[9772] GTA5_FSR: Initialized	
00000105	17.94912529	[9772] GTA5_FSR: Wrapping ID3D11Device [d3d11]	
00000106	17.94917679	[9772] GTA5_FSR: Wrapping ID3D11DeviceContext [d3d11]	
00000107	17.94920921	[9772] GTA5_FSR: Wrapping IDXGISwapChain [d3d11]	

Settings File

<?xml version="1.0" encoding="UTF-8"?>

<Settings>
  <version value="27" />
  <configSource>SMC_AUTO</configSource>
  <graphics>
    <Tessellation value="0" />
    <LodScale value="0.000000" />
    <PedLodBias value="0.000000" />
    <VehicleLodBias value="0.000000" />
    <ShadowQuality value="1" />
    <ReflectionQuality value="0" />
    <ReflectionMSAA value="0" />
    <SSAO value="0" />
    <AnisotropicFiltering value="0" />
    <MSAA value="0" />
    <MSAAFragments value="0" />
    <MSAAQuality value="0" />
    <SamplingMode value="1" />
    <TextureQuality value="0" />
    <ParticleQuality value="0" />
    <WaterQuality value="0" />
    <GrassQuality value="0" />
    <ShaderQuality value="0" />
    <Shadow_SoftShadows value="0" />
    <UltraShadows_Enabled value="false" />
    <Shadow_ParticleShadows value="false" />
    <Shadow_Distance value="1.000000" />
    <Shadow_LongShadows value="false" />
    <Shadow_SplitZStart value="0.930000" />
    <Shadow_SplitZEnd value="0.890000" />
    <Shadow_aircraftExpWeight value="0.990000" />
    <Shadow_DisableScreenSizeCheck value="false" />
    <Reflection_MipBlur value="true" />
    <FXAA_Enabled value="false" />
    <TXAA_Enabled value="false" />
    <Lighting_FogVolumes value="false" />
    <Shader_SSA value="false" />
    <DX_Version value="2" />
    <CityDensity value="0.000000" />
    <PedVarietyMultiplier value="1.000000" />
    <VehicleVarietyMultiplier value="1.000000" />
    <PostFX value="0" />
    <DoF value="false" />
    <HdStreamingInFlight value="false" />
    <MaxLodScale value="0.000000" />
    <MotionBlurStrength value="0.000000" />
  </graphics>
  <system>
    <numBytesPerReplayBlock value="9000000" />
    <numReplayBlocks value="36" />
    <maxSizeOfStreamingReplay value="1024" />
    <maxFileStoreSize value="65536" />
  </system>
  <audio>
    <Audio3d value="false" />
  </audio>
  <video>
    <AdapterIndex value="0" />
    <OutputIndex value="0" />
    <ScreenWidth value="1280" />
    <ScreenHeight value="600" />
    <RefreshRate value="59" />
    <Windowed value="2" />
    <VSync value="0" />
    <Stereo value="0" />
    <Convergence value="0.100000" />
    <Separation value="1.000000" />
    <PauseOnFocusLoss value="0" />
    <AspectRatio value="0" />
  </video>
  <VideoCardDescription>Intel(R) HD Graphics 530</VideoCardDescription>
</Settings>

Not working on AMD RX 570

Hey there.

Tried to all released versions (1.01 to 1.03), but none worked. Tried using the debug mode (on version 1.02), pressing F3 button (on version 1.03) and nothing seems to trully enabling it, even if the debugger shows it's running. Even if there's some image degradation, the FPS doesn't increases at all. Actually, there is even some FPS drops.

There's a Youtube video with the same issue using a similar graphics card. You may check it here:
https://youtu.be/XYBWYi5G054

Please, let me know about anything I may do to help solving it. I became a huge fan of your work

Game version: Epic Games Store
My specs:
GPU: XFX RX 570 4GB (Stock)
CPU: Xeon x3440 2.5ghz (Stock)
Mem: 2x4GB ddr3 1333mhz
Mobo: Phitronics H55-M

Mod stops working when using a weapon in first person perspective

While playing GTA:O i noticed that using this mod (1.0.2) while in FPP with a gun and running the mod stopped functioning properly, only way to stop this bug was running without a gun in my hands or whenever i stopped running (while in first person) or just change to third person view which would work without this problem. i left my settings.mxl in here just in case and if you want video i can show you.

NVE Support

the enb won't work, I made sure to follow all the steps,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.