File information

Last updated

Original upload

Created by

gramern and danyalzia

Uploaded by

gramern

Virus scan

Safe to use

684 comments

  1. gramern
    gramern
    • premium
    • 19 kudos
    Locked
    Sticky
    Imma leave it here too to make sure no one's using the native FSR 3.0 FG, lol



    Thanks to Dravic1 for help in finding the fix.
  2. Dravic1
    Dravic1
    • premium
    • 117 kudos
    Locked
    Sticky
    @gramern

    To follow up our conversation earlier, drop this mod I just quickly made into your game and tell me if you still have  the same issue with FSR3 FG not affecting the entire screen except for the central oval shape.

    Put "__Testing Patch 2_13.archive" in ...\Cyberpunk 2077\archive\pc\mod

    https://drive.google.com/file/d/1yhlviafluZSbmWp02rm8T0oCiTaf-P3l/view?usp=drive_link

    I have a theory but I need a sanity check from you, hence why I am sharing.

    Vignette is now treated as a UI element, thus masking FSR3 from almost the entire screen space. Disabling Vignette in the Master ENV seems to correctly disengage the mask and reenables FSR3 screen-wide

    Steps:

    1. Use Wolvenkit to find "cp2077_master_env_ep1_v006.env"

    2. Right click the file then convert it TO JSON and open the file in the text editor

    3. edit "VignetteAreaSettings" part of the file as follows:

    {
                "HandleId": "74",
                "Data": {
                  "$type": "VignetteAreaSettings",
                  "disabledIndexedProperties": "0",
                  "enable": 0,
                  "vignetteColor": {
                    "$type": "Color",
                    "Alpha": 0,
                    "Blue": 0,
                    "Green": 0,
                    "Red": 0
                  },
                  "vignetteEnabled": 0,
                  "vignetteExp": 0,
                  "vignetteRadius": 0
                }
              },

    4. Save the file in your text editor

    5. right click "cp2077_master_env_ep1_v006.json" in project explorer inside WolvenKit and convert it FROM JSON

    6. Install Mod
    1. gramern
      gramern
      • premium
      • 19 kudos
      Yes, you might be right - I proposed a similar theory on DLSS2FSR discord server earlier. From what I've seen on RenoDX page, there is a new shader related to vignette - it could be responsible for that. I'll test your file in a moment. Thanks!
    2. gramern
      gramern
      • premium
      • 19 kudos
      I can confirm - you're right. I was busy looking for the new HUD widget/shader in the meantime, but just by using your file or even Disable vignette and-or sharpening we can enable native FSR3 FG from 2.13 on the whole screen:



      So it indeed seems like they (CDPR) deliberately added a new shader to treat the env vignette as a HUD element, 'fixed' ghosting by blocking FG for the most of the screen, slapped 60+ FPS label and called it a day. I have no words.
  3. gramern
    gramern
    • premium
    • 19 kudos
    Locked
    Sticky
    Handling 2.21-related problems:

    2.21 compatibility:
    FrameGen Ghosting Fix Contextual Frame Generation 5.2.5 - fully compatible, works
    FrameGen Ghosting Fix NonContextual (Preem Comp.) 5.2.4nc - fully compatible, works
    FrameGen Ghosting Fix Old Version (Classic) 4.9.2 - fully compatible, works

    Make sure you have all required dependencies updated for 2.21.

    The mod works with the newest Nvidia drivers.

    If the mod still doesn't work for you, then please do as follow:


    1. If you're transitioning from the mod's version that includes Contextual Frame Generation (i.e. 5.2.2) to a non-contextual one (i.e. 5.2.1nc, 4.9.2), please make sure to remove folders before the new installation:
    ../Cyberpunk 2077/bin/x64/plugins/cyber_engine_tweaks/mods/FrameGenGhostingFix
    ../Cyberpunk 2077/red4ext/DLSSEnablerBridge20772.If the "Contextual Frame Generation" edition of this mod doesn't seem to work and tells you to enable FSR 3 Frame Generation in the game's settings despite having FSR3 Frame Gen for Cyberpunk 2077 (DLSS Enabler 2077 Edition) installed and frame generation enabled in the game's settings with the "AMD FSR 3 Frame Generation" option -> please look in the "Problems / Troubleshooting" section in this mod's description.
    3. Please follow instructions from 
    this guide, but instead of downloading the script from the guide, get DocPresto's script updated for 2.21 from here: https://github.com/gramern/Cyberpunk-Helper-Scripts/blob/main/FindAllErrors.bat
    4. Paste the generated log file (You'll find it in the "_LOGS" folder in your Cyberpunk 2077 directory) to https://pastebin.com/ and link it here in a post or bug report.

    Since this is the standard/expected way of resolving issues, I can't guarantee you'll get help without the logs.

    Let's respect each other:)

    ---

    Additional credits:

    Working with danyalzia, we're introducing a new feature in the Ghosting 'Fix' mod. It's Contextual Frame Generation, which allows you to customize when frame generation smoothly turns on/off based on game events. This approach differs from solutions with modes 3x, 4x, or more fg, focusing on preserving image quality rather than compromising it. 

    While there are no hardware limitations for Contextual Frame Generation beyond the ability to run DLSS Enabler's FSR3, we recommend having 55+ base FPS (without frame generation) for smooth FG ON <-> FG OFF transitions. 

    5.1.0/5.1.0nc UPDATE: Added "Base FPS Context" to the Contextual Feature to disable FG below a set FPS threshold, as requested by danyalzia and AMD718.

    I (gramern) want to thank:
    danyalzia - for his work on the Contextual part, converting presets to JSON format, overall code refactoring/improvements, and motivating me to finish this mod
    Artur - for FG on/off feature (the Contextual feature wouldn't be possible without a solution he coded to toggle FG on/off seamlessly in the first place), an API and adding requested features to the API
    Fred91ITA (Federavenscry) - for testing the mod on Steam Deck and Linux
    DBK01 - for inspiration to develop Presets Editor and testing

    PS. Some time ago, I discovered that DLSS FG does a similar thing. When Nvidia's 'AI' tech can't manage frame generation artefacts in 2077 (that happens), it puts masks on certain areas of a frame. Just like Ghosting 'Fix'! Didn't know about it. But the difference is that this mod is available for free. :) What's more, soulm444te confirmed that the mod should help DLSS FG too(previous versions).

    I want to thank Artur for logs from his DLSS Enabler that confirmed my assumptions regarding DLSS FG using the game's camera data and masks to cover FG artefacts. And, as mentioned on the mod's description page, big thanks to QM and soulm444te for their test footage that let me notice that. Huge Kudos!

    And thank you guys, users of the mod, for all the support and appreciation you showed on the way.

    Enjoy!:)
  4. FF081
    FF081
    • member
    • 0 kudos
    When im scoping my fps lowers to 30.
  5. JK23X
    JK23X
    • premium
    • 4 kudos
    [DELETED]
  6. MorphicZenith
    MorphicZenith
    • supporter
    • 0 kudos
    Should I use this for fsr 4 with optiscaler?
    1. gramern
      gramern
      • premium
      • 19 kudos
      Only if you're using FSR4 along with FSR3/3.1 FG
  7. Vadmalac123
    Vadmalac123
    • member
    • 0 kudos
    Hi kinda new to modding, and this mod is the only one i cant seem to get working, the window shows up in CET but i can clearly still see ghosting behind my car. Any chance i didnt do something right for it seemingly not working or thats just the way it is on FSR?

    Using FSR3.1 upscaler on native(or DLAA by the mod) i get 120+fps with FG using mod by artur07305 
    Xess seems to be working the best vs ghosting but that tanks my performance pretty hard and far objects become blurry.

    The dlss enabler error is the only thing i get but that still seems to be working.

    Error logs:
    Game version: 3.0.78.57301 
    RED4ext Version: 1.27.0 
    ArchiveXL Version: 1.21.1 
    TweakXL Version: 1.10.9 
    Codeware Version: 1.15.0 
    CET Version: v1.35.0 
    Redscript: installed correctly 
     
    Visual C++ x64 Redist 14.42.34433.0 not installed 
    Please download and install the 64-bit version from Microsoft: 
    https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#visual-studio-2015-2017-2019-and-2022 
     (i assume this doesnt matter last time downloaded it and fckd up all my redist files)
      
    ======================================================== 
    Successfully Breached: C:\Cyberpunk 2077 
    The following log files have errors: 
    ======================================================== 
     
    bin\x64\dlss-enabler.log 
     
        [Thu Mar 27 04:23:31] [error] [DXGI] CreateDXGIFactory1: failed 

    Appreciate any help in advance.
    1. gramern
      gramern
      • premium
      • 19 kudos
      Hey, the lack of Visual C++ x64 Redist seems to be the issue - RED4ext needs it to work properly, so this might be the reason why this mod has issues too. Please check on RedModding regarding the redist problem.
    2. Vadmalac123
      Vadmalac123
      • member
      • 0 kudos
      I seem to have it on my pc just a newer version of it 
      https://ibb.co/v6XMtNTB
      Will try the discord channel thanks for the help :D 
    3. Vadmalac123
      Vadmalac123
      • member
      • 0 kudos
      So yea didnt get any help in there. So probably just not gonna use frame gen its not like its really needed for me thanks anyways!
  8. TimeForNever
    TimeForNever
    • supporter
    • 1 kudos
    Sorry for the noob question, but I'm assuming that this is totally unnecessary for anyone using DLSSFG? Still trying to wrap my mind around frame gen.
    1. gramern
      gramern
      • premium
      • 19 kudos
      Users reported the mod helps with ghosting behind cars on 40-series' FG. MFG also suffers from artefacts there but this mod is yet to be tested with the newer 50-series tech
    2. TimeForNever
      TimeForNever
      • supporter
      • 1 kudos
      Thanks for the response, but I'm not sure what series FG I'm on. In the graphic's settings it just says "DLSS Frame Generation". I'm using Artur's mod https://www.nexusmods.com/cyberpunk2077/mods/14726 and my graphics card is a RTX 2070 if that helps.
    3. gramern
      gramern
      • premium
      • 19 kudos
      If so, this mod is definitely for you. You have FSR3 FG modded in place of DLSS Frame Generation to make it work on your 2070. Please read the instructions and install all required dependencies for this mod, it will help you with limiting ghosting artefacts behind cars and some more for sure.
    4. TimeForNever
      TimeForNever
      • supporter
      • 1 kudos
      Great, thanks for your help. Installed it properly and from all appearances is working fine!
  9. hatdog2356
    hatdog2356
    • member
    • 0 kudos
    Is this compatible with FSR 3.1.3? Thx for the mod
    1. gramern
      gramern
      • premium
      • 19 kudos
      Yes, every FSR version is compatible with this mod
  10. dorm7
    dorm7
    • member
    • 0 kudos
    DLSS Enabler 2077 Edition mod is just broken with 2.21 and/or new nvidia drivers, dlss fg option is not present in game and it only allows default fsr fg+ fsr upscaler. And it does not work even with a clean game install and nvidia app uninstalled, don't waste your time trying to fix it.

    Instead use Nukem's dlssg-to-fsr3 universal version, put files from plugin_red4ext into Cyberpunk 2077\red4ext\plugins
  11. Mala444
    Mala444
    • supporter
    • 0 kudos
    Hi Gramern, your contextual fg ghosting fix mod is really awesome, you have made a great work. it's possible to do this like an universal tool for fsr frame gen? for other games like indiana jones or stalker 2? 
    1. gramern
      gramern
      • premium
      • 19 kudos
      Hi Mala444! Thanks for the kind words! Regarding your question, everything needed to implement similar functionality in other games is there: DLSS Enabler, its API and exemplary code how to attach game events to it is in this mod.

      However, making it an universal tool is hard, as this technique demands in-game events contexts to trigger FG on/off on them. There's no universal API for that, every game does it in its own way, so... Yeah, it may work only as game-specific, tailored solution for now.
    2. Mala444
      Mala444
      • supporter
      • 0 kudos
      thanks for the answer and for your mod, i really can't play anymore cp77 without. i hope i'll see others games fsr3 ghosting fix mods from you. Bravo
    3. Mala444
      Mala444
      • supporter
      • 0 kudos
      another thing, consider make a ghosting fix for stalker 2. fg implementation is awful
  12. leotooth
    leotooth
    • member
    • 0 kudos
    줌할때 렉걸린다면 이 모드를 쓰지 마세요
    If you experience lag when zooming, don't use this mode.
    1. 1drvamp
      1drvamp
      • supporter
      • 1 kudos
      It's an option in the mod to disable FG when zooming/aiming, is that what you mean? Just disable that option and you will not have frame drops when zooming/aiming.
    2. gramern
      gramern
      • premium
      • 19 kudos
      Exactly as 1drvamp says:

  13. najip
    najip
    • member
    • 0 kudos
    Works very well. Thank you!
    1. gramern
      gramern
      • premium
      • 19 kudos
      Happy it works. Enjoy!