nVidia's FXAA mode (anti-aliasing)

Discussion in 'Videocards - NVIDIA GeForce Drivers Section' started by TheHunter, Jul 20, 2011.

  1. CeeJay.dk

    CeeJay.dk Guest

    Messages:
    691
    Likes Received:
    14
    GPU:
    Radeon 6870
    Eventually yes.
    At the moment my priority is integrating it with the other good shaders so people won't have to pick and choose between my shader or all the others.

    I suspect this will be easy but today is my birthday and aside from work I have dinners to attend, presents to receive, so I don't have the time right now. Maybe later in the week.

    You could probably do it yourself though.

    I suspect it's simply a matter of changing

    #ifdef USE_PRE_SHARPEN
    #include "injFX_Shaders\PreSharpen.h"
    #endif

    to

    #ifdef USE_PRE_SHARPEN
    #include "injFX_Shaders\LumaSharpen.h"
    #endif

    in post.h

    And of course put Lumasharpen.h into injFX_Shaders\LumaSharpen.h

    You may also have to move the user setting over from LumaSharpen.h and put them in injFX_Settings.h replacing the presharpen section.

    And it might be a good idea to change the sampler state (in shader.fx) to :

    sampler screenSampler = sampler_state
    {
    Texture = <gScreenTexture>;
    MinFilter = LINEAR;
    MagFilter = LINEAR;
    MipFilter = NONE;
    AddressU = MIRROR;
    AddressV = MIRROR;
    SRGBTexture = FALSE;
    };

    It's simple, but I find that whenever you make one little change you need to test it before moving on to the next change as you often forget a ; or some other little detail.
    And I don't currently have to time to do this.
     
  2. SpajdrEX

    SpajdrEX Ancient Guru

    Messages:
    3,395
    Likes Received:
    1,651
    GPU:
    Gainward RTX 4070
    Looks like SMAA didnt like much Section 8 (not mine screenshot)
    [​IMG]
     
  3. CeeJay.dk

    CeeJay.dk Guest

    Messages:
    691
    Likes Received:
    14
    GPU:
    Radeon 6870
    Thats good to know.
    How are you measuring the GPU load? (I need to find a good way to tell if the optimizations I try out work as expected or they end up having the opposite effect)
     
  4. SpajdrEX

    SpajdrEX Ancient Guru

    Messages:
    3,395
    Likes Received:
    1,651
    GPU:
    Gainward RTX 4070
    Ceejay.dk : Use latest Afterburner beta 9.
     

  5. TheHunter

    TheHunter Banned

    Messages:
    13,404
    Likes Received:
    1
    GPU:
    MSi N570GTX TFIII [OC|PE]
    Driver FXAA is much worse then inject FXAA by somedude.

    I tried it yesterday in Cod5WAW, COD4 MW1 and it blurs the pixels too much.. Not impressed.





    @CeeJay.dk

    ok tnx, i'll give it a try later.
     
  6. yosef019

    yosef019 Ancient Guru

    Messages:
    2,185
    Likes Received:
    17
    GPU:
    EVGA 1080 ti
    hunter plz anser me!!!!
    smaa is beter detection than fxaa right
    does it requer more power = less fps??
    how much fps i loose no aa vs smaa x1
     
  7. Csokis

    Csokis Member Guru

    Messages:
    126
    Likes Received:
    0
    GPU:
    GeForce RTX 3060 Ti
    Inject SMAA not working in NFS: The Run (AppCrash). :(
     
  8. SpajdrEX

    SpajdrEX Ancient Guru

    Messages:
    3,395
    Likes Received:
    1,651
    GPU:
    Gainward RTX 4070
    what log.log file says?
     
  9. ToyTen

    ToyTen Maha Guru

    Messages:
    1,306
    Likes Received:
    66
    GPU:
    7900xtx Taichi OC
    Still can't have the fps OSD from MSI-AB (2.2.0b9) when injecting this SMAA as posted here . I must use FRAPS instead but prefer AB :(
     
  10. Noisiv

    Noisiv Ancient Guru

    Messages:
    8,230
    Likes Received:
    1,494
    GPU:
    2070 Super
    As spajdrik said Afterburner. There's a logging functionality too.

    You can also use Fraps and it's benchmarking part to get a log file with rendering time to draw each successive frame.
    Something like this.

    Frame, Time (ms)
    1, 0.000
    2, 23.440
    3, 55.366
    4, 66.511
    5, 85.951
    6, 113.448
    7, 132.134
    8, 150.438
    9, 165.714
    ... ..........

    It will also give you total number of frames, min, max, and average frame per second

    Frames, Time (ms), Min, Max, Avg
    25761, 441217, 35, 63, 58.386
     

  11. TheHunter

    TheHunter Banned

    Messages:
    13,404
    Likes Received:
    1
    GPU:
    MSi N570GTX TFIII [OC|PE]
    idk, i didnt test SMAA yet.

    But it should work the same in dx9/dx10/11 as FXAA and looks like it renders with better IQ (probably faster too, since there is no extra Sharpen.h layer)


    From what i saw FXAA by some dude takes away ~ 5-10% gpu power, sharpen.h takes "the biggest perf. impact".
     
    Last edited: Nov 30, 2011
  12. MfA

    MfA Guest

    Messages:
    976
    Likes Received:
    0
    GPU:
    Zotac GTX 1060 6GB
    .dll causes this.. inject fxaa and smaa dont let you use msi ab osd..
    i may make comparison between inject FXAA and SMAA on various games when i get home unless someone make one before i do :infinity:
     
  13. SpajdrEX

    SpajdrEX Ancient Guru

    Messages:
    3,395
    Likes Received:
    1,651
    GPU:
    Gainward RTX 4070
    beta9 changes that and you can use OSD with FXAA inject.
     
  14. ToyTen

    ToyTen Maha Guru

    Messages:
    1,306
    Likes Received:
    66
    GPU:
    7900xtx Taichi OC
    Thank you MfA, so i need to stick with FRAPS till someone fixes that "problem", all right.

    Now according to me SMAA is less blurry than FXAA and as economic in performances, very good job.
     
  15. Csokis

    Csokis Member Guru

    Messages:
    126
    Likes Received:
    0
    GPU:
    GeForce RTX 3060 Ti
    log.log file:

     

  16. Darren Hodgson

    Darren Hodgson Ancient Guru

    Messages:
    17,179
    Likes Received:
    1,500
    GPU:
    NVIDIA RTX 4080 FE
    Should this thread be used to mention games supported by the hidden driver-forced FXAA settings for OpenGL and DirectX games with the new 290.36 beta drivers (this can be forced using NVIDIA Inspector v1.9.5.5)?

    If so then I can confirm that GTA IV/Episodes from Liberty City (both DX9), Saints Row: The Third and Need for Speed: The Run support this forced FXAA (both DX11) as does Oddworld: Stranger's Wrath (OpenGL).

    This hidden FXAA setting has been around for months now but until now only worked with OpenGL games. The green square indicator can now be turned off and on as well. I prefer this method to the InjectFXAA mod personally as it negates the need to place files in the games directory and keeps everything nice and tidy. :)

    I have found a number of games crash though or exhibit extreme flickering, e.g. Dead Space and Dead Space 2, but it may be a conflict with MSI Afterburner's OSD. I've yet to try them without the OSD.

    Also, I mentioned this in the beta driver thread but it might be worthwhile starting a separate thread which lists the games supported by driver-forced FXAA. That way the first post can be continually updated with games that work with it. What do others think of this?
     
  17. TheHunter

    TheHunter Banned

    Messages:
    13,404
    Likes Received:
    1
    GPU:
    MSi N570GTX TFIII [OC|PE]
    ^
    its been mentioned for the 5th time now :D

    imo its worse then inject FXAA.
     
  18. CeeJay.dk

    CeeJay.dk Guest

    Messages:
    691
    Likes Received:
    14
    GPU:
    Radeon 6870
    I have a slightly updated version of LumaSharpen.h up at http://dl.dropbox.com/u/9942986/LumaSharpen.h

    This new version just gives you the ability to tweak the luma gamma, adjust saturation and draw a vignette.
    Note that the user settings current in that file sets a slightly darker gamma, boost saturation slight and uses a vignette. I used it to play Skyrim yesterday. Looks great so far.
    You can of course switch that off.
     
  19. CeeJay.dk

    CeeJay.dk Guest

    Messages:
    691
    Likes Received:
    14
    GPU:
    Radeon 6870
    Once I'm done integrating LumaSharpen with the other shader I plan to integrate it with SMAA too - with the option to turn it off of course.

    LumaSharpen is quite a bit faster than Sharpen.h (aka Presharpen.h) and I think I may be able to reuse the stencil buffers that SMAA uses to determine where the edges are, to ensure LumaSharpen does not process the edges.
    This should keep the edges smooth and unsharpened and give a little speed boost since it would skip the processing the edges.
     
  20. MfA

    MfA Guest

    Messages:
    976
    Likes Received:
    0
    GPU:
    Zotac GTX 1060 6GB

Share This Page